:root {
    --primary-navy: #0A2A43;
    --primary-blue: #1F6FEB;
    --gold-accent: #F4B400;
    --light-gray: #F5F7FA;
    --white: #FFFFFF;
    --dark-text: #1a1a2e;
    --muted-text: #6c757d;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-gray);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.bg-navy {
    background-color: var(--primary-navy) !important;
}

.bg-blue {
    background-color: var(--primary-blue) !important;
}

.bg-gold {
    background-color: var(--gold-accent) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.text-navy {
    color: var(--primary-navy) !important;
}

.text-blue {
    color: var(--primary-blue) !important;
}

.text-gold {
    color: var(--gold-accent) !important;
}

.btn-navy {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--white);
}

.btn-navy:hover {
    background-color: #083352;
    border-color: #083352;
    color: var(--white);
}

.btn-blue {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.btn-blue:hover {
    background-color: #1558c7;
    border-color: #1558c7;
    color: var(--white);
}

.btn-gold {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--primary-navy);
}

.btn-gold:hover {
    background-color: #d9a000;
    border-color: #d9a000;
    color: var(--primary-navy);
}

.btn-outline-navy {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline-navy:hover {
    background-color: var(--primary-navy);
    color: var(--white);
}

.btn-outline-gold {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

.btn-outline-gold:hover {
    background-color: var(--gold-accent);
    color: var(--primary-navy);
}

.navbar-main {
    background-color: var(--primary-navy);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-main .navbar-brand {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-main .navbar-brand .logo-accent {
    color: var(--gold-accent);
}

.navbar-main .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--gold-accent);
}

.navbar-main .btn-gold {
    font-weight: 600;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0d3a5c 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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");
    opacity: 0.5;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-section .highlight {
    color: var(--gold-accent);
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-navy) 100%);
}

.feature-card .icon-wrapper i {
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h5 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-text);
    margin-bottom: 0;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 3rem;
}

.stats-section {
    background: var(--primary-navy);
    padding: 60px 0;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-navy) 100%);
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.footer {
    background-color: var(--primary-navy);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--gold-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: var(--gold-accent);
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
}

.footer-bottom p {
    margin-bottom: 0;
}

.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(31, 111, 235, 0.15);
}

.badge-status {
    padding: 0.5em 1em;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-approved {
    background-color: #d4edda;
    color: #155724;
}

.badge-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-review {
    background-color: #cce5ff;
    color: #004085;
}

.sidebar {
    background: var(--white);
    min-height: calc(100vh - 76px);
    border-right: 1px solid #e9ecef;
    padding: 1.5rem 0;
}

.sidebar .nav-link {
    color: var(--dark-text);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.sidebar .nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
}

.sidebar .nav-link.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.dashboard-header {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.dashboard-content {
    padding: 0 2rem 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: var(--muted-text);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table-custom {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table-custom thead {
    background: var(--light-gray);
}

.table-custom th {
    font-weight: 600;
    color: var(--primary-navy);
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.table-custom td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.progress-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    color: var(--muted-text);
}

.progress-step.active .step-circle {
    background: var(--primary-blue);
    color: var(--white);
}

.progress-step.completed .step-circle {
    background: var(--gold-accent);
    color: var(--primary-navy);
}

.progress-step .step-label {
    font-size: 0.85rem;
    color: var(--muted-text);
}

.progress-step.active .step-label {
    color: var(--primary-navy);
    font-weight: 600;
}

.message-list {
    max-height: 500px;
    overflow-y: auto;
}

.message-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.message-item:hover {
    background: var(--light-gray);
}

.message-item.active {
    background: rgba(31, 111, 235, 0.1);
    border-left: 3px solid var(--primary-blue);
}

.message-item.unread {
    background: rgba(244, 180, 0, 0.1);
}

.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #fafafa;
}

.chat-message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.chat-message.sent {
    background: var(--primary-blue);
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-message.received {
    background: var(--white);
    color: var(--dark-text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-message .time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0d3a5c 100%);
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-card .logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.auth-card .logo-accent {
    color: var(--gold-accent);
}

.vehicle-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vehicle-card .card-body {
    padding: 1.5rem;
}

.vehicle-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.vehicle-card .price small {
    font-size: 0.9rem;
    color: var(--muted-text);
    font-weight: 400;
}

.kyc-status-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.kyc-status-card .status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.kyc-status-card .status-icon.pending {
    background: #fff3cd;
    color: #856404;
}

.kyc-status-card .status-icon.verified {
    background: #d4edda;
    color: #155724;
}

.kyc-status-card .status-icon.failed {
    background: #f8d7da;
    color: #721c24;
}

.legal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    color: var(--primary-navy);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-accent);
}

.legal-content h2 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
    color: var(--muted-text);
    line-height: 1.8;
}

.intake-form {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-nav-item.active {
    background: var(--primary-blue);
    color: var(--white);
}

.admin-nav-item i {
    width: 24px;
    margin-right: 0.75rem;
}

.filter-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .dashboard-header,
    .dashboard-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .intake-form {
        padding: 1.5rem;
    }
}
