/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --gold: #D4AF37;
    --black: #0a0a0a;
    --charcoal: #1f1f1f;
    --gray: #666;
    --bg-app: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --nav-width: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-app);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--black); margin-bottom: 0.5rem; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================
   1. SHARED COMPONENTS
   ============================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-block;
    background: var(--black);
    color: var(--gold);
    padding: 12px 28px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: 1px solid var(--black);
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
}
.btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.btn-outline {
    display: inline-block;
    background: transparent;
    border: 1px solid #ccc;
    color: var(--charcoal);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

/* ============================
   2. LANDING PAGE STYLES (Index)
   ============================ */
.landing-header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--black); }
.logo span { color: var(--gold); font-style: italic; }

/* Desktop Menu */
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Mobile Menu Toggle (Hidden on Desktop) */
.landing-mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--black); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 2000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-menu-overlay.active { transform: translateY(0); }
.mobile-menu-link { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--black); }
.mobile-close { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; }

/* Hero */
.hero {
    min-height: 90vh;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1541643600914-78b084683601?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}
.hero h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 20px; line-height: 1.1; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; }

/* Value Props Grid */
.landing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.landing-card { background: var(--white); padding: 40px; border-radius: 8px; text-align: center; border: 1px solid #eee; }

/* ============================
   3. DASHBOARD STYLES (App)
   ============================ */
.app-wrapper { display: flex; min-height: 100vh; }

/* App Sidebar (Desktop) */
.app-sidebar {
    width: var(--nav-width);
    background: var(--black);
    color: var(--white);
    position: fixed; top: 0; left: 0; bottom: 0;
    padding: 30px 20px;
    z-index: 100;
    transition: transform 0.3s ease;
    display: flex; flex-direction: column;
}
.app-sidebar .logo { color: var(--white); margin-bottom: 40px; }

.app-nav-item {
    padding: 12px 15px; margin-bottom: 5px;
    border-radius: 8px; color: #9ca3af;
    cursor: pointer; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
}
.app-nav-item.active, .app-nav-item:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* App Main Content */
.app-content {
    margin-left: var(--nav-width);
    flex: 1;
    padding: 40px;
    width: 100%;
}

/* App Mobile Header */
.app-mobile-header {
    display: none; /* Hidden on Desktop */
    justify-content: space-between; align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50; height: 60px;
}

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-box { background: var(--white); padding: 20px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid #eee; }
.stat-val { font-size: 2rem; font-weight: 700; color: var(--black); line-height: 1; }
.stat-lbl { font-size: 0.75rem; text-transform: uppercase; color: var(--gray); margin-top: 5px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 12px; border: 1px solid #eee; padding: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f9f9f9; font-size: 0.75rem; text-transform: uppercase; }

.form-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 15px; }

/* Sidebar Overlay */
.app-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 90; display: none; backdrop-filter: blur(2px);
}
.app-overlay.active { display: block; }

/* ============================
   4. RESPONSIVE MEDIA QUERIES
   ============================ */
@media (max-width: 900px) {
    /* LANDING FIXES */
    .landing-header .nav-links { display: none !important; } /* FORCE HIDE DESKTOP MENU */
    .landing-mobile-toggle { display: block !important; }
    .hero h1 { font-size: 2.5rem; }
    .landing-grid { grid-template-columns: 1fr; }

    /* DASHBOARD FIXES */
    .app-mobile-header { display: flex; }
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.open { transform: translateX(0); }
    .app-content { margin-left: 0; padding: 20px; padding-top: 80px; }
    .stats-grid { grid-template-columns: 1fr 1fr; } /* Side-by-side stats */
    .grid-2 { grid-template-columns: 1fr; }
}