
:root {
    --primary-color: #0c4a6e;
    --primary-light: #00a5cf;
    --primary-vibrant: #70e000;
    --primary-lightest: #f0f9ff;
    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --border-color: rgba(226, 232, 240, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    --radius-md: 14px;
    --radius-lg: 20px;
    --sidebar-width: 260px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-menu {
    padding: 24px 12px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--primary-lightest);
    color: var(--primary-color);
}

.nav-group-label {
    padding: 16px 16px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* Main Content & Header */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-header {
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 80;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.header-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-top: 0;
}

/* Dashboard & Content Pages */
.dashboard-content {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Added for About, Privacy, Contact pages */
.content-page-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.content-page-card h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 1em;
    border-bottom: 2px solid var(--primary-lightest);
    padding-bottom: 0.5em;
}

.content-page-card h2:first-of-type {
    margin-top: 0;
}

.content-page-card p, .content-page-card ul {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.2em;
}

.content-page-card ul {
    padding-left: 20px;
}

.content-page-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.content-page-card a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

footer a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

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

.overlay.active {
    display: block;
}

@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: calc(var(--sidebar-width) * -1);
        height: 100vh;
        background: white;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(0);
    }

    .sidebar.active {
        transform: translateX(var(--sidebar-width));
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
    }

    .top-header {
        padding: 0 20px;
        justify-content: center;
    }

    .header-title {
        font-size: 1.5rem;
    }
    
    .dashboard-content {
        padding: 20px 16px;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .content-page-card {
        padding: 24px;
    }
}
