/* ============================================
   AJŤÁCKÁ GRILOVAČKA - ADMIN PREMIUM UI
   ============================================ */

:root {
    --fire-red: #B22818;
    --fire-red-dark: #8B1E11;
    --fire-red-light: #D63426;
    --agentes-blue: #215ea9;
    --agentes-blue-dark: #1a4a85;

    --black: #0a0a0a;
    --gray-900: #1a1a1a;
    --gray-800: #2d2d2d;
    --gray-700: #4a4a4a;
    --gray-100: #f5f5f5;
    --white: #ffffff;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-fire: 0 12px 40px rgba(178, 40, 24, 0.2);

    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 100px;

    --font-family: 'Inter', -apple-system, system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: #f8fafc;
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(178, 40, 24, 0.05), transparent),
        radial-gradient(circle at bottom right, rgba(33, 94, 169, 0.05), transparent);
    padding: 2rem;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 5px solid var(--fire-red);
}

.login-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.login-subtitle {
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

/* ============================================
   ADMIN DASHBOARD LAYOUT
   ============================================ */
.admin-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-logo {
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-logo span {
    color: var(--fire-red);
}

.admin-nav-actions {
    display: flex;
    gap: 1rem;
}

.container-admin {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* ============================================
   CARDS & TABLES
   ============================================ */
.admin-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 1rem;
    background: var(--gray-100);
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--fire-red);
    box-shadow: 0 0 0 4px rgba(178, 40, 24, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary-admin {
    background: var(--fire-red);
    color: white;
}

.btn-primary-admin:hover {
    background: var(--fire-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-fire);
}

.btn-secondary-admin {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-secondary-admin:hover {
    background: var(--gray-800);
    color: white;
}

.btn-outline-admin {
    background: transparent;
    border: 2px solid var(--gray-100);
    color: var(--gray-700);
}

.btn-outline-admin:hover {
    border-color: var(--fire-red);
    color: var(--fire-red);
}

.btn-danger-admin {
    background: #fee2e2;
    color: #ef4444;
}

.btn-danger-admin:hover {
    background: #ef4444;
    color: white;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ============================================
   UTILITIES
   ============================================ */
.badge-admin {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-future {
    background: #dcfce7;
    color: #166534;
}

.badge-past {
    background: #f1f5f9;
    color: #475569;
}