/* Custom styles for the Gender Pay Gap Compliance Tool */

:root {
    --dark-green: #2D5A41;
    --medium-green: #3A6B4F;
    --light-green: #4A7B5F;
    --accent-green: #5A8B6F;
    --primary-blue: var(--accent-green);
    --light-blue: #38bdf8;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --off-white: #fafbfc;
    --border-color: #e9ecef;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --sidebar-width: 280px;
}

/* Layout Structure */
body {
    background-color: var(--off-white) !important;
    color: var(--text-dark) !important;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* Top Navbar Styles */
.navbar {
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.navbar-brand {
    color: var(--text-dark) !important;
    font-weight: 600;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - 60px);
    background-color: var(--dark-green) !important;
    z-index: 1020;
    overflow-y: auto;
}

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

.sidebar-header h5 {
    color: var(--white);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: var(--medium-green);
    color: var(--white);
    text-decoration: none;
}

.sidebar-link.active {
    background-color: var(--medium-green);
    color: var(--white);
    border-left-color: var(--white);
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
}

.sidebar-status-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
}

.sidebar-link.disabled {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    border-left: 3px solid transparent;
    cursor: not-allowed;
    opacity: 0.6;
}

.sidebar-link.disabled:hover {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background-color: var(--off-white);
}

.content-wrapper {
    padding: 2rem;
    max-width: 1200px;
    flex: 1;
}

.alert-container {
    padding: 1rem 2rem 0;
}

/* Public Layout (No Sidebar) */
.public-layout {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Card Styles */
.card {
    background-color: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card {
    background-color: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--light-gray) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-dark) !important;
}

/* Button Styles */
.btn-primary {
    background-color: var(--dark-green) !important;
    border-color: var(--dark-green) !important;
    color: var(--white) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--medium-green) !important;
    border-color: var(--medium-green) !important;
    color: var(--white) !important;
}

.btn-outline-primary {
    color: var(--dark-green) !important;
    border-color: var(--dark-green) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--dark-green) !important;
    border-color: var(--dark-green) !important;
    color: var(--white) !important;
}

.btn-success {
    background-color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: var(--dark-green) !important;
    border-color: var(--dark-green) !important;
}

.progress-container {
    position: relative;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    height: calc(100% + 1rem);
    background-color: var(--bs-border-color);
    z-index: 1;
}

.progress-step:last-child::before {
    display: none;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.progress-step.completed .step-icon {
    background-color: var(--dark-green);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

/* Metric cards */
.card.bg-light {
    border: 1px solid var(--border-color) !important;
    background-color: var(--light-gray) !important;
    color: var(--text-dark) !important;
}

/* Chart containers */
canvas {
    max-height: 200px;
}

/* Alert customizations */
.alert {
    border-left: 4px solid;
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
}

.alert-info {
    border-left-color: var(--accent-green);
    background-color: rgba(90, 139, 111, 0.1) !important;
}

.alert-warning {
    border-left-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.alert-success {
    border-left-color: var(--dark-green);
    background-color: rgba(45, 90, 65, 0.1) !important;
}

.alert-danger {
    border-left-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* Text colors */
.text-primary {
    color: var(--dark-green) !important;
}

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

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

/* Form controls */
.form-control, .form-select {
    background-color: var(--white) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--dark-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 65, 0.25) !important;
}

/* Tables */
.table {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: var(--light-gray) !important;
}

/* Dashboard specific styles */
.navbar-brand i {
    margin-right: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .progress-step {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-step::before {
        display: none;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Code snippet styling */
.font-monospace {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Table improvements */
.table-sm td {
    padding: 0.5rem 0.75rem;
}

/* Button improvements */
.btn i {
    margin-right: 0.5rem;
}

.btn i:only-child {
    margin-right: 0;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Quartile chart containers */
#quartileChart1, #quartileChart2, #quartileChart3, #quartileChart4 {
    max-height: 100px;
}

/* Footer and border styling */
.border-top {
    border-color: var(--border-color) !important;
}

footer {
    background-color: var(--white) !important;
    color: var(--text-muted) !important;
}

/* Fix progress step line color */
.progress-step::before {
    background-color: var(--border-color) !important;
}

/* Badge styling */
.badge {
    background-color: var(--primary-blue) !important;
}

/* List group styling */
.list-group-item {
    background-color: var(--white) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

/* Success and warning text colors */
.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* Button secondary styling */
.btn-secondary {
    background-color: var(--text-muted) !important;
    border-color: var(--text-muted) !important;
    color: var(--white) !important;
}

.btn-outline-secondary {
    color: var(--text-muted) !important;
    border-color: var(--text-muted) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--text-muted) !important;
    border-color: var(--text-muted) !important;
    color: var(--white) !important;
}

/* Badge styling with green theme */
.badge {
    background-color: var(--dark-green) !important;
}

/* Sidebar badge styling */
.sidebar-badge {
    margin-left: auto;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Workflow Steps Styling */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.step-item.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
}

.step-item.current {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    animation: glow-step 2s infinite;
}

.step-item.pending {
    border-color: #e5e7eb;
    background: #f9fafb;
    opacity: 0.7;
}

@keyframes glow-step {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background: #f3f4f6;
}

.step-item.completed .step-icon {
    background: #dcfce7;
}

.step-item.current .step-icon {
    background: #fef3c7;
}

.step-content {
    flex: 1;
}

.step-content h6 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.step-item.pending .step-content h6 {
    color: #9ca3af;
}

.step-item .btn {
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Mobile navigation badges */
.mobile-badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
}

.mobile-status-icon {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .step-item .btn {
        margin-left: 0;
        width: 100%;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Force full width for mobile viewport */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Override any container restrictions */
    .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    /* Hide sidebar on mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* Adjust main content on mobile */
    .main-content {
        margin-left: 0 !important;
        margin-top: 60px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    /* Mobile navbar enhancements */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand .badge {
        font-size: 0.65rem;
    }
    
    /* Mobile navbar collapse styling */
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
        background-color: white;
    
    }
    
    /* Mobile button styling in navbar */
    .navbar-nav .btn {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    /* Custom hamburger menu styling */
    .navbar-toggler {
        padding: 0.375rem 0.5rem;
        border: 1px solid var(--border-color) !important;
        border-radius: 6px;
        background-color: var(--white) !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(45, 90, 65, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 90, 65, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Mobile dropdown menu styling */
    .navbar-collapse .dropdown-menu {
        background-color: var(--white) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
        margin-top: 0.5rem;
    }
    
    .navbar-collapse .dropdown-item {
        color: var(--text-dark) !important;
        padding: 0.75rem 1rem;
    }
    
    .navbar-collapse .dropdown-item:hover {
        background-color: var(--light-gray) !important;
        color: var(--text-dark) !important;
    }
    
    /* Mobile navigation */
    .mobile-nav {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--dark-green);
        padding: 0.5rem 0;
        z-index: 1040;
    }
    
    .mobile-nav-links {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-nav-link {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.75rem;
        padding: 0.5rem;
        transition: color 0.2s ease;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--white);
    }
    
    .mobile-nav-link.disabled {
        color: rgba(255, 255, 255, 0.3);
        cursor: not-allowed;
        opacity: 0.5;
    }
    
    .mobile-nav-link.disabled:hover {
        color: rgba(255, 255, 255, 0.3);
    }
    
    .mobile-nav-link i {
        margin-bottom: 0.25rem;
        width: 18px;
        height: 18px;
    }
    
    /* Adjust content wrapper for mobile nav */
    .content-wrapper {
        padding: 1rem;
        padding-bottom: 80px; /* Space for mobile nav */
    }
}

/* Fix navbar toggler for light theme */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Tagline bar styling */
.tagline-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* CTA Button with gradient and hover animation */
.btn-cta {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--accent-green) 100%) !important;
    border: none !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--medium-green) 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-cta:hover::before {
    left: 0;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 123, 95, 0.3);
    color: var(--white) !important;
}

.btn-cta span, .btn-cta i {
    position: relative;
    z-index: 1;
}

/* Consistent icon styling with matching stroke weights */
[data-feather] {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Icon size consistency */
.navbar [data-feather] {
    width: 18px;
    height: 18px;
}

.card [data-feather] {
    stroke-width: 1.5;
}

.btn [data-feather] {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Enhanced supported countries styling */
.supported-countries .country-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.1);
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.supported-countries .country-item:hover {
    background-color: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

.supported-countries .country-flag {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}



.footer-copyright {
    font-size: 0.875rem;
    margin: 0;
}

.footer-links-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-badge {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #495057;
    text-decoration: none;
}

.footer-legal-row {
    font-size: 0.875rem;
    color: #6c757d;
    gap: 1rem;
}

.footer-legal-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #495057;
    text-decoration: underline;
}

.footer-compliance {
    color: #6c757d;
    font-size: 0.875rem;
}

.footer-email {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: #495057;
    text-decoration: underline;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-links-inline {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    
    .footer-legal-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .simplified-footer .col-md-6:last-child {
        text-align: left !important;
    }
}

/* Enhanced Registration Form Styling */
.form-floating {
    position: relative;
}

.form-floating > label {
    display: flex;
    align-items: center;
    padding: 1rem 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Registration page specific green styling */
.registration-form .progress-bar {
    background-color: var(--light-green) !important;
}

.registration-form .badge.bg-primary {
    background-color: var(--light-green) !important;
}

.registration-form .btn-outline-primary {
    color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

.registration-form .btn-outline-primary:hover,
.registration-form .btn-outline-primary:focus {
    background-color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    color: var(--white) !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control:focus ~ label {
    color: var(--primary-blue);
}

/* Validation icons positioning */
.validation-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 10;
}

.form-floating .validation-icon {
    right: 0.75rem;
}

/* Simple progress bar styling */
.simple-progress {
    background: transparent;
}

.simple-progress .progress {
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9ecef;
}

.simple-progress .progress-bar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    transition: width 0.6s ease;
}

/* Input group enhancements */
.input-group .form-floating {
    flex: 1;
}

.input-group .input-group-text {
    background-color: var(--light-gray);
    border-color: var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
}

.input-group .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
    background-color: var(--light-gray);
}

.input-group .btn-outline-secondary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* Validation state styling */
.has-validation-success .input-group-text {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.has-validation-error .input-group-text {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Dismissible alert styling */
.alert-dismissible .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Enhanced card styling for registration */
.registration-form .card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.registration-form .card-header {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--accent-green) 100%);
    color: var(--white);
    border-bottom: none;
    padding: 1.5rem;
}

.registration-form .card-header h4 {
    margin: 0;
    font-weight: 600;
}

.registration-form .card-body {
    padding: 2rem;
}

/* Form text enhancements */
.form-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.form-text i {
    margin-right: 0.25rem;
}

/* Registration progress steps */
.registration-steps .badge {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Country and industry select styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Enhanced floating label animations */
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 0.2rem rgba(90, 139, 111, 0.25);
}

/* Registration form specific focus states */
.registration-form .form-control:focus,
.registration-form .form-select:focus {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(90, 139, 111, 0.25) !important;
}

/* Override Bootstrap success colors to match our green theme */
.btn-outline-success {
    color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    color: var(--white) !important;
}

.progress-bar.bg-success {
    background-color: var(--light-green) !important;
}

/* Fix eligibility notice box to use green outline */
.alert-info {
    border-color: var(--light-green) !important;
    background-color: rgba(74, 123, 95, 0.1) !important;
    color: var(--text-dark) !important;
}

/* Global blue to green overrides for entire app */
.bg-primary {
    background-color: var(--accent-green) !important;
}

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

.text-info {
    color: var(--medium-green) !important;
}

.border-primary {
    border-color: var(--accent-green) !important;
}

.border-info {
    border-color: var(--light-green) !important;
}

.badge.bg-primary {
    background-color: var(--accent-green) !important;
}

.btn-primary {
    background-color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--dark-green) !important;
    border-color: var(--dark-green) !important;
}

/* Password toggle button styling */
.input-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Dashboard Enhancements */
.company-profile-card {
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.company-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.company-logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0f2fe;
}

.company-logo-placeholder i {
    font-size: 24px;
}

.compliance-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Deadline Alert with Countdown */
.deadline-alert {
    border: none;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #92400e;
}

/* Animated Compliance Checklist */
.compliance-checklist {
    padding: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background: #f8fafc;
    border-radius: 8px;
    margin: 0 -1rem;
    padding: 1rem;
}

.task-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.status-indicator {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-indicator.completed {
    animation: checkmarkBounce 0.6s ease-out;
}

.status-indicator.in-progress {
    animation: pulse 1.5s infinite;
}

.status-indicator.pending {
    opacity: 0.5;
}

@keyframes checkmarkBounce {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

.checklist-item.completed .task-title {
    color: #059669;
}

.checklist-item.in-progress .task-title {
    color: #d97706;
}

.checklist-item.pending .task-title {
    color: #64748b;
}

/* Expandable Ireland Requirements Accordion */
.collapse-icon {
    transition: transform 0.3s ease;
}

.btn-link[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.btn-link {
    color: #1e293b !important;
    text-decoration: none !important;
}

.btn-link:hover {
    background: #f8fafc;
    border-radius: 8px;
}

.card-header .btn-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

/* Dashboard Responsive Design */
@media (max-width: 768px) {
    /* Main dashboard layout fixes */
    .main-content .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .content-wrapper {
        padding: 1rem 0.5rem;
        padding-bottom: 80px; /* Space for mobile nav */
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Force all dashboard cards to full width on mobile */
    .main-content .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .main-content .row > .col-md-8,
    .main-content .row > .col-md-4,
    .main-content .row > .col-12 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
        padding: 0 !important;
    }
    
    /* Ensure all cards take full width */
    .card {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
        border-radius: 12px !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .card-header {
        padding: 1rem 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Extra aggressive mobile width fixes */
    * {
        box-sizing: border-box !important;
    }
    
    .dashboard-container,
    .dashboard-wrapper,
    .page-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Company profile card mobile fixes */
    .company-profile-card {
        margin: 0 0 1rem 0 !important;
    }
    
    .company-profile-card .row {
        text-align: center;
        margin: 0 !important;
    }
    
    .company-profile-card .col-auto,
    .company-profile-card .col {
        margin-bottom: 1rem;
        text-align: center;
        padding: 0.5rem !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .company-profile-card .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
        align-items: center;
        justify-content: center;
    }
    
    .company-profile-card .d-flex.flex-column {
        align-items: center !important;
        text-align: center !important;
    }
    
    .company-logo-placeholder {
        margin: 0 auto 1rem auto !important;
    }
    
    /* Workflow steps mobile styling - enhanced from existing */
    .step-item {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .step-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 1rem !important;
    }
    
    .step-content {
        margin-bottom: 1rem !important;
    }
    
    .step-content h6 {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .step-item .btn {
        max-width: 200px !important;
        margin-top: 0.5rem !important;
    }
    
    /* Quick actions mobile fixes */
    .quick-actions .row {
        margin: 0;
    }
    
    .quick-actions .col-md-6 {
        padding: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    /* Subscription widget mobile fixes */
    .card-header.bg-primary,
    .card-header.bg-info,
    .card-header.bg-secondary,
    .card-header.bg-dark {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Alert boxes mobile fixes */
    .alert {
        margin: 0 0 1rem 0 !important;
        font-size: 0.875rem;
        width: 100% !important;
        border-radius: 12px !important;
        padding: 1rem 1.5rem !important;
    }
    
    .deadline-alert {
        text-align: center;
    }
    
    .deadline-alert .d-flex {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .deadline-alert .flex-grow-1 {
        margin: 1rem 0;
        width: 100%;
    }
    
    .countdown-timer {
        font-size: 1rem !important;
        padding: 0.5rem;
        background: rgba(255,255,255,0.2);
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    /* Progress bar container */
    .progress {
        margin: 1rem 0;
    }
    
    /* Badges mobile styling */
    .compliance-badge,
    .subscription-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin: 0.25rem 0;
    }
    
    /* Checklist items mobile fixes */
    .checklist-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .task-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Upload Page Enhancements */
.upload-section {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.upload-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--accent-green) 100%);
}

/* Calendar Icon Animation */
.calendar-icon {
    transition: transform 0.2s ease;
}

.input-group:focus-within .calendar-icon {
    transform: scale(1.1);
    color: var(--accent-green);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--accent-green);
    background: rgba(90, 139, 111, 0.1);
}

.upload-zone.drag-over {
    border-color: var(--accent-green);
    background: rgba(90, 139, 111, 0.15);
    transform: scale(1.02);
}

.upload-zone.file-selected {
    border-color: #10b981;
    background: #ecfdf5;
}

.upload-icon {
    font-size: 3rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.upload-zone:hover .upload-icon {
    color: var(--accent-green);
    transform: scale(1.1);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-text {
    pointer-events: none;
}

/* Field Tags */
.field-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.field-tag-name {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-gender {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-role {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-salary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-bonus {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-department {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-contract {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-hours {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-hourly {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-gross {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.field-tag-bik {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* CSV Sample */
.csv-sample {
    background: #1f2937;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.csv-header {
    background: #374151;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.csv-rows {
    padding: 0.5rem;
}

.csv-code {
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

.csv-field {
    color: #60a5fa;
    font-weight: 600;
}

/* Validation Icons */
.validation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.validation-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.validation-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.validation-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

.validation-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.validation-item:last-child {
    border-bottom: none;
}

.validation-list {
    margin: 0;
}

/* Feather icon sizing */
.feather-xs {
    width: 14px;
    height: 14px;
}

/* Text sizing utilities */
.text-sm {
    font-size: 0.875rem;
}

/* Collapse button styling */
.collapse-icon {
    transition: transform 0.3s ease;
}

.collapsed .collapse-icon {
    transform: rotate(0deg);
}

.collapse-icon:not(.collapsed) {
    transform: rotate(180deg);
}

/* Upload Button Animation */
.upload-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.upload-btn:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 0.6s ease-in-out;
}

.upload-btn.uploading {
    animation: pulse 1.5s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Upload Guide Cards */
.upload-guide {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.upload-guide:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Feather Icon Sizing */
.feather-xs {
    width: 12px;
    height: 12px;
}

/* Collapse Icon Animation */
.collapse-icon {
    transition: transform 0.3s ease;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .upload-section,
    .upload-zone,
    .calendar-icon,
    .upload-icon,
    .upload-btn,
    .collapse-icon {
        transition: none;
        animation: none;
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .upload-zone {
        border-width: 3px;
    }
    
    .field-tag {
        border: 2px solid currentColor;
    }
    
    .validation-icon {
        border: 2px solid currentColor;
    }
}

/* Footer Styling */
.footer-section {
    background-color: #2d3748;
    color: #4a5568;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    border-top: none;
}

/* Footer positioning for sidebar layout */
.main-content .simplified-footer {
    margin-left: 0;
    width: 100%;
}

.simplified-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.875rem;
    color: #6c757d;
    position: relative;
    z-index: 1000;
}

/* Main content container */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background-color: var(--off-white);
    display: flex;
    flex-direction: column;
}



/* Enhanced Report Page Styling */
.report-page-container {
    background-color: #F9F9F9;
    min-height: 100vh;
    padding: 0;
}

.report-header-section {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--accent-green) 100%);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.report-status-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.report-status-banner.success {
    border-left: 4px solid #10b981;
}

.report-status-banner.warning {
    border-left: 4px solid #f59e0b;
}

/* Report Cards */
.report-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.report-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

.report-card-header h4,
.report-card-header h5,
.report-card-header h6 {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

.report-meta {
    margin-top: 0.5rem;
}

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

/* Company Summary */
.company-summary .info-item {
    margin-bottom: 1rem;
}

.company-summary .info-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.company-summary .info-item value {
    display: block;
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-card.metric-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.metric-card.metric-warning .metric-value {
    color: #dc2626;
}

.metric-card.metric-success {
    border-color: #10b981;
    background: #ecfdf5;
}

.metric-card.metric-success .metric-value {
    color: #059669;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.metric-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Quartile Grid */
.quartile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.quartile-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.quartile-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Quartile Card Styling */
.enhanced-quartile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-quartile-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #16a34a;
}

.quartile-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.quartile-title-enhanced {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.quartile-badge {
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.3);
    min-width: 40px;
    text-align: center;
}

.chart-container-enhanced {
    height: 120px;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.chart-legend-enhanced {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.75rem;
}

.legend-item-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.legend-item-enhanced:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.legend-icon-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend-item-enhanced.female .legend-icon-enhanced {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.legend-item-enhanced.male .legend-icon-enhanced {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.legend-text {
    text-align: center;
    flex-grow: 1;
}

.percentage-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

.count-text {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Legacy styles for backward compatibility */
.quartile-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.quartile-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.quartile-range {
    background: var(--accent-green);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gender-distribution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gender-item {
    text-align: center;
}

.gender-item.female .percentage {
    color: var(--accent-green);
    font-size: 1.5rem;
    font-weight: 700;
}

.gender-item.male .percentage {
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 700;
}

.gender-item .label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0.25rem 0;
}

.gender-item .count {
    font-size: 0.75rem;
    color: #6b7280;
}

.quartile-chart {
    height: 80px;
    margin-top: 1rem;
}

.interactive-chart {
    cursor: pointer;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.legend-item.female {
    color: #ec4899;
}

.legend-item.male {
    color: #3b82f6;
}

.legend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    font-weight: bold;
}

.legend-label {
    font-weight: 600;
    text-transform: capitalize;
}

/* Enhanced Diversity Metrics Styling */
.enhanced-diversity-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e1e7ef;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.enhanced-diversity-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #16a34a;
}

.diversity-header-enhanced {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e1e7ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.diversity-badge {
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.diversity-section-enhanced {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.section-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title-enhanced {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
}

.balance-score-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Enhanced Balance Bar */
.balance-bar-enhanced {
    margin: 1.25rem 0;
}

.balance-track {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
}

.female-portion-enhanced {
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.male-portion-enhanced {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.portion-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.balance-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.75rem;
}

.legend-female, .legend-male {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-color.female {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.legend-color.male {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Enhanced Senior Roles Stats */
.senior-roles-stats-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card-enhanced {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.stat-card-enhanced:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.stat-card-enhanced.primary {
    border-color: #16a34a;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05), rgba(5, 150, 105, 0.02));
}

.stat-card-enhanced.female {
    border-color: #ec4899;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(190, 24, 93, 0.02));
}

.stat-card-enhanced.score {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.02));
}

.stat-icon-enhanced {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card-enhanced.primary .stat-icon-enhanced {
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white;
}

.stat-card-enhanced.female .stat-icon-enhanced {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
}

.stat-card-enhanced.score .stat-icon-enhanced {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.stat-content {
    flex-grow: 1;
    text-align: center;
}

.stat-value-enhanced {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.stat-label-enhanced {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Empty State */
.empty-state-enhanced {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #94a3b8;
}

.empty-message {
    font-size: 0.95rem;
    margin: 0;
}

/* Enhanced Bonus Stats */
.bonus-stats-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bonus-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s ease;
}

.bonus-row:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bonus-row.overall {
    border-color: #16a34a;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05), rgba(255, 255, 255, 0.9));
}

.bonus-row.male {
    border-color: #3b82f6;
}

.bonus-row.female {
    border-color: #ec4899;
}

.bonus-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    min-width: 120px;
}

.bonus-value-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.bonus-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(135deg, #16a34a, #059669);
    min-width: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}

.bonus-bar.male {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.bonus-bar.female {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 1px 3px rgba(236, 72, 153, 0.3);
}

.bonus-percentage {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    min-width: 50px;
    text-align: right;
}

.bonus-row.overall .bonus-percentage {
    font-size: 1rem;
    color: #16a34a;
}

/* Compliance Alerts */
.compliance-alert {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compliance-alert.warning {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.compliance-alert.success {
    border-left: 4px solid #10b981;
    background: #ecfdf5;
}

.alert-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.alert-icon i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.compliance-alert.success .alert-icon i {
    color: #10b981;
}

.alert-content h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #1f2937;
}

.alert-content p {
    margin: 0 0 1rem 0;
    color: #4b5563;
    line-height: 1.5;
}

.alert-actions {
    margin-top: 0.75rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
}

.action-btn:hover {
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 139, 111, 0.15);
    text-decoration: none;
}

.action-btn.primary {
    border-color: var(--accent-green);
    background: rgba(90, 139, 111, 0.1);
}

.action-btn.primary:hover {
    background: rgba(90, 139, 111, 0.15);
}

.action-btn.secondary:hover {
    background: #f9fafb;
}

.btn-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.btn-icon i {
    font-size: 1.25rem;
    color: var(--accent-green);
}

.btn-content {
    flex: 1;
}

.btn-title {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.btn-description {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Regulatory Links */
.regulatory-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.requirement-item i {
    color: var(--accent-green);
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.requirement-item strong {
    display: block;
    color: #1f2937;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.requirement-item p {
    margin: 0;
    font-size: 0.75rem;
}

.requirement-item a {
    color: var(--accent-green);
    font-weight: 500;
}

/* Compliance Checklist */
.compliance-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checklist-item.completed {
    background: #ecfdf5;
    border: 1px solid #10b981;
}

.checklist-item.pending {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.status-icon {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.checklist-item.completed .status-icon {
    color: #10b981;
}

.checklist-item.pending .status-icon {
    color: #9ca3af;
}

.checklist-item span {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Custom Tooltips */
.custom-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    max-width: 200px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
    line-height: 1.4;
}

.custom-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
    .report-page-container {
        padding: 0 1rem;
    }
    
    .report-card-body,
    .report-card-header {
        padding: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quartile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        gap: 0.75rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .report-header-section {
        padding: 1rem 0;
    }
    
    .report-status-banner {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .compliance-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
}

/* Enhanced CAR Page Styling */
.car-page-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* CAR Header */
.car-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.car-header-content {
    flex: 1;
}

.car-title {
    color: #1f2937;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.car-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

.car-context {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.context-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.context-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 100px;
}

.context-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
}

/* Stepper Navigation */
.stepper-container {
    margin-bottom: 2rem;
}

.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.completed::after {
    background: var(--accent-green);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: var(--accent-green);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--accent-green);
    font-weight: 600;
}

.step.completed .step-label {
    color: #10b981;
    font-weight: 600;
}

/* CAR Form Container */
.car-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.form-step {
    display: none;
    padding: 2rem;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Cards */
.step-card {
    max-width: 800px;
    margin: 0 auto;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.step-header h4 {
    color: #1f2937;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.help-tooltip {
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.help-tooltip:hover {
    color: var(--accent-green);
    transform: scale(1.1);
}

/* Guidance Panels */
.guidance-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.guidance-header {
    background: var(--accent-green);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.guidance-content {
    padding: 1rem;
}

.guidance-content p {
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 0.875rem;
}

.guidance-content ul {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.guidance-content li {
    margin-bottom: 0.25rem;
}

.example-text {
    background: #e0f2fe;
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #0c4a6e;
}

.example-text strong {
    color: #0369a1;
}

/* Causes Grid for Root Cause Step */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cause-category {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
}

.cause-category h6 {
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
}

.cause-category ul {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.75rem;
}

/* Strategy Framework */
.strategy-framework {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.framework-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
}

.framework-item h6 {
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.framework-item p {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.required {
    color: #dc2626;
    margin-left: 0.25rem;
}

/* Rich Text Editor Styling */
.rich-editor-container {
    margin-bottom: 0.5rem;
}

.rich-editor {
    min-height: 200px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
}

.rich-editor .ql-toolbar {
    border-top: 1px solid #d1d5db;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: #f9fafb;
}

.rich-editor .ql-container {
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-family: inherit;
}

.rich-editor .ql-editor {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

.rich-editor .ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
    font-size: 0.875rem;
}

/* Character Count */
.character-count {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.25rem;
}

/* Error Feedback */
.error-feedback {
    margin-top: 0.5rem;
}

.error-item {
    color: #dc2626;
    font-size: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.form-group.has-error .rich-editor {
    border-color: #dc2626;
}

.form-group.has-error .rich-editor .ql-toolbar {
    border-color: #dc2626;
}

.form-group.has-error .rich-editor .ql-container {
    border-color: #dc2626;
}

/* Review & Submit Step */
.review-summary {
    margin-bottom: 2rem;
}

.summary-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.summary-section h6 {
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
}

.summary-content {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    max-height: 100px;
    overflow-y: auto;
    font-style: italic;
}

/* Completion Checklist */
.completion-checklist h6 {
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.checklist-item.completed {
    background: #ecfdf5;
    border-color: #10b981;
}

.check-icon {
    margin-right: 0.75rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.checklist-item.completed .check-icon {
    color: #10b981;
}

.checklist-item span {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    gap: 1rem;
}

.nav-spacer {
    flex: 1;
}

.form-navigation .btn {
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .car-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .car-context {
        align-self: stretch;
    }
    
    .stepper {
        padding: 1rem;
    }
    
    .step-label {
        font-size: 0.6875rem;
    }
    
    .causes-grid {
        grid-template-columns: 1fr;
    }
    
    .strategy-framework {
        gap: 0.75rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .car-page-container {
        padding: 1rem 0;
    }
    
    .car-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .car-title {
        font-size: 1.25rem;
    }
    
    .stepper {
        padding: 1rem 0.5rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.625rem;
    }
    
    .form-step {
        padding: 1.5rem;
    }
    
    .guidance-content {
        padding: 0.75rem;
    }
    
    .rich-editor {
        min-height: 150px;
    }
}

/* My Reports Page Styling */
.reports-page-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Reports Header */
.reports-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.reports-header-content {
    flex: 1;
}

.reports-title {
    color: #1f2937;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.reports-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

.reports-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.report-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    /* background: linear-gradient(135deg, var(--dark-green) 0%, var(--accent-green) 100%); */
    background: #e4e4e4;
    color: white;
}

.report-year {
    font-size: 1.25rem;
    font-weight: 700;
}

.report-status {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.5rem;
}

.status-icon {
    width: 14px;
    height: 14px;
}

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

.report-title {
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
}

.report-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-item i {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

/* Report Metrics */
.report-metrics {
    margin-bottom: 1.25rem;
}

.metric-summary {
    display: flex;
    gap: 1rem;
}

.metric-item {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.metric-item.metric-warning {
    background: #fffbeb;
    border-color: #f59e0b;
}

.metric-item.metric-success {
    background: #ecfdf5;
    border-color: #10b981;
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-item.metric-warning .metric-value {
    color: #dc2626;
}

.metric-item.metric-success .metric-value {
    color: #059669;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* Compliance Alert */
.compliance-alert {
    display: flex;
    align-items: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.alert-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Report Card Actions */
.report-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.report-card-actions .btn {
    flex: 1;
    font-size: 0.875rem;
}

/* Progress Indicator */
.report-progress {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    margin: 0 -1.5rem -1.5rem -1.5rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.progress-step.completed::after {
    background: #10b981;
}

.step-icon {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.progress-step.completed .step-icon {
    background: #10b981;
    color: white;
}

.progress-step span {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.progress-step.completed span {
    color: #10b981;
    font-weight: 600;
}

/* Reports Summary */
.reports-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.summary-card h6 {
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-number {
    background: var(--accent-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.stat-text {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.next-step .step-icon {
    width: 20px;
    height: 20px;
    margin: 0;
    background: none;
    position: static;
}

.next-step .step-icon.warning {
    color: #f59e0b;
}

.next-step .step-icon.info {
    color: var(--accent-green);
}

.next-step .step-icon.success {
    color: #10b981;
}

.next-step span {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.empty-state-icon i {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.empty-state h4 {
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.empty-state p {
    color: #6b7280;
    margin: 0 0 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .reports-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .reports-stats {
        align-self: stretch;
        justify-content: space-around;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .report-card-actions {
        flex-direction: column;
    }
    
    .progress-step span {
        font-size: 0.6875rem;
    }
    
    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-state-actions .btn {
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .reports-page-container {
        padding: 1rem 0;
    }
    
    .reports-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .reports-title {
        font-size: 1.5rem;
    }
    
    .reports-stats {
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .report-card-body {
        padding: 1rem;
    }
    
    .metric-summary {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .report-progress {
        padding: 0.75rem;
    }
    
    .progress-step span {
        display: none;
    }
    
    .step-icon {
        width: 20px;
        height: 20px;
        padding: 3px;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state-icon {
        width: 60px;
        height: 60px;
    }
    
    .empty-state-icon i {
        width: 30px;
        height: 30px;
    }
}
