/* ============================================================
   Pegas Touristik Guide Book – Global Styles
   ============================================================ */

:root {
    --primary:      #003087;
    --primary-dark: #001f5c;
    --primary-light:#0055CC;
    --accent:       #FF6B00;
    --accent-dark:  #E05500;
    --accent-light: #FF9A00;
    --white:        #FFFFFF;
    --gray-50:      #F8F9FA;
    --gray-100:     #F1F3F5;
    --gray-200:     #E9ECEF;
    --gray-300:     #DEE2E6;
    --gray-400:     #CED4DA;
    --gray-500:     #ADB5BD;
    --gray-600:     #6C757D;
    --gray-700:     #495057;
    --gray-800:     #343A40;
    --gray-900:     #212529;
    --success:      #10B981;
    --warning:      #F59E0B;
    --danger:       #EF4444;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow:       0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-md:    0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
    --shadow-lg:    0 20px 25px rgba(0,0,0,.10), 0 10px 10px rgba(0,0,0,.04);
    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;
    --sidebar-w:    260px;
    --topbar-h:     64px;
    --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.25; }

/* ============================================================
   Container
   ============================================================ */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,0,.35);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}
.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* ============================================================
   Brand
   ============================================================ */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 20px;
    box-shadow: 0 4px 12px rgba(255,107,0,.3);
    flex-shrink: 0;
}
.brand-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}
.brand-sub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-page { background: var(--white); }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: var(--primary-dark);
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
}

/* Hero */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-pattern {
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 120px;
    background: var(--white);
    clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: flex-start;
    padding-top: 160px; padding-bottom: 140px;
    max-width: 680px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    color: rgba(255,255,255,.9);
    font-size: 13px; font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 18px; font-weight: 300;
    color: rgba(255,255,255,.8);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-actions { display: flex; flex-direction: column; gap: 24px; }
.hero-actions .btn-primary {
    font-size: 16px; padding: 14px 36px;
    box-shadow: 0 8px 24px rgba(255,107,0,.4);
}
.hero-stat-row {
    display: flex; gap: 24px; flex-wrap: wrap;
}
.hero-stat {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,.75);
    font-size: 14px; font-weight: 500;
}
.hero-stat i { color: var(--accent-light); }

.hero-scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 1; color: rgba(255,255,255,.5); font-size: 18px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,100%{ transform: translateX(-50%) translateY(0); }
    50%     { transform: translateX(-50%) translateY(8px); }
}

/* Features Section */
.section { padding: 96px 0; }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0,48,135,.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title { font-size: 2rem; color: var(--gray-900); margin-bottom: 12px; }
.section-desc { color: var(--gray-600); font-size: 16px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.1rem; margin-bottom: 8px;
    color: var(--gray-900);
}
.feature-card p { color: var(--gray-600); font-size: 14px; line-height: 1.7; }

/* CTA */
.cta { background: var(--gray-50); }
.cta-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    color: white;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-icon {
    font-size: 48px; color: var(--accent-light);
    margin-bottom: 20px; position: relative;
}
.cta-card h2 { font-size: 2.2rem; margin-bottom: 12px; position: relative; }
.cta-card p { color: rgba(255,255,255,.75); max-width: 460px; margin: 0 auto 32px; position: relative; }

/* Footer */
.footer {
    background: var(--primary-dark); color: rgba(255,255,255,.6);
    padding: 32px 0; text-align: center;
}
.footer-brand {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; color: white; font-size: 16px; font-weight: 600;
    margin-bottom: 8px;
}
.footer-brand i { color: var(--accent); }
.footer-copy { font-size: 13px; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page { background: var(--gray-50); min-height: 100vh; }

.login-split {
    display: flex; min-height: 100vh;
}

/* Left panel */
.login-left {
    flex: 1;
    background: linear-gradient(145deg, var(--primary-dark), var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    padding: 48px;
    position: relative; overflow: hidden;
}
.login-left .brand .brand-name { font-size: 20px; }
.login-left-content {
    position: relative; z-index: 1;
    max-width: 380px;
}
.login-left .brand { margin-bottom: 56px; }
.login-tagline h2 {
    font-size: 2rem; color: white; line-height: 1.3;
    margin-bottom: 16px;
}
.login-tagline p {
    color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.7;
    margin-bottom: 40px;
}
.login-features { display: flex; flex-direction: column; gap: 12px; }
.lf-item {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500;
}
.lf-item i { color: var(--accent-light); font-size: 16px; }

.deco-circle {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.06);
}
.deco-1 { width: 400px; height: 400px; bottom: -200px; right: -150px; }
.deco-2 { width: 250px; height: 250px; top: -80px; right: -60px; }
.deco-3 { width: 150px; height: 150px; top: 40px; right: 80px; background: rgba(255,107,0,.08); }

/* Right panel */
.login-right {
    width: 480px;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 40px;
    background: var(--white);
}
.login-form-wrap { width: 100%; max-width: 360px; }
.login-form-header { margin-bottom: 32px; }
.login-form-header h1 {
    font-size: 2rem; color: var(--gray-900); margin-bottom: 6px;
}
.login-form-header p { color: var(--gray-500); font-size: 15px; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--gray-700); margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: .04em;
}
.form-control {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Raleway', sans-serif;
    font-size: 15px; color: var(--gray-800);
    background: var(--gray-50);
    outline: none;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,48,135,.1);
}
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 48px; }
.password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--gray-500); font-size: 16px;
    padding: 4px; transition: color var(--transition);
}
.password-toggle:hover { color: var(--primary); }

.login-form .btn-primary { margin-top: 8px; }
.login-back {
    text-align: center; margin-top: 24px;
    font-size: 14px; color: var(--gray-500);
}
.login-back a {
    color: var(--primary); font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color var(--transition);
}
.login-back a:hover { color: var(--accent); }

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

/* Sidebar */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex; flex-direction: column;
    z-index: 200;
    transition: transform var(--transition);
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
}

.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-header .brand-name { font-size: 15px; }
.sidebar-close {
    display: none; background: none; border: none;
    color: rgba(255,255,255,.6); font-size: 18px; cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1; padding: 16px 12px;
    overflow-y: auto;
}
.nav-label {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,.35);
    padding: 0 8px; margin-bottom: 8px; margin-top: 8px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.7);
    font-size: 14px; font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item.active {
    background: rgba(255,107,0,.2);
    color: white;
    border-left: 3px solid var(--accent);
}
.nav-item i { width: 18px; text-align: center; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.user-card {
    display: flex; align-items: center; gap: 10px;
}
.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; font-weight: 700;
    flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
    display: block; font-size: 13px; font-weight: 600; color: white;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-role {
    display: block; font-size: 11px; color: rgba(255,255,255,.5);
    text-transform: capitalize;
}
.logout-btn {
    color: rgba(255,255,255,.5); font-size: 16px;
    padding: 6px; border-radius: 6px;
    transition: all var(--transition);
}
.logout-btn:hover { color: var(--accent-light); background: rgba(255,255,255,.08); }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1; display: flex; flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    position: sticky; top: 0; z-index: 100;
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex; align-items: center;
    padding: 0 24px; gap: 16px;
    box-shadow: var(--shadow-sm);
}
.sidebar-toggle {
    display: none; background: none; border: none;
    font-size: 20px; color: var(--gray-600); cursor: pointer;
    padding: 6px; border-radius: var(--radius-sm);
}
.sidebar-toggle:hover { background: var(--gray-100); }

.topbar-search { flex: 1; max-width: 480px; }
.search-wrap {
    position: relative; display: flex; align-items: center;
}
.search-wrap > i {
    position: absolute; left: 14px;
    color: var(--gray-400); font-size: 14px;
    pointer-events: none;
}
.search-input {
    width: 100%; padding: 9px 40px 9px 40px;
    border: 2px solid var(--gray-200);
    border-radius: 100px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px; color: var(--gray-800);
    background: var(--gray-50); outline: none;
    transition: all var(--transition);
}
.search-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0,48,135,.08);
}
.search-clear {
    position: absolute; right: 12px;
    color: var(--gray-400); font-size: 14px;
    cursor: pointer; padding: 4px;
    transition: color var(--transition);
}
.search-clear:hover { color: var(--gray-700); }

.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Page Body */
.page-body { padding: 28px 32px; flex: 1; }

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin-bottom: 24px; font-size: 13px;
}
.bc-link {
    display: flex; align-items: center; gap: 5px;
    color: var(--primary); font-weight: 600;
    transition: color var(--transition);
}
.bc-link:hover { color: var(--accent); }
.bc-current {
    display: flex; align-items: center; gap: 5px;
    color: var(--gray-600); font-weight: 500;
}
.bc-sep { color: var(--gray-400); font-size: 10px; }

/* Stats Row */
.stats-row {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 28px;
}
.stat-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--white); border-radius: var(--radius);
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    min-width: 140px;
}
.stat-icon { font-size: 24px; color: var(--primary); }
.stat-num { display: block; font-size: 20px; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--gray-500); }

/* Section header row */
.section-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; margin-top: 28px;
}
.section-header-row:first-child { margin-top: 0; }
.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 16px; font-weight: 700;
    color: var(--gray-700);
    display: flex; align-items: center; gap: 8px;
}
.section-title i { color: var(--accent); }
.badge {
    background: var(--gray-100); color: var(--gray-600);
    font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 100px;
}

/* Folder Grid */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}
.folder-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--white); border-radius: var(--radius);
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
}
.folder-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.folder-icon {
    font-size: 28px; color: var(--accent);
    flex-shrink: 0;
}
.folder-info { flex: 1; min-width: 0; }
.folder-name {
    display: block; font-size: 14px; font-weight: 600; color: var(--gray-800);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}
.folder-count { font-size: 12px; color: var(--gray-500); }
.folder-arrow { color: var(--gray-300); font-size: 12px; flex-shrink: 0; }

/* View Toggle */
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    background: none; border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm); padding: 6px 10px;
    color: var(--gray-500); cursor: pointer; font-size: 14px;
    transition: all var(--transition);
}
.view-btn:hover { background: var(--gray-100); }
.view-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* File Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.file-card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 20px 16px 16px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative;
    transition: all var(--transition);
}
.file-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gray-300); }
.file-card-icon { font-size: 42px; margin-bottom: 12px; }
.file-card-body { width: 100%; }
.file-card-name {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--gray-800); line-height: 1.3; margin-bottom: 8px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.file-card-meta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 4px;
}
.ext-badge {
    background: var(--gray-100); color: var(--gray-600);
    font-size: 10px; font-weight: 700; letter-spacing: .05em;
    padding: 2px 7px; border-radius: 4px;
}
.file-card-meta span:not(.ext-badge) { font-size: 12px; color: var(--gray-500); }
.file-card-date { font-size: 11px; color: var(--gray-400); }
.file-card-download {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px;
    background: var(--primary); color: white;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}
.file-card:hover .file-card-download {
    opacity: 1; transform: scale(1.05);
}

/* File List (search results & list view) */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 14px 18px;
    display: flex; align-items: center; gap: 14px;
    transition: all var(--transition);
}
.file-item:hover { box-shadow: var(--shadow-sm); border-color: var(--gray-300); }
.file-icon-wrap { font-size: 28px; flex-shrink: 0; }
.file-meta { flex: 1; min-width: 0; }
.file-name {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--gray-800); margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-path { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.file-info {
    display: flex; flex-direction: column; align-items: flex-end;
    font-size: 12px; color: var(--gray-500); gap: 2px;
    flex-shrink: 0;
}
.file-size { font-weight: 600; color: var(--gray-600); }

/* List view mode */
.file-list-view .file-card {
    flex-direction: row; text-align: left;
    align-items: center; padding: 12px 16px;
}
.file-list-view .file-card-icon { font-size: 28px; margin-bottom: 0; margin-right: 4px; }
.file-list-view .file-card-body { display: flex; align-items: center; gap: 12px; flex: 1; }
.file-list-view .file-card-name {
    flex: 1; -webkit-line-clamp: 1; margin-bottom: 0;
}
.file-list-view .file-card-meta { margin-bottom: 0; }
.file-list-view .file-card-date { margin-left: auto; }
.file-list-view .file-card-download { opacity: 1; position: static; margin-left: auto; }

/* Empty State */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 80px 24px;
    text-align: center;
}
.empty-state > i { font-size: 64px; color: var(--gray-300); margin-bottom: 20px; }
.empty-state h3 { font-size: 1.25rem; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); margin-bottom: 24px; max-width: 320px; }

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 190;
    backdrop-filter: blur(2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .login-left { display: none; }
    .login-right { width: 100%; }
}

@media (max-width: 768px) {
    /* Landing */
    .hero-content { padding-top: 120px; padding-bottom: 100px; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 40px 24px; }

    /* Dashboard */
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar.open ~ .sidebar-overlay { display: block; }
    .sidebar-close { display: block; }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: flex; align-items: center; }
    .page-body { padding: 20px 16px; }
    .folder-grid { grid-template-columns: 1fr 1fr; }
    .file-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { gap: 10px; }
    .stat-card { padding: 12px 16px; }
}

@media (max-width: 480px) {
    .folder-grid { grid-template-columns: 1fr; }
    .file-grid { grid-template-columns: 1fr; }
    .topbar { padding: 0 14px; }
    .hero-title { font-size: 2rem; }
    .hero-stat-row { flex-direction: column; gap: 12px; }
    .file-item { flex-wrap: wrap; }
    .file-info { flex-direction: row; gap: 8px; }
    .hide-sm { display: none; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge   { animation: fadeInUp .6s ease both; }
.hero-title   { animation: fadeInUp .6s .1s ease both; }
.hero-desc    { animation: fadeInUp .6s .2s ease both; }
.hero-actions { animation: fadeInUp .6s .3s ease both; }

.feature-card { animation: fadeInUp .5s ease both; }
.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: .07s; }
.feature-card:nth-child(3) { animation-delay: .14s; }
.feature-card:nth-child(4) { animation-delay: .21s; }
.feature-card:nth-child(5) { animation-delay: .28s; }
.feature-card:nth-child(6) { animation-delay: .35s; }

.folder-card { animation: fadeInUp .3s ease both; }
.file-card   { animation: fadeInUp .3s ease both; }
