/* ============================================
   MavensFly - Dashboard Layout CSS
   Sidebar + Main Content + Top Bar
   ============================================ */

/* ===== DASHBOARD LAYOUT ===== */
.dashboard { display: flex; min-height: 100vh; background: var(--navy-50); }

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed; top: 0; left: 0; width: 260px; height: 100vh;
    background: linear-gradient(180deg, #0d1f3c 0%, #102748 40%, #004577 100%);
    display: flex; flex-direction: column; z-index: 50;
    transition: transform 0.3s ease;
}
.sidebar-logo {
    padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 0.625rem;
}
.sidebar-close { display: none; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1.5rem; cursor: pointer; margin-left: auto; }
.logo-icon {
    width: 36px; height: 36px; border-radius: 12px;
    background: linear-gradient(135deg, #D4A843, #E0BC62);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.75rem; color: var(--navy-900);
    box-shadow: 0 0 20px rgba(212,168,67,0.3);
    flex-shrink: 0;
}
.logo-name { font-weight: 800; font-size: 0.875rem; color: white; display: block; }
.logo-role { font-size: 0.55rem; color: rgba(212,168,67,0.6); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.sidebar-nav { flex: 1; padding: 0.75rem; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 1rem; border-radius: 10px;
    font-size: 0.875rem; font-weight: 600;
    color: rgba(255,255,255,0.55); transition: var(--transition);
    text-decoration: none;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(212,168,67,0.08));
    color: #E0BC62; border-left: 3px solid #D4A843;
}
.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
.sidebar-user { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; padding: 0 0.25rem; }
.sidebar-avatar {
    width: 36px; height: 36px; border-radius: 12px;
    background: linear-gradient(135deg, #D4A843, #E0BC62);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.75rem; color: var(--navy-900);
    flex-shrink: 0;
}
.sidebar-user-name { font-size: 0.75rem; font-weight: 700; color: white; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.sidebar-user-company { font-size: 0.625rem; color: rgba(255,255,255,0.3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.sidebar-logout {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 12px;
    color: rgba(239,68,68,0.7); font-size: 0.875rem; font-weight: 700;
    transition: var(--transition); text-decoration: none;
}
.sidebar-logout:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; margin-left: 260px; min-width: 0; }
.top-bar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16,39,72,0.05);
    height: 56px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem;
}
.top-bar-title { font-size: 0.875rem; font-weight: 700; color: var(--navy-800); text-transform: capitalize; }
.top-bar-user { font-size: 0.75rem; color: var(--navy-500); font-weight: 600; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--navy-600); }
.page-content { padding: 1.5rem 2rem; }
.page-title { font-size: 1.5rem; font-weight: 900; color: var(--navy-900); }
.page-subtitle { font-size: 0.875rem; color: var(--navy-400); font-weight: 500; margin-top: 0.25rem; }

/* ===== MODAL/DIALOG ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(16,39,72,0.5);
    backdrop-filter: blur(8px); z-index: 100; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: white; border-radius: var(--radius); width: 90%; max-width: 500px;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(16,39,72,0.2);
    animation: fadeInUp 0.3s ease-out;
}
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(16,39,72,0.06); }
.modal-header h3 { font-size: 1.125rem; font-weight: 800; color: var(--navy-900); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(16,39,72,0.06); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .mobile-overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(16,39,72,0.4); backdrop-filter: blur(4px); z-index: 40;
    }
    .mobile-overlay.active { display: block; }
}

/* ===== LANDING PAGE ===== */
.landing-nav {
    position: fixed; top: 0; width: 100%; z-index: 50;
    background: rgba(255,255,255,0.05); backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 64px; display: flex; align-items: center;
}
.landing-nav .nav-inner { max-width: 1280px; margin: 0 auto; width: 100%; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.nav-links a:hover { color: var(--gold-400); }
.hero-section {
    position: relative; min-height: 100vh; overflow: hidden;
    background: linear-gradient(135deg, #102748, #004577 60%, #0a5a9e);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(16,39,72,0.92), rgba(16,39,72,0.6) 50%, rgba(0,69,119,0.3)); }
.hero-particles { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(212,168,67,0.08) 0%, transparent 50%), radial-gradient(circle at 80% 30%, rgba(93,163,224,0.08) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 10; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; min-height: 100vh; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 1rem; border-radius: 9999px;
    background: rgba(212,168,67,0.15); border: 1px solid rgba(212,168,67,0.3);
    color: var(--gold-300); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 2rem;
}
.hero-title { font-size: 3.5rem; font-weight: 900; color: white; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-title span { background: linear-gradient(to right, var(--gold-400), var(--gold-300)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.7; max-width: 32rem; margin-bottom: 2.5rem; font-weight: 500; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; margin-top: 3rem; }
.hero-trust span { display: flex; align-items: center; gap: 0.375rem; color: rgba(255,255,255,0.4); font-size: 0.75rem; font-weight: 600; }
.section { padding: 6rem 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-label { color: var(--gold-500); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.section-title { font-size: 2rem; font-weight: 900; color: var(--navy-900); letter-spacing: -0.02em; }
.section-title-white { font-size: 2rem; font-weight: 900; color: white; }
.section-bg-navy { background: linear-gradient(180deg, #0d1f3c, #102748 40%, #004577); }
.footer { background: linear-gradient(180deg, #0d1f3c, #102748); padding: 3rem 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.footer-text { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

/* ===== LOGIN/REGISTER PAGES ===== */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #0d1f3c, #102748 40%, #004577);
    position: relative; overflow: hidden;
}
.auth-bg-glow-1 { position: absolute; top: 25%; left: 25%; width: 24rem; height: 24rem; background: rgba(0,69,119,0.2); border-radius: 50%; filter: blur(120px); }
.auth-bg-glow-2 { position: absolute; bottom: 25%; right: 25%; width: 20rem; height: 20rem; background: rgba(212,168,67,0.08); border-radius: 50%; filter: blur(100px); }
.auth-card { position: relative; z-index: 10; width: 100%; max-width: 28rem; margin: 0 1.5rem; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 0.625rem; margin-bottom: 2.5rem; }
.auth-logo .logo-icon { width: 40px; height: 40px; }
.auth-logo span { font-weight: 800; font-size: 1.25rem; color: white; }
.auth-form-card { padding: 2rem; }
.auth-form-title { font-size: 1.5rem; font-weight: 900; color: white; text-align: center; margin-bottom: 0.5rem; }
.auth-form-subtitle { font-size: 0.875rem; color: rgba(255,255,255,0.4); text-align: center; font-weight: 500; margin-bottom: 2rem; }
.auth-footer-text { text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.35); font-weight: 500; margin-top: 1.5rem; }
.auth-footer-text a { color: var(--gold-400); font-weight: 700; }
.auth-footer-text a:hover { color: var(--gold-300); }

/* ===== TICKET CARD (Umrah Group) ===== */
.ticket-card { border-radius: var(--radius); background: white; border: 1px solid rgba(16,39,72,0.06); box-shadow: 0 4px 24px rgba(16,39,72,0.06); overflow: hidden; transition: var(--transition); margin-bottom: 1.25rem; }
.ticket-card:hover { box-shadow: 0 12px 40px rgba(16,39,72,0.12); }
.ticket-header { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1.25rem; background: var(--navy-50); border-bottom: 1px solid var(--navy-100); }
.ticket-header-info { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.875rem; }
.ticket-body { display: grid; grid-template-columns: 2fr 4fr 2fr 2fr 2fr; }
.ticket-col { padding: 1rem; border-right: 1px solid var(--navy-100); }
.ticket-col:last-child { border-right: none; }
.ticket-col-label { font-size: 0.7rem; font-weight: 700; color: var(--navy-800); margin-bottom: 0.5rem; }
.ticket-note { padding: 0.5rem 1.25rem; background: var(--gold-100); border-top: 1px solid rgba(212,168,67,0.2); font-size: 0.75rem; color: var(--navy-600); font-weight: 500; }
.sold-out-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; border-radius: 4px; background: rgba(239,68,68,0.1); color: #ef4444; font-size: 0.625rem; font-weight: 700; margin-top: 0.5rem; }

/* ===== ICON GRADIENT BOX ===== */
.icon-box { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); flex-shrink: 0; }
.icon-box-navy { background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); }
.icon-box-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); }
.icon-box-emerald { background: linear-gradient(135deg, #059669, #047857); }

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .ticket-body { grid-template-columns: 1fr; }
    .ticket-col { border-right: none; border-bottom: 1px solid var(--navy-100); }
    .hero-trust { flex-direction: column; gap: 0.75rem; }
    .page-content { padding: 1rem; }
}
