:root {
    --primary-color: #0B2B5E; /* Navy Blue */
    --secondary-color: #D4AF37; /* Gold */
    --secondary-hover: #c09e32;
    --background-color: #F5F7FA;
    --text-color: #2C3E50;
    --text-muted: #7F8C8D;
    --white: #FFFFFF;
    --danger: #E74C3C;
    --success: #2ECC71;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--primary-color); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1.5rem; }

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none; font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.logo-q2 { color: var(--primary-color); }
.logo-wealth { color: var(--secondary-color); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--text-color); text-decoration: none; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--secondary-color); }

/* Buttons */
.btn {
    display: inline-block; padding: 10px 20px; border-radius: var(--radius);
    text-decoration: none; font-weight: 600; cursor: pointer; transition: var(--transition);
    border: none; font-family: 'Inter', sans-serif; font-size: 1rem;
}
.btn-primary { background-color: var(--secondary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--secondary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }
.btn-text { color: var(--secondary-color); background: none; padding: 0; }
.btn-text:hover { color: var(--secondary-hover); text-decoration: underline; }
.btn-large { padding: 15px 30px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a428a 100%);
    color: var(--white);
    padding: 100px 0;
    margin-bottom: 50px;
}
.hero-title { color: var(--white); font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }
.feature-card {
    background: var(--white); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); transition: var(--transition);
    text-align: center;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); margin-bottom: 20px; }

/* Forms & Auth */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 70vh; padding: 40px 20px; }
.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 450px;
}
.auth-card h2 { margin-bottom: 30px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-color); }
.form-control {
    width: 100%; padding: 12px 15px; border: 1px solid #ddd;
    border-radius: var(--radius); font-size: 1rem; transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.form-control:focus { border-color: var(--secondary-color); outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }

/* Assessment Form Styles */
.assessment-form-container { max-width: 800px; margin: 40px auto; background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.section-title { border-bottom: 2px solid var(--background-color); padding-bottom: 10px; margin-bottom: 20px; margin-top: 40px; }
.section-title:first-child { margin-top: 0; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.checkbox-item { display: flex; align-items: center; gap: 10px; }
.radio-group { display: flex; gap: 20px; margin-top: 10px; }

/* Dashboard */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin: 40px 0; }
.table-responsive { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.table th { background-color: #f8f9fa; font-weight: 600; color: var(--primary-color); }
.table tr:hover { background-color: #f8f9fa; }
.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.badge-family { background-color: #e3f2fd; color: #1976d2; }
.badge-business { background-color: #f3e5f5; color: #7b1fa2; }

/* Alerts */
.alert { padding: 15px; border-radius: var(--radius); margin-bottom: 20px; }
.alert-danger { background-color: #fdeaea; color: var(--danger); border: 1px solid #fad2d2; }

/* Footer */
main { flex: 1; }
.footer { background-color: var(--primary-color); color: var(--white); padding: 30px 0; margin-top: auto; }
.footer p { opacity: 0.7; font-size: 0.9rem; }

/* Gauge Animation and Styles */
.gauge-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.gauge-needle {
    transform-origin: 150px 150px;
    transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Admin Portal Sidebar and Layout Styling */
.admin-portal-body {
    display: flex;
    min-height: 100vh;
    background-color: var(--background-color);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    color: var(--white);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    font-weight: 600;
}

.logout-link:hover {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.15);
}

.sidebar-footer small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.sidebar-footer .user-info {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Admin Main Workspace Area */
.admin-main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow issues */
}

.admin-topbar {
    height: 70px;
    background-color: var(--white);
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.admin-page-container {
    padding: 40px;
    flex: 1;
}

/* Table detail sub-row animation styling */
.details-row {
    transition: all 0.3s ease;
}

/* Responsive adjustment for admin panels */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 70px;
    }
    .sidebar-logo span,
    .sidebar-link span:not(.link-icon),
    .sidebar-footer {
        display: none !important;
    }
    .admin-main-content {
        margin-left: 70px;
    }
    .sidebar-link {
        justify-content: center;
        padding: 12px;
    }
}


