:root{--bg:#f3f5f7;--card:#fff;--line:#dde3ea;--muted:#65707c;--primary:#047857;--accent:#ea580c;--accent-hover:#c2410c;}
*{box-sizing:border-box} body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:var(--bg);color:#1f2937}
a{color:inherit;text-decoration:none}
.eh-header{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:12px 18px;background:#ffffffea;backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.eh-brand{display:flex;align-items:center;gap:10px}.eh-logo{width:38px;height:38px;border-radius:10px;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:700}
.eh-shell{display:flex;gap:16px;max-width:1400px;margin:0 auto;padding:16px}.eh-sidebar{width:260px;align-self:flex-start;position:sticky;top:68px}.eh-main{flex:1;min-width:0}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(0,0,0,.03)} .p-2{padding:8px}.p-3{padding:12px}.muted{color:var(--muted);font-size:.9rem}
/* Sidebar Styles */
.eh-sidebar { 
    width: 260px; 
    height: 100vh; 
    padding: 20px; 
    overflow-y: auto; 
    background: #fff; 
    border-right: none;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}
.admin-sidebar-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.55);
    z-index:1900;
    opacity:0;
    transition:opacity .2s ease;
}
.admin-sidebar-overlay.show{display:block;opacity:1}

@media (min-width: 993px) {
    .admin-sidebar-overlay { display: none !important; }
}

.admin-sidebar-toggle{display:none}
.sidebar-collapse-btn{width:36px;height:36px;display:grid;place-items:center;padding:0;margin:0;border:1px solid #e2e8f0}
.sidebar-close-btn{width:36px;height:36px;display:none;place-items:center;padding:0;margin:0;border:1px solid #e2e8f0}
.admin-sidebar.collapsed{width:72px}
.admin-sidebar.collapsed .nav-text,
.admin-sidebar.collapsed .sidebar-title,
.admin-sidebar.collapsed .sidebar-subtitle,
.admin-sidebar.collapsed .settings-title,
.admin-sidebar.collapsed .sidebar-user-name,
.admin-sidebar.collapsed .sidebar-user-role{display:none}
.admin-sidebar.collapsed .nav-link{justify-content:center;padding:12px}
.admin-sidebar.collapsed .nav-link i{width:auto}
.admin-sidebar.collapsed .logo-area{justify-content:center}
.admin-sidebar.collapsed .logo-area img{max-width:48px}
.nav-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; margin-bottom: 12px; font-weight: 700; }
.nav-link { 
    display: block; 
    display: block; 
    padding: 12px 16px; 
    color: #64748b; 
    text-decoration: none; 
    border-radius: 12px; 
    margin-bottom: 6px; 
    font-weight: 500; 
    transition: all 0.2s; 
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-link:hover { background: #f1f5f9; color: #1e293b; }
.nav-link.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.nav-link i { width: 20px; text-align: center; }

.nav-section { margin-bottom: 15px; border-top: 1px solid #f3f4f6; padding-top: 15px; }
.nav-section:first-of-type { border-top: none; padding-top: 0; }
.nav-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    padding: 8px 16px; 
    background: none; 
    border: none; 
    color: #64748b; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer; 
    letter-spacing: 0.05em;
}
.nav-header:hover { color: #334155; }
.nav-header .arrow { transition: transform 0.3s; font-size: 0.7rem; }
.nav-header.collapsed .arrow { transform: rotate(-90deg); }

.nav-content { overflow: hidden; max-height: 0; transition: max-height 0.3s ease-out; }
.nav-content.show { max-height: 500px; transition: max-height 0.5s ease-in; }
.nav-content .nav-link { padding-left: 20px; font-size: 0.95rem; }

.nav-group { margin-bottom: 15px; }

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 24px;
    padding: 0 16px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}
.stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
}
.trend-up { background: #dcfce7; color: #166534; }
.trend-down { background: #fee2e2; color: #991b1b; }

/* Event List */
.section-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0; }

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.event-item:hover { background: #f1f5f9; transform: translateY(-2px); }
.event-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #e2e8f0;
    object-fit: cover;
}
.event-info { flex: 1; }
.event-name { font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.event-meta { font-size: 0.85rem; color: #64748b; display: flex; gap: 12px; }
.event-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-open { background: #dbeafe; color: #1e40af; }
.status-pending { background: #ffedd5; color: #9a3412; }
.status-published { background: #dcfce7; color: #166534; }
.status-ended { background: #f1f5f9; color: #475569; }

/* Widgets */
.widget-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.widget-item:last-child { border-bottom: none; }
.activity-header { display: flex; gap: 10px; margin-bottom: 4px; }
.activity-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #eff6ff; color: #2563eb;
    display: grid; place-items: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.activity-content { font-size: 0.9rem; color: #334155; }
.activity-time { font-size: 0.75rem; color: #94a3b8; margin-top: 4px; }

.task-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.task-content { font-size: 0.9rem; color: #334155; }
.task-due { font-size: 0.75rem; color: #ef4444; font-weight: 500; }

.btn{display:inline-block;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-right:6px;cursor:pointer;font-size:0.9rem;font-weight:500;transition:background .2s}.btn:hover{background:#f9fafb}.btn.small{padding:4px 8px;font-size:.85rem}.btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn.primary:hover{background:#036c52}
.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.metric-card{padding:12px}.metric-title{font-size:.9rem;color:var(--muted)}.metric-value{font-size:1.8rem;font-weight:700}.metric-sub{font-size:.8rem}
.validation-message{color:#b45309;font-size:.85rem;font-weight:500}
.validation-summary-errors{color:#b45309;background-color:#fffbeb;border:1px solid #fcd34d;padding:12px;border-radius:10px;margin-bottom:12px}
.validation-summary-errors ul{margin:0;padding-left:18px}
.text-danger{color:#b45309 !important}
.alert.error, .alert.danger{background:#fffbeb;border:1px solid #fcd34d;color:#b45309;padding:10px 12px;border-radius:10px;margin-bottom:10px}
.table-wrap{overflow:auto}.eh-table{width:100%;border-collapse:collapse}.eh-table th,.eh-table td{padding:10px 12px;border-top:1px solid #edf1f5;text-align:left;vertical-align:top}.eh-table thead th{background:#f8fafc;border-top:0;position:sticky;top:0}.table-header h3{margin:0 0 4px}
.hero{overflow:hidden}.hero-banner{padding:20px;background:linear-gradient(90deg,#047857,#0f766e);color:#fff}.hero-banner h2{margin:4px 0 6px}.hero-kicker{text-transform:uppercase;font-size:.75rem;letter-spacing:.08em;opacity:.9}.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;padding:16px}
.pill-row{display:flex;gap:8px;flex-wrap:wrap}.pill{background:#f4f7fa;border:1px solid var(--line);padding:6px 10px;border-radius:999px;font-size:.85rem}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.gallery-item img{width:100%;height:140px;object-fit:cover;border-top-left-radius:16px;border-top-right-radius:16px;background:#eef2f7}
.split-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.truncate{max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid label{display:flex;flex-direction:column;font-size:.9rem;gap:4px}.form-grid input{padding:9px 10px;border:1px solid var(--line);border-radius:10px}.checkbox{justify-content:end}
.alert.success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;padding:10px 12px;border-radius:10px;margin-bottom:10px}
.mb-2{margin-bottom:8px}.mt-2{margin-top:8px}

/* Form Styles */
.form-select {
    display: block;
    width: 100%;
    padding: 0.575rem 2.25rem 0.575rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.form-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(4, 120, 87, 0.25);
}
.form-grid select {
    padding: 0.575rem 2.25rem 0.575rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
}

/* Landing Page Styles */
.landing-container { font-family: 'Segoe UI', sans-serif; color: #333; }
.landing-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.landing-hero::before {
    content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3);
}
.landing-card {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.landing-logo {
    color: #0056b3; font-weight: 800; font-size: 1.5rem; margin-bottom: 10px;
    display: inline-block; padding: 5px 15px; background: #fff; border-radius: 4px;
}
.landing-card h1 {
    font-size: 1.8rem; margin: 10px 0; color: #222; font-weight: 700;
}
.landing-meta {
    font-size: 0.95rem; color: #d97706; font-weight: 600; margin-bottom: 15px; line-height: 1.5;
}
.landing-venue { color: #4b5563; font-weight: 500; margin-bottom: 8px; }
.landing-tag {
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: #6b7280; margin-bottom: 20px;
}
.btn-action {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-block;
}
.btn-action:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.25);
}
.landing-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.landing-buttons .btn-action {
    min-width: 200px;
    text-align: center;
}
.landing-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.landing-section-title {
    text-transform: uppercase;
    color: #d97706;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.landing-content h2 {
    font-size: 1.5rem; margin-top: 0; color: #111;
}

/* Partner/Sponsor Card Styles */
.partner-section-title { 
    color: #d97706; 
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.partner-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}
.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}
.partner-logo-area {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.partner-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748b;
    opacity: 0.5;
}
.partner-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f293b;
    margin-bottom: 8px;
}
.partner-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}
.partner-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
}
.partner-link:hover {
    text-decoration: underline;
}

/* Speaker Styles */
.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.speaker-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: transform 0.2s;
}
.speaker-card:hover {
    transform: translateY(-3px);
}
.speaker-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e2e8f0;
}
.speaker-info {
    padding: 16px;
}
.speaker-name {
    font-weight: 700;
    color: #1f293b;
    margin-bottom: 4px;
}
.speaker-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}
.speaker-title {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* Schedule Styles */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.schedule-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    display: flex;
    gap: 16px;
}
.time-col {
    min-width: 80px;
    font-weight: 700;
    color: #1f293b;
    font-size: 0.95rem;
}
.session-info h4 {
    margin: 0 0 4px 0;
    color: #1f293b;
}
.session-meta {
    font-size: 0.85rem;
    color: #64748b;
}

/* Global Responsive Styles */
@media (max-width: 992px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .eh-shell { flex-direction: column; }
    
    /* Remove conflicting eh-sidebar rule here and rely on admin-sidebar for the drawer */
    .eh-sidebar.admin-sidebar {
        /* Override any desktop styles */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
        transform: translateX(-105%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column;
        background: #fff;
    }
    
    .eh-main { padding: 0; }
    
    .hero-grid { grid-template-columns: 1fr; }
    .split-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    .admin-sidebar-toggle {
        display: inline-grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #fff;
        border: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        color: #64748b;
        cursor: pointer;
        transition: background 0.2s;
    }
    .admin-sidebar-toggle:active { background: #f1f5f9; }

    /* Ensure specific class for open state */
    .eh-sidebar.admin-sidebar.mobile-open { transform: translateX(0); }
    
    .sidebar-close-btn { display: grid; }
    
    /* Ensure collapsed state on mobile (if ever used) doesn't break layout */
    .admin-sidebar.collapsed { width: 280px; }

    .admin-sidebar.collapsed .nav-text,
    .admin-sidebar.collapsed .sidebar-title,
    .admin-sidebar.collapsed .sidebar-subtitle,
    .admin-sidebar.collapsed .settings-title,
    .admin-sidebar.collapsed .sidebar-user-name,
    .admin-sidebar.collapsed .sidebar-user-role{display:block}
    .admin-sidebar.collapsed .nav-link{justify-content:flex-start;padding:12px 16px}
    .admin-sidebar.collapsed .nav-link i{width:20px}
}

@media (max-width: 768px) {
    .landing-hero { height: auto; min-height: 400px; padding: 40px 20px; }
    .landing-card { padding: 20px; }
    .landing-buttons { flex-direction: column; align-items: stretch; }
    .landing-buttons .btn-action { width: 100%; }
    
    .partner-grid, .speaker-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    
    .schedule-item { flex-direction: column; gap: 8px; }
    .time-col { min-width: auto; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; margin-bottom: 8px; }
    
    .event-item { flex-direction: column; align-items: flex-start; }
    .event-thumb { width: 100%; height: 140px; }
    .event-meta { flex-direction: column; gap: 6px; }
    
    .eh-header { flex-direction: column; align-items: stretch; gap: 12px; }
}
