:root {
    --primary: #11315a;
    --primary-dark: #0d2546;
    --secondary: #e2ad33;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #0f172a;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-300: #94a3b8;
    --gray-400: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --background: #f8fafc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    color: #1f2937;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font: inherit;
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.sessions-header {
    display: grid;
    gap: 1.5rem;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-header h3 {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    color: var(--primary-dark);
}

.btn-primary,
.btn-secondary {
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary), #f5c143);
    color: var(--primary);
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(226, 173, 51, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.session-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.session-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.session-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-card-header h4 {
    margin: 0;
    font-size: 1.15rem;
}

.status-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-scheduled {
    background: rgba(255,255,255,0.2);
    color: white;
}

.status-live {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    animation: pulse 2s infinite;
}

.status-ended {
    background: rgba(100,116,139,0.16);
    color: white;
}

.session-card-info {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.info-row i {
    width: 22px;
    color: var(--primary);
}

.session-card-actions {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-state {
    padding: 3rem 2rem;
    border-radius: 24px;
    background: white;
    border: 1px dashed #cbd5e1;
    color: var(--gray-600);
    text-align: center;
    font-size: 1rem;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    padding: 1rem;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-box {
    width: 100%;
    max-width: 540px;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.btn-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
}

.form-group,
.form-row {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.55rem;
    color: #475569;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: #f8fafc;
    color: #0f172a;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(17, 49, 90, 0.08);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@media (max-width: 768px) {
    .page {
        padding: 1rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .sessions-grid {
        grid-template-columns: 1fr;
    }
}
