:root {
    --primary-color: #0f172a; /* Deep Navy - Professional & Trustworthy */
    --secondary-color: #c5a059; /* Gold/Bronze - Premium & Authoritative */
    --accent-color: #f8f9fa; /* Light Gray - Clean Background */
    --text-dark: #1e293b; /* Darker Slate for better readability than pure black */
    --text-light: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--accent-color);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7; /* Improved line height for readability */
    font-size: 16px; /* Base font size */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700; /* Bolder headings */
}

/* --- Navigation --- */
.navbar {
    transition: all 0.4s ease;
    padding: 1.2rem 0;
    background: linear-gradient(to bottom, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0) 100%); /* Subtle gradient for visibility */
}

.navbar.bg-scrolled {
    background: var(--primary-color) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Pop out brand */
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem; /* Slightly larger links */
    color: rgba(255,255,255,0.9) !important; /* Higher contrast */
    transition: all 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Better readability on image */
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Changed from white to navy for better contrast */
    border: 2px solid var(--secondary-color);
    transition: all 0.3s;
    font-weight: 700; /* Made bolder */
    border-radius: 4px;
    padding: 12px 35px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
    background-color: #b08d4b;
    border-color: #b08d4b;
    color: white; /* Keep white on darker hover, or change to navy if still light */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    transition: all 0.3s;
    font-weight: 700;
    border-radius: 4px;
    padding: 10px 30px;
}

.btn-outline-gold:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Changed to navy on hover */
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75)), url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem; /* Larger Title */
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: 1.4rem; /* Larger Lead Text */
    color: rgba(255,255,255,0.95); /* High contrast */
    margin-bottom: 2.5rem;
    max-width: 700px;
    font-weight: 400;
}

.gold-line {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-bottom: 2rem;
    display: inline-block;
    border-radius: 2px;
}

/* --- Stats Section --- */
.stats-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stat-item h2 {
    color: var(--secondary-color);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255,255,255,0.85); /* Better readability */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- About/Services --- */
.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: #4b5563; /* Darker gray for better reading */
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.service-card {
    background: white;
    padding: 50px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.service-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #4b5563;
}

/* --- Team Section --- */
.team-card {
    background: white;
    border: none;
    transition: all 0.3s;
    border-radius: 10px;
}

.team-img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.team-img-wrapper img {
    transition: transform 0.5s;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(100%);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.team-role {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.92)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 3rem;
}

/* --- Footer --- */
.footer {
    background-color: #0b1120;
    color: #94a3b8; /* Slate-400 for better contrast than generic gray */
    padding: 90px 0 30px;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: var(--font-body); /* Modern footer headings */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
    font-size: 1rem;
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px; /* Subtle movement */
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    margin-top: 60px;
    font-size: 0.9rem;
}


/* --- DASHBOARD STYLES --- */

/* Colors Utility */
.bg-navy {
    background-color: var(--primary-color) !important;
    color: white;
}

.text-navy {
    color: var(--primary-color) !important;
}

.text-gold {
    color: var(--secondary-color) !important;
}

/* Sidebar Layout */
#wrapper {
    overflow-x: hidden;
    background-color: #f1f5f9; /* Slate-100 */
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -17rem;
    transition: margin 0.25s ease-out;
    width: 17rem;
    position: fixed;
    z-index: 1000;
    background-color: #0f172a; /* Ensure dark background */
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

#sidebar-wrapper .sidebar-heading {
    padding: 2rem 1.5rem;
    font-size: 1.25rem;
    background-color: rgba(0,0,0,0.1);
}

#sidebar-wrapper .list-group {
    width: 17rem;
}

#page-content-wrapper {
    width: 100%;
    margin-left: 0;
    transition: margin 0.25s ease-out;
    min-height: 100vh;
}

/* Sidebar Links */
.list-group-item {
    border: none;
    padding: 16px 30px;
    color: rgba(255,255,255,0.85) !important; /* High contrast for menu items */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
}

.list-group-item:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.08) !important;
    padding-left: 35px; /* Hover effect */
}

.list-group-item.active {
    background-color: rgba(197, 160, 89, 0.15) !important; /* Subtle gold tint */
    color: var(--secondary-color) !important;
    border-left: 4px solid var(--secondary-color);
    font-weight: 600;
}

/* Toggled State */
#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        margin-left: 17rem;
        width: calc(100% - 17rem);
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -17rem;
    }

    #wrapper.toggled #page-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    /* Make tables scrollable */
    .table-responsive {
        overflow-x: auto;
    }

    /* Smaller text for team section on mobile */
    .small-on-mobile {
        font-size: 0.8rem !important;
    }
}

/* Dashboard Widgets */
.widget-card {
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: var(--secondary-color);
}

.rounded-full {
    border-radius: 50% !important;
}

/* Tables */
.table-responsive {
    border-radius: 12px;
    background: white;
    padding: 5px;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.table thead th {
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #64748b; /* Slate-500 */
    padding: 18px 20px;
    background-color: #f8fafc; /* Slate-50 */
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody td {
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 20px;
    vertical-align: middle;
    color: #334155; /* Slate-700 */
    font-size: 0.95rem;
    font-weight: 500;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 30px; /* Pill shape */
    letter-spacing: 0.5px;
}

/* Form Controls */
.form-control, .form-select {
    border: 1px solid #cbd5e1; /* Slate-300 */
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-label {
    color: #475569; /* Slate-600 */
    font-weight: 600;
    margin-bottom: 8px;
}

/* Navbar Toggle */
#menu-toggle {
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.2s;
}

#menu-toggle:hover {
    color: var(--secondary-color);
}

/* Animations */
.fade-up {
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Modal Header */
.modal-header.bg-navy {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header.bg-navy .modal-title {
    color: #ffffff;
    font-weight: 800; /* Extra Bold for visibility */
    letter-spacing: 0.5px;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Shadow to make it pop */
}

.modal-header.bg-navy i {
    color: var(--secondary-color); /* Gold Icon */
}
