﻿/* ============================================
   VEHICLE INSURANCE DIALOG - LIGHT THEME
   Toyota Professional Insurance Interface
   ============================================ */

/* CSS Variables - Light Theme */
.theme-light {
    --vi-toyota-red: #eb0a1e;
    --vi-toyota-red-dark: #c20818;
    --vi-toyota-grey: #595959;
    --vi-toyota-grey-dark: #2d2d2d;
    --vi-bg-primary: #f8f9fa;
    --vi-bg-card: #ffffff;
    --vi-border: #e5e7eb;
    --vi-text-primary: #2d2d2d;
    --vi-text-secondary: #595959;
    --vi-text-muted: #8c8c8c;
    --vi-success: #22c55e;
    --vi-warning: #f59e0b;
    --vi-error: #ef4444;
}

    /* Container & Layout */
    .theme-light .vehicle-insurance-form-container {
        color: var(--vi-text-primary);
    }

    /* Header Section */
    .theme-light .vehicle-insurance-form-header {
        border-bottom: 2px solid var(--vi-toyota-red);
    }

    .theme-light .vehicle-insurance-header-icon {
        background: linear-gradient(135deg, var(--vi-toyota-red) 0%, var(--vi-toyota-red-dark) 100%);
        box-shadow: 0 4px 12px rgba(235, 10, 30, 0.25);
    }

    .theme-light .vehicle-insurance-header-text h2 {
        color: var(--vi-toyota-grey-dark);
    }

    .theme-light .vehicle-insurance-header-text p {
        color: var(--vi-text-secondary);
    }

    /* Policyholder Button */
    .theme-light .vehicle-insurance-btn-policyholder {
        background: linear-gradient(135deg, var(--vi-toyota-red) 0%, var(--vi-toyota-red-dark) 100%);
        box-shadow: 0 4px 12px rgba(235, 10, 30, 0.25);
    }

        .theme-light .vehicle-insurance-btn-policyholder:hover {
            box-shadow: 0 8px 20px rgba(235, 10, 30, 0.35);
        }

    .theme-light .vehicle-insurance-btn-tooltip {
        background: var(--vi-toyota-grey-dark);
        color: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

        .theme-light .vehicle-insurance-btn-tooltip::before {
            border-bottom-color: var(--vi-toyota-grey-dark);
        }

    /* Progress Ring */
    .theme-light .vehicle-insurance-completion-status {
        background: white;
        border: 1px solid var(--vi-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .theme-light .vehicle-insurance-progress-ring-bg {
        stroke: #e5e7eb;
    }

    .theme-light .vehicle-insurance-progress-ring-circle {
        filter: drop-shadow(0 2px 8px rgba(235, 10, 30, 0.3));
    }

    .theme-light .vehicle-insurance-progress-text .vehicle-insurance-percentage {
        background: linear-gradient(135deg, var(--vi-toyota-red) 0%, var(--vi-toyota-red-dark) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .theme-light .vehicle-insurance-progress-text small {
        color: var(--vi-text-muted);
    }

    /* Status Breakdown */
    .theme-light .vehicle-insurance-status-item {
        background: white;
        border: 1px solid var(--vi-border);
    }

        .theme-light .vehicle-insurance-status-item::before {
            background: var(--vi-toyota-red);
        }

        .theme-light .vehicle-insurance-status-item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .theme-light .vehicle-insurance-status-item i {
            color: var(--vi-toyota-red);
            background: rgba(235, 10, 30, 0.1);
        }

        .theme-light .vehicle-insurance-status-item span {
            color: var(--vi-toyota-grey-dark);
        }

        .theme-light .vehicle-insurance-status-item.vehicle-insurance-complete {
            border-color: rgba(34, 197, 94, 0.3);
            background: rgba(34, 197, 94, 0.03);
        }

            .theme-light .vehicle-insurance-status-item.vehicle-insurance-complete i {
                color: var(--vi-success);
                background: rgba(34, 197, 94, 0.1);
            }

        .theme-light .vehicle-insurance-status-item.vehicle-insurance-error {
            border-color: rgba(239, 68, 68, 0.3);
            background: rgba(239, 68, 68, 0.03);
        }

            .theme-light .vehicle-insurance-status-item.vehicle-insurance-error i {
                color: var(--vi-error);
                background: rgba(239, 68, 68, 0.1);
            }

    .theme-light .vehicle-insurance-error-count {
        background: rgba(239, 68, 68, 0.1);
        color: var(--vi-error);
    }

    /* Form Sections */
    .theme-light .vehicle-insurance-form-section {
        background: white;
        border: 1px solid var(--vi-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

        .theme-light .vehicle-insurance-form-section:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .theme-light .vehicle-insurance-form-section.vehicle-insurance-has-errors {
            border-color: rgba(239, 68, 68, 0.4);
        }

        .theme-light .vehicle-insurance-form-section.vehicle-insurance-is-complete {
            border-color: rgba(34, 197, 94, 0.4);
        }

    .theme-light .vehicle-insurance-section-header {
        background: #fafafa;
        border-bottom: 1px solid var(--vi-border);
    }

    .theme-light .vehicle-insurance-has-errors .vehicle-insurance-section-header {
        background: #fef2f2;
    }

    .theme-light .vehicle-insurance-is-complete .vehicle-insurance-section-header {
        background: #f0fdf4;
    }

    .theme-light .vehicle-insurance-section-title i {
        color: var(--vi-toyota-red);
    }

    .theme-light .vehicle-insurance-section-title h3 {
        color: var(--vi-toyota-grey-dark);
    }

    /* Status Badges */
    .theme-light .vehicle-insurance-status {
        background: white;
        border: 1px solid var(--vi-border);
    }

        .theme-light .vehicle-insurance-status.vehicle-insurance-complete {
            color: var(--vi-success);
            background: rgba(34, 197, 94, 0.1);
            border-color: rgba(34, 197, 94, 0.3);
        }

        .theme-light .vehicle-insurance-status.vehicle-insurance-error {
            color: var(--vi-error);
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .theme-light .vehicle-insurance-status.vehicle-insurance-pending {
            color: var(--vi-warning);
            background: rgba(245, 158, 11, 0.1);
            border-color: rgba(245, 158, 11, 0.3);
        }

    .theme-light .vehicle-insurance-btn-toggle {
        color: var(--vi-text-muted);
    }

        .theme-light .vehicle-insurance-btn-toggle:hover {
            background: rgba(235, 10, 30, 0.1);
            color: var(--vi-toyota-red);
        }

    /* Section Content */
    .theme-light .vehicle-insurance-section-content {
        border-top: 1px solid var(--vi-border);
        background: white;
    }

    /* Form Inputs */
    .theme-light .vehicle-insurance-form-group label {
        color: var(--vi-toyota-grey-dark);
    }

    .theme-light .vehicle-insurance-required {
        color: var(--vi-toyota-red);
    }

    .theme-light .vehicle-insurance-input-wrapper select,
    .theme-light .vehicle-insurance-input-wrapper input {
        background: white;
        border: 1px solid var(--vi-border);
        color: var(--vi-toyota-grey-dark);
    }

        .theme-light .vehicle-insurance-input-wrapper select:focus,
        .theme-light .vehicle-insurance-input-wrapper input:focus {
            border-color: var(--vi-toyota-red);
            box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.1);
        }

        .theme-light .vehicle-insurance-input-wrapper select::placeholder,
        .theme-light .vehicle-insurance-input-wrapper input::placeholder {
            color: var(--vi-text-muted);
        }

    .theme-light .vehicle-insurance-has-error .vehicle-insurance-input-wrapper select,
    .theme-light .vehicle-insurance-has-error .vehicle-insurance-input-wrapper input {
        border-color: var(--vi-error);
        background: rgba(239, 68, 68, 0.05);
    }

    .theme-light .vehicle-insurance-input-icon,
    .theme-light .vehicle-insurance-select-icon {
        color: var(--vi-text-muted);
    }

    /* Error & Warning Messages */
    .theme-light .vehicle-insurance-error-message {
        color: var(--vi-error);
    }

    .theme-light .vehicle-insurance-warning-message {
        color: var(--vi-warning);
    }

    .theme-light .vehicle-insurance-info-message {
        background: rgba(235, 10, 30, 0.05);
        border: 1px solid rgba(235, 10, 30, 0.2);
        color: var(--vi-toyota-red);
    }

    /* Validation Panel */
    .theme-light .vehicle-insurance-validation-panel {
        background: white;
        border: 1px solid var(--vi-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .theme-light .vehicle-insurance-panel-header {
        background: #fafafa;
        border-bottom: 2px solid var(--vi-toyota-red);
    }

        .theme-light .vehicle-insurance-panel-header i {
            color: var(--vi-toyota-red);
        }

        .theme-light .vehicle-insurance-panel-header h4 {
            color: var(--vi-toyota-grey-dark);
        }

    .theme-light .vehicle-insurance-validation-content {
        background: white;
    }

    .theme-light .vehicle-insurance-validation-section .vehicle-insurance-section-header h5 {
        color: var(--vi-toyota-grey-dark);
    }

    /* Validation Items */
    .theme-light .vehicle-insurance-validation-item {
        background: white;
        border: 1px solid var(--vi-border);
    }

        .theme-light .vehicle-insurance-validation-item.vehicle-insurance-valid {
            border-color: rgba(34, 197, 94, 0.4);
            background: rgba(34, 197, 94, 0.05);
            color: var(--vi-success);
        }

        .theme-light .vehicle-insurance-validation-item.vehicle-insurance-invalid {
            border-color: rgba(239, 68, 68, 0.4);
            background: rgba(239, 68, 68, 0.05);
            color: var(--vi-error);
        }

    .theme-light .vehicle-insurance-badge.vehicle-insurance-success {
        background: rgba(34, 197, 94, 0.1);
        color: var(--vi-success);
    }

    .theme-light .vehicle-insurance-badge.vehicle-insurance-warning {
        background: rgba(245, 158, 11, 0.1);
        color: var(--vi-warning);
    }

    .theme-light .vehicle-insurance-badge.vehicle-insurance-error {
        background: rgba(239, 68, 68, 0.1);
        color: var(--vi-error);
    }

    /* Premium Summary */
    .theme-light .vehicle-insurance-premium-summary {
        border-top: 1px solid var(--vi-border);
    }

    .theme-light .vehicle-insurance-summary-header i {
        color: var(--vi-toyota-red);
    }

    .theme-light .vehicle-insurance-summary-header h5 {
        color: var(--vi-toyota-grey-dark);
    }

    .theme-light .vehicle-insurance-premium-details {
        background: linear-gradient(135deg, var(--vi-toyota-red) 0%, var(--vi-toyota-red-dark) 100%);
        box-shadow: 0 8px 20px rgba(235, 10, 30, 0.3);
    }

    /* Discount Field */
    .theme-light .vehicle-insurance-discount-row {
        border-top-color: rgba(255, 255, 255, 0.2);
    }

    .theme-light .vehicle-insurance-discount-field {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        color: white;
    }

        .theme-light .vehicle-insurance-discount-field:focus {
            background: rgba(255, 255, 255, 0.25);
            border-color: white;
        }

    .theme-light .vehicle-insurance-discount-amount,
    .theme-light .vehicle-insurance-discount-value {
        color: #4ade80 !important;
    }

    /* Calculating State */
    .theme-light .vehicle-insurance-calculating-premium {
        background: rgba(235, 10, 30, 0.05);
        border: 1px solid rgba(235, 10, 30, 0.2);
    }

    .theme-light .vehicle-insurance-spinner i {
        color: var(--vi-toyota-red);
    }

    .theme-light .vehicle-insurance-calculating-text h5 {
        color: var(--vi-toyota-grey-dark);
    }

    .theme-light .vehicle-insurance-calculating-text p {
        color: var(--vi-text-secondary);
    }

    /* Premium Placeholder */
    .theme-light .vehicle-insurance-premium-placeholder {
        background: #f9fafb;
        border: 1px dashed #cbd5e0;
    }

    .theme-light .vehicle-insurance-placeholder-icon {
        color: var(--vi-text-muted);
    }

    .theme-light .vehicle-insurance-placeholder-text h5 {
        color: var(--vi-text-secondary);
    }

    .theme-light .vehicle-insurance-placeholder-text p {
        color: var(--vi-text-muted);
    }

    /* Broker Notes */
    .theme-light .vehicle-insurance-broker-notes {
        background: white;
        border: 1px solid var(--vi-border);
    }

    .theme-light .vehicle-insurance-notes-header {
        background: #fafafa;
        border-bottom: 1px solid var(--vi-border);
    }

        .theme-light .vehicle-insurance-notes-header i {
            color: var(--vi-toyota-red);
        }

        .theme-light .vehicle-insurance-notes-header h4 {
            color: var(--vi-toyota-grey-dark);
        }

    .theme-light .vehicle-insurance-note-item i {
        color: var(--vi-toyota-red);
    }

    .theme-light .vehicle-insurance-note-item span {
        color: var(--vi-text-secondary);
    }

    /* Authorization Section */
    .theme-light .vehicle-insurance-authorization-item {
        background: white;
        border: 1px solid var(--vi-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

        .theme-light .vehicle-insurance-authorization-item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

    .theme-light .vehicle-insurance-authorization-header {
        background: #fafafa;
        border-bottom: 1px solid var(--vi-border);
    }

    .theme-light .vehicle-insurance-authorization-badge {
        background: rgba(245, 158, 11, 0.1);
        color: var(--vi-warning);
    }

    .theme-light .vehicle-insurance-authorization-approved .vehicle-insurance-authorization-badge {
        background: rgba(34, 197, 94, 0.1);
        color: var(--vi-success);
    }

    .theme-light .vehicle-insurance-authorization-declined .vehicle-insurance-authorization-badge {
        background: rgba(239, 68, 68, 0.1);
        color: var(--vi-error);
    }

    .theme-light .vehicle-insurance-authorization-info h4 {
        color: var(--vi-toyota-grey-dark);
    }

    .theme-light .vehicle-insurance-authorization-detail {
        color: var(--vi-text-secondary);
    }

    /* Authorization Criteria */
    .theme-light .vehicle-insurance-criteria-list {
        background: #f9fafb;
        border-bottom: 1px solid var(--vi-border);
    }

        .theme-light .vehicle-insurance-criteria-list h5 {
            color: var(--vi-text-secondary);
        }

    .theme-light .vehicle-insurance-criteria-met {
        background: rgba(34, 197, 94, 0.05);
        color: var(--vi-success);
    }

    .theme-light .vehicle-insurance-criteria-unmet {
        background: rgba(239, 68, 68, 0.05);
        color: var(--vi-error);
    }

    /* Authorization Actions */
    .theme-light .vehicle-insurance-authorization-actions {
        background: #f9fafb;
        border-bottom: 1px solid var(--vi-border);
    }

    .theme-light .vehicle-insurance-btn-approve {
        background: linear-gradient(135deg, var(--vi-success) 0%, #16a34a 100%);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    }

        .theme-light .vehicle-insurance-btn-approve:hover {
            box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
        }

    .theme-light .vehicle-insurance-btn-decline {
        background: linear-gradient(135deg, var(--vi-error) 0%, #dc2626 100%);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

        .theme-light .vehicle-insurance-btn-decline:hover {
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
        }

    .theme-light .vehicle-insurance-authorization-footer {
        background: #f9fafb;
        color: var(--vi-text-muted);
    }

    /* Authorization Messages */
    .theme-light .vehicle-insurance-auth-message {
        background: rgba(245, 158, 11, 0.05);
        border: 1px solid rgba(245, 158, 11, 0.3);
    }

        .theme-light .vehicle-insurance-auth-message i {
            color: var(--vi-warning);
        }

        .theme-light .vehicle-insurance-auth-message p {
            color: var(--vi-text-secondary);
        }

    .theme-light .vehicle-insurance-auth-declined {
        background: rgba(239, 68, 68, 0.05);
        border-color: rgba(239, 68, 68, 0.3);
    }

        .theme-light .vehicle-insurance-auth-declined i {
            color: var(--vi-error);
        }

    .theme-light .vehicle-insurance-auth-pending {
        background: rgba(245, 158, 11, 0.05);
        border: 1px dashed rgba(245, 158, 11, 0.3);
    }

    .theme-light .vehicle-insurance-auth-icon {
        color: var(--vi-warning);
    }

    .theme-light .vehicle-insurance-auth-text h5 {
        color: var(--vi-text-secondary);
    }

    .theme-light .vehicle-insurance-auth-text p {
        color: var(--vi-text-muted);
    }

    .theme-light .vehicle-insurance-provisional-note {
        background: rgba(245, 158, 11, 0.1);
    }

        .theme-light .vehicle-insurance-provisional-note i {
            color: var(--vi-warning);
        }

        .theme-light .vehicle-insurance-provisional-note span {
            color: var(--vi-text-secondary);
        }

    .theme-light .vehicle-insurance-auth-declined-premium {
        background: rgba(239, 68, 68, 0.05);
        border: 1px dashed rgba(239, 68, 68, 0.3);
    }

        .theme-light .vehicle-insurance-auth-declined-premium .vehicle-insurance-auth-icon {
            color: var(--vi-error);
        }

    /* Error Panel */
    .theme-light .vehicle-insurance-error-panel {
        background: rgba(239, 68, 68, 0.05);
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .theme-light .vehicle-insurance-error-icon {
        color: var(--vi-error);
    }

    .theme-light .vehicle-insurance-error-message-content p {
        color: var(--vi-text-secondary);
    }

    /* Tracking Device Prompt */
    .theme-light .vehicle-insurance-tracking-device-prompt {
        background: rgba(0, 0, 0, 0.6);
    }

    .theme-light .vehicle-insurance-prompt-overlay {
        background: white;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .theme-light .vehicle-insurance-prompt-header {
        background: linear-gradient(135deg, var(--vi-toyota-red) 0%, var(--vi-toyota-red-dark) 100%);
    }

    .theme-light .vehicle-insurance-prompt-body {
        background: white;
    }

        .theme-light .vehicle-insurance-prompt-body p {
            color: var(--vi-text-secondary);
        }

        .theme-light .vehicle-insurance-prompt-body strong {
            color: var(--vi-toyota-red);
        }

    .theme-light .vehicle-insurance-btn-primary {
        background: linear-gradient(135deg, var(--vi-toyota-red) 0%, var(--vi-toyota-red-dark) 100%);
        box-shadow: 0 4px 12px rgba(235, 10, 30, 0.3);
    }

        .theme-light .vehicle-insurance-btn-primary:hover {
            box-shadow: 0 8px 20px rgba(235, 10, 30, 0.4);
        }

    .theme-light .vehicle-insurance-btn-secondary {
        background: #f3f4f6;
        color: var(--vi-toyota-grey-dark);
        border: 1px solid var(--vi-border);
    }

        .theme-light .vehicle-insurance-btn-secondary:hover {
            background: #e5e7eb;
            border-color: #d1d5db;
        }

    /* Input States */
    .theme-light .vehicle-insurance-input-wrapper input:disabled,
    .theme-light .vehicle-insurance-input-wrapper select:disabled {
        background: #f7fafc;
        color: var(--vi-text-muted);
    }

    .theme-light .vehicle-insurance-input-wrapper input[readonly] {
        background: #f7fafc;
    }

    .theme-light .vehicle-insurance-input-wrapper input.vehicle-insurance-warning {
        border-color: var(--vi-warning);
        background: rgba(245, 158, 11, 0.05);
    }

    /* Scrollbar */
    .theme-light .vehicle-insurance-validation-panel::-webkit-scrollbar {
        width: 8px;
    }

    .theme-light .vehicle-insurance-validation-panel::-webkit-scrollbar-track {
        background: #f3f4f6;
    }

    .theme-light .vehicle-insurance-validation-panel::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
    }

        .theme-light .vehicle-insurance-validation-panel::-webkit-scrollbar-thumb:hover {
            background: var(--vi-toyota-red);
        }

    /* Rejected Authorization Styling */
    .theme-light .vehicle-insurance-section-header .vehicle-insurance-badge.vehicle-insurance-error {
        animation: pulse-red 2s infinite;
    }

/* ============================================
   VEHICLE INSURANCE DIALOG - DARK THEME
   Toyota Professional Insurance Interface
   ============================================ */

/* CSS Variables - Dark Theme */
.theme-dark {
    --vi-toyota-red: #eb0a1e;
    --vi-toyota-red-dark: #c20818;
    --vi-toyota-red-light: #ff1a2e;
    --vi-bg-primary: #0f0f0f;
    --vi-bg-card: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --vi-bg-card-solid: #1a1a1a;
    --vi-border: rgba(255, 255, 255, 0.1);
    --vi-text-primary: rgba(255, 255, 255, 0.95);
    --vi-text-secondary: rgba(255, 255, 255, 0.7);
    --vi-text-muted: rgba(255, 255, 255, 0.5);
    --vi-success: #22c55e;
    --vi-warning: #f59e0b;
    --vi-error: #ef4444;
}

    /* Container & Layout */
    .theme-dark .vehicle-insurance-form-container {
        color: var(--vi-text-primary);
    }

    /* Header Section */
    .theme-dark .vehicle-insurance-form-header {
        border-bottom: 2px solid rgba(235, 10, 30, 0.3);
    }

    .theme-dark .vehicle-insurance-header-icon {
        background: rgba(235, 10, 30, 0.2);
        color: var(--vi-toyota-red);
        box-shadow: 0 0 20px rgba(235, 10, 30, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .theme-dark .vehicle-insurance-header-text h2 {
        color: var(--vi-text-primary);
    }

    .theme-dark .vehicle-insurance-header-text p {
        color: var(--vi-text-secondary);
    }

    /* Policyholder Button */
    .theme-dark .vehicle-insurance-btn-policyholder {
        background: rgba(235, 10, 30, 0.15);
        border: 1px solid rgba(235, 10, 30, 0.3);
        color: var(--vi-toyota-red);
    }

        .theme-dark .vehicle-insurance-btn-policyholder:hover {
            background: rgba(235, 10, 30, 0.25);
            border-color: var(--vi-toyota-red);
            box-shadow: 0 8px 20px rgba(235, 10, 30, 0.3), 0 0 30px rgba(235, 10, 30, 0.2);
        }

    .theme-dark .vehicle-insurance-btn-tooltip {
        background: rgba(0, 0, 0, 0.95);
        color: white;
        border: 1px solid rgba(235, 10, 30, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

        .theme-dark .vehicle-insurance-btn-tooltip::before {
            border-bottom-color: rgba(0, 0, 0, 0.95);
        }

    /* Progress Ring */
    .theme-dark .vehicle-insurance-completion-status {
        background: var(--vi-bg-card);
        border: 1px solid var(--vi-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .theme-dark .vehicle-insurance-progress-ring-bg {
        stroke: rgba(255, 255, 255, 0.1);
    }

    .theme-dark .vehicle-insurance-progress-ring-circle {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    }

    .theme-dark .vehicle-insurance-progress-text .vehicle-insurance-percentage {
        background: linear-gradient(135deg, var(--vi-toyota-red) 0%, var(--vi-toyota-red-light) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .theme-dark .vehicle-insurance-progress-text small {
        color: var(--vi-text-muted);
    }

    /* Status Breakdown */
    .theme-dark .vehicle-insurance-status-item {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--vi-border);
    }

        .theme-dark .vehicle-insurance-status-item::before {
            background: var(--vi-toyota-red);
        }

        .theme-dark .vehicle-insurance-status-item:hover {
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .theme-dark .vehicle-insurance-status-item i {
            color: var(--vi-toyota-red);
            background: rgba(235, 10, 30, 0.15);
            filter: drop-shadow(0 0 8px rgba(235, 10, 30, 0.5));
        }

        .theme-dark .vehicle-insurance-status-item span {
            color: var(--vi-text-secondary);
        }

        .theme-dark .vehicle-insurance-status-item.vehicle-insurance-complete {
            border-color: rgba(34, 197, 94, 0.3);
            background: rgba(34, 197, 94, 0.08);
        }

            .theme-dark .vehicle-insurance-status-item.vehicle-insurance-complete i {
                color: var(--vi-success);
                background: rgba(34, 197, 94, 0.15);
                filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
            }

        .theme-dark .vehicle-insurance-status-item.vehicle-insurance-error {
            border-color: rgba(239, 68, 68, 0.3);
            background: rgba(239, 68, 68, 0.08);
        }

            .theme-dark .vehicle-insurance-status-item.vehicle-insurance-error i {
                color: var(--vi-error);
                background: rgba(239, 68, 68, 0.15);
                filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
            }

    .theme-dark .vehicle-insurance-error-count {
        background: rgba(239, 68, 68, 0.25);
        color: var(--vi-error);
    }

    /* Form Sections */
    .theme-dark .vehicle-insurance-form-section {
        background: var(--vi-bg-card);
        border: 1px solid var(--vi-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

        .theme-dark .vehicle-insurance-form-section:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            border-color: rgba(235, 10, 30, 0.3);
        }

        .theme-dark .vehicle-insurance-form-section.vehicle-insurance-has-errors {
            border-color: rgba(239, 68, 68, 0.5);
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
        }

        .theme-dark .vehicle-insurance-form-section.vehicle-insurance-is-complete {
            border-color: rgba(34, 197, 94, 0.5);
            box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
        }

    .theme-dark .vehicle-insurance-section-header {
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid var(--vi-border);
    }

        .theme-dark .vehicle-insurance-section-header:hover {
            background: rgba(235, 10, 30, 0.1);
        }

    .theme-dark .vehicle-insurance-has-errors .vehicle-insurance-section-header {
        background: rgba(239, 68, 68, 0.05);
    }

    .theme-dark .vehicle-insurance-is-complete .vehicle-insurance-section-header {
        background: rgba(34, 197, 94, 0.05);
    }

    .theme-dark .vehicle-insurance-section-title i {
        color: var(--vi-toyota-red);
        filter: drop-shadow(0 0 10px rgba(235, 10, 30, 0.6));
    }

        .theme-dark .vehicle-insurance-section-title i:hover {
            filter: drop-shadow(0 0 15px rgba(235, 10, 30, 0.8));
        }

    .theme-dark .vehicle-insurance-section-title h3 {
        color: var(--vi-text-primary);
    }

    /* Status Badges */
    .theme-dark .vehicle-insurance-status {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--vi-border);
    }

        .theme-dark .vehicle-insurance-status.vehicle-insurance-complete {
            color: var(--vi-success);
            background: rgba(34, 197, 94, 0.15);
            border-color: rgba(34, 197, 94, 0.3);
        }

        .theme-dark .vehicle-insurance-status.vehicle-insurance-error {
            color: var(--vi-error);
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .theme-dark .vehicle-insurance-status.vehicle-insurance-pending {
            color: var(--vi-warning);
            background: rgba(245, 158, 11, 0.15);
            border-color: rgba(245, 158, 11, 0.3);
        }

    .theme-dark .vehicle-insurance-btn-toggle {
        color: var(--vi-text-muted);
    }

        .theme-dark .vehicle-insurance-btn-toggle:hover {
            background: rgba(235, 10, 30, 0.15);
            color: var(--vi-toyota-red);
        }

    /* Section Content */
    .theme-dark .vehicle-insurance-section-content {
        border-top: 1px solid var(--vi-border);
        background: transparent;
    }

    /* Form Inputs */
    .theme-dark .vehicle-insurance-form-group label {
        color: var(--vi-text-primary);
    }

    .theme-dark .vehicle-insurance-required {
        color: var(--vi-toyota-red);
    }

    .theme-dark .vehicle-insurance-input-wrapper select,
    .theme-dark .vehicle-insurance-input-wrapper input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--vi-border);
        color: var(--vi-text-primary);
    }

        .theme-dark .vehicle-insurance-input-wrapper select:focus,
        .theme-dark .vehicle-insurance-input-wrapper input:focus {
            border-color: var(--vi-toyota-red);
            box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.2);
            background: rgba(255, 255, 255, 0.08);
        }

        .theme-dark .vehicle-insurance-input-wrapper select::placeholder,
        .theme-dark .vehicle-insurance-input-wrapper input::placeholder {
            color: var(--vi-text-muted);
        }

    .theme-dark .vehicle-insurance-has-error .vehicle-insurance-input-wrapper select,
    .theme-dark .vehicle-insurance-has-error .vehicle-insurance-input-wrapper input {
        border-color: var(--vi-error);
        background: rgba(239, 68, 68, 0.1);
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }

    .theme-dark .vehicle-insurance-input-icon,
    .theme-dark .vehicle-insurance-select-icon {
        color: var(--vi-text-muted);
    }

    /* Error & Warning Messages */
    .theme-dark .vehicle-insurance-error-message {
        color: var(--vi-error);
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        padding: 0.5rem;
        border-radius: 0.375rem;
    }

    .theme-dark .vehicle-insurance-warning-message {
        color: var(--vi-warning);
        background: rgba(245, 158, 11, 0.1);
        border: 1px solid rgba(245, 158, 11, 0.3);
        padding: 0.5rem;
        border-radius: 0.375rem;
    }

    .theme-dark .vehicle-insurance-info-message {
        background: rgba(235, 10, 30, 0.1);
        border: 1px solid rgba(235, 10, 30, 0.3);
        color: var(--vi-toyota-red);
        padding: 0.5rem;
        border-radius: 0.375rem;
    }

    /* Validation Panel */
    .theme-dark .vehicle-insurance-validation-panel {
        background: var(--vi-bg-card);
        border: 1px solid rgba(235, 10, 30, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 30px rgba(235, 10, 30, 0.1);
    }

    .theme-dark .vehicle-insurance-panel-header {
        background: linear-gradient(135deg, rgba(235, 10, 30, 0.2), rgba(194, 8, 24, 0.2));
        border-bottom: 2px solid rgba(235, 10, 30, 0.4);
    }

        .theme-dark .vehicle-insurance-panel-header i {
            color: var(--vi-toyota-red);
            filter: drop-shadow(0 0 8px rgba(235, 10, 30, 0.6));
        }

        .theme-dark .vehicle-insurance-panel-header h4 {
            color: var(--vi-text-primary);
        }

    .theme-dark .vehicle-insurance-validation-content {
        background: transparent;
    }

    .theme-dark .vehicle-insurance-validation-section {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--vi-border);
        border-radius: 0.75rem;
        padding: 1rem;
    }

        .theme-dark .vehicle-insurance-validation-section .vehicle-insurance-section-header h5 {
            color: var(--vi-text-primary);
        }

    /* Validation Items */
    .theme-dark .vehicle-insurance-validation-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--vi-border);
    }

        .theme-dark .vehicle-insurance-validation-item.vehicle-insurance-valid {
            border-color: rgba(34, 197, 94, 0.4);
            background: rgba(34, 197, 94, 0.1);
            color: var(--vi-success);
        }

        .theme-dark .vehicle-insurance-validation-item.vehicle-insurance-invalid {
            border-color: rgba(239, 68, 68, 0.4);
            background: rgba(239, 68, 68, 0.1);
            color: var(--vi-error);
        }

    .theme-dark .vehicle-insurance-badge.vehicle-insurance-success {
        background: rgba(34, 197, 94, 0.15);
        color: var(--vi-success);
    }

    .theme-dark .vehicle-insurance-badge.vehicle-insurance-warning {
        background: rgba(245, 158, 11, 0.15);
        color: var(--vi-warning);
    }

    .theme-dark .vehicle-insurance-badge.vehicle-insurance-error {
        background: rgba(239, 68, 68, 0.15);
        color: var(--vi-error);
    }

    /* Premium Summary */
    .theme-dark .vehicle-insurance-premium-summary {
        border-top: 1px solid var(--vi-border);
    }

    .theme-dark .vehicle-insurance-summary-header i {
        color: var(--vi-toyota-red);
        filter: drop-shadow(0 0 8px rgba(235, 10, 30, 0.6));
    }

    .theme-dark .vehicle-insurance-summary-header h5 {
        color: var(--vi-text-primary);
    }

    .theme-dark .vehicle-insurance-premium-details {
        background: linear-gradient(135deg, rgba(235, 10, 30, 0.2) 0%, rgba(194, 8, 24, 0.2) 100%);
        border: 1px solid rgba(235, 10, 30, 0.3);
        box-shadow: 0 0 30px rgba(235, 10, 30, 0.2);
    }

    /* Discount Field */
    .theme-dark .vehicle-insurance-discount-row {
        border-top-color: rgba(255, 255, 255, 0.2);
    }

    .theme-dark .vehicle-insurance-discount-field {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        color: white;
    }

        .theme-dark .vehicle-insurance-discount-field:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--vi-toyota-red);
            box-shadow: 0 0 0 2px rgba(235, 10, 30, 0.3);
        }

    .theme-dark .vehicle-insurance-discount-amount,
    .theme-dark .vehicle-insurance-discount-value {
        color: #4ade80 !important;
    }

    /* Calculating State */
    .theme-dark .vehicle-insurance-calculating-premium {
        background: rgba(235, 10, 30, 0.1);
        border: 1px solid rgba(235, 10, 30, 0.3);
    }

    .theme-dark .vehicle-insurance-spinner i {
        color: var(--vi-toyota-red);
    }

    .theme-dark .vehicle-insurance-calculating-text h5 {
        color: var(--vi-text-primary);
    }

    .theme-dark .vehicle-insurance-calculating-text p {
        color: var(--vi-text-secondary);
    }

    /* Premium Placeholder */
    .theme-dark .vehicle-insurance-premium-placeholder {
        background: rgba(255, 255, 255, 0.03);
        border: 1px dashed var(--vi-border);
    }

    .theme-dark .vehicle-insurance-placeholder-icon {
        color: var(--vi-text-muted);
    }

    .theme-dark .vehicle-insurance-placeholder-text h5 {
        color: var(--vi-text-secondary);
    }

    .theme-dark .vehicle-insurance-placeholder-text p {
        color: var(--vi-text-muted);
    }

    /* Broker Notes */
    .theme-dark .vehicle-insurance-broker-notes {
        background: var(--vi-bg-card);
        border: 1px solid var(--vi-border);
    }

    .theme-dark .vehicle-insurance-notes-header {
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid var(--vi-border);
    }

        .theme-dark .vehicle-insurance-notes-header i {
            color: var(--vi-toyota-red);
            filter: drop-shadow(0 0 8px rgba(235, 10, 30, 0.6));
        }

        .theme-dark .vehicle-insurance-notes-header h4 {
            color: var(--vi-text-primary);
        }

    .theme-dark .vehicle-insurance-note-item {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 0.5rem;
        padding: 0.75rem;
    }

        .theme-dark .vehicle-insurance-note-item i {
            color: var(--vi-toyota-red);
        }

        .theme-dark .vehicle-insurance-note-item span {
            color: var(--vi-text-secondary);
        }

    /* Authorization Section */
    .theme-dark .vehicle-insurance-authorization-item {
        background: var(--vi-bg-card);
        border: 1px solid var(--vi-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

        .theme-dark .vehicle-insurance-authorization-item:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }

    .theme-dark .vehicle-insurance-authorization-header {
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid var(--vi-border);
    }

    .theme-dark .vehicle-insurance-authorization-badge {
        background: rgba(245, 158, 11, 0.15);
        color: var(--vi-warning);
        border: 1px solid rgba(245, 158, 11, 0.3);
    }

    .theme-dark .vehicle-insurance-authorization-approved .vehicle-insurance-authorization-badge {
        background: rgba(34, 197, 94, 0.15);
        color: var(--vi-success);
        border: 1px solid rgba(34, 197, 94, 0.3);
    }

    .theme-dark .vehicle-insurance-authorization-declined .vehicle-insurance-authorization-badge {
        background: rgba(239, 68, 68, 0.15);
        color: var(--vi-error);
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .theme-dark .vehicle-insurance-authorization-info h4 {
        color: var(--vi-text-primary);
    }

    .theme-dark .vehicle-insurance-authorization-reason h4 {
        color: var(--vi-text-primary);
    }

    .theme-dark .vehicle-insurance-authorization-reason p {
        color: var(--vi-text-secondary);
    }

    .theme-dark .vehicle-insurance-authorization-detail {
        color: var(--vi-text-secondary);
    }

    /* Authorization Criteria */
    .theme-dark .vehicle-insurance-criteria-list {
        background: rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid var(--vi-border);
    }

        .theme-dark .vehicle-insurance-criteria-list h5 {
            color: var(--vi-text-secondary);
        }

    .theme-dark .vehicle-insurance-criteria-met {
        background: rgba(34, 197, 94, 0.1);
        color: var(--vi-success);
    }

    .theme-dark .vehicle-insurance-criteria-unmet {
        background: rgba(239, 68, 68, 0.1);
        color: var(--vi-error);
    }

    /* Authorization Actions */
    .theme-dark .vehicle-insurance-authorization-actions {
        background: rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid var(--vi-border);
    }

    .theme-dark .vehicle-insurance-btn-approve {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.8) 0%, rgba(22, 163, 74, 0.8) 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    }

        .theme-dark .vehicle-insurance-btn-approve:hover {
            background: linear-gradient(135deg, var(--vi-success) 0%, #16a34a 100%);
            box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.3);
        }

    .theme-dark .vehicle-insurance-btn-decline {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.8) 0%, rgba(220, 38, 38, 0.8) 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

        .theme-dark .vehicle-insurance-btn-decline:hover {
            background: linear-gradient(135deg, var(--vi-error) 0%, #dc2626 100%);
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.3);
        }

    .theme-dark .vehicle-insurance-authorization-footer {
        background: rgba(0, 0, 0, 0.2);
        color: var(--vi-text-muted);
    }

    /* Authorization Messages */
    .theme-dark .vehicle-insurance-auth-message {
        background: rgba(245, 158, 11, 0.1);
        border: 1px solid rgba(245, 158, 11, 0.3);
    }

        .theme-dark .vehicle-insurance-auth-message i {
            color: var(--vi-warning);
        }

        .theme-dark .vehicle-insurance-auth-message p {
            color: var(--vi-text-secondary);
        }

    .theme-dark .vehicle-insurance-auth-declined {
        background: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.3);
    }

        .theme-dark .vehicle-insurance-auth-declined i {
            color: var(--vi-error);
        }

    .theme-dark .vehicle-insurance-auth-pending {
        background: rgba(245, 158, 11, 0.1);
        border: 1px dashed rgba(245, 158, 11, 0.3);
    }

    .theme-dark .vehicle-insurance-auth-icon {
        color: var(--vi-warning);
    }

    .theme-dark .vehicle-insurance-auth-text h5 {
        color: var(--vi-text-secondary);
    }

    .theme-dark .vehicle-insurance-auth-text p {
        color: var(--vi-text-muted);
    }

    .theme-dark .vehicle-insurance-provisional-note {
        background: rgba(245, 158, 11, 0.15);
        border: 1px solid rgba(245, 158, 11, 0.3);
    }

        .theme-dark .vehicle-insurance-provisional-note i {
            color: var(--vi-warning);
        }

        .theme-dark .vehicle-insurance-provisional-note span {
            color: var(--vi-text-secondary);
        }

    .theme-dark .vehicle-insurance-auth-declined-premium {
        background: rgba(239, 68, 68, 0.1);
        border: 1px dashed rgba(239, 68, 68, 0.3);
    }

        .theme-dark .vehicle-insurance-auth-declined-premium .vehicle-insurance-auth-icon {
            color: var(--vi-error);
        }

    /* Error Panel */
    .theme-dark .vehicle-insurance-error-panel {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .theme-dark .vehicle-insurance-error-icon {
        color: var(--vi-error);
    }

    .theme-dark .vehicle-insurance-error-message-content p {
        color: var(--vi-text-secondary);
    }

    /* Tracking Device Prompt */
    .theme-dark .vehicle-insurance-tracking-device-prompt {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
    }

    .theme-dark .vehicle-insurance-prompt-overlay {
        background: var(--vi-bg-card);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(235, 10, 30, 0.2);
        border: 1px solid rgba(235, 10, 30, 0.3);
    }

    .theme-dark .vehicle-insurance-prompt-header {
        background: linear-gradient(135deg, rgba(235, 10, 30, 0.3) 0%, rgba(194, 8, 24, 0.3) 100%);
        border-bottom: 1px solid rgba(235, 10, 30, 0.4);
    }

        .theme-dark .vehicle-insurance-prompt-header i {
            background: rgba(235, 10, 30, 0.2);
            color: var(--vi-toyota-red);
        }

    .theme-dark .vehicle-insurance-prompt-body {
        background: transparent;
    }

        .theme-dark .vehicle-insurance-prompt-body p {
            color: var(--vi-text-secondary);
        }

        .theme-dark .vehicle-insurance-prompt-body strong {
            color: var(--vi-toyota-red);
        }

    .theme-dark .vehicle-insurance-btn-primary {
        background: linear-gradient(135deg, var(--vi-toyota-red) 0%, var(--vi-toyota-red-dark) 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(235, 10, 30, 0.3);
    }

        .theme-dark .vehicle-insurance-btn-primary:hover {
            background: linear-gradient(135deg, var(--vi-toyota-red-light) 0%, var(--vi-toyota-red) 100%);
            box-shadow: 0 8px 20px rgba(235, 10, 30, 0.4), 0 0 30px rgba(235, 10, 30, 0.3);
        }

    .theme-dark .vehicle-insurance-btn-secondary {
        background: rgba(255, 255, 255, 0.05);
        color: var(--vi-text-primary);
        border: 1px solid var(--vi-border);
    }

        .theme-dark .vehicle-insurance-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

    /* Input States */
    .theme-dark .vehicle-insurance-input-wrapper input:disabled,
    .theme-dark .vehicle-insurance-input-wrapper select:disabled {
        background: rgba(255, 255, 255, 0.02);
        color: var(--vi-text-muted);
        cursor: not-allowed;
    }

    .theme-dark .vehicle-insurance-input-wrapper input[readonly] {
        background: rgba(255, 255, 255, 0.03);
    }

    .theme-dark .vehicle-insurance-input-wrapper input.vehicle-insurance-warning {
        border-color: var(--vi-warning);
        background: rgba(245, 158, 11, 0.1);
    }

    /* Scrollbar */
    .theme-dark .vehicle-insurance-validation-panel::-webkit-scrollbar {
        width: 8px;
    }

    .theme-dark .vehicle-insurance-validation-panel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
    }

    .theme-dark .vehicle-insurance-validation-panel::-webkit-scrollbar-thumb {
        background: rgba(235, 10, 30, 0.5);
        border-radius: 4px;
    }

        .theme-dark .vehicle-insurance-validation-panel::-webkit-scrollbar-thumb:hover {
            background: var(--vi-toyota-red);
        }

    /* Enhanced Section Hover */
    .theme-dark .vehicle-insurance-form-section:hover .vehicle-insurance-section-title i {
        filter: drop-shadow(0 0 15px rgba(235, 10, 30, 0.8));
    }

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .theme-dark {
        --vi-border: rgba(255, 255, 255, 0.3);
        --vi-text-primary: #ffffff;
        --vi-text-secondary: rgba(255, 255, 255, 0.85);
    }

        .theme-dark .vehicle-insurance-form-section,
        .theme-dark .vehicle-insurance-validation-panel,
        .theme-dark .vehicle-insurance-authorization-item {
            border-width: 2px;
        }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .theme-dark * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .theme-dark .vehicle-insurance-section-title i {
        filter: none !important;
    }
}

/* Dark Theme Exclusive Animations */
@keyframes pulse-red-dark {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(235, 10, 30, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(235, 10, 30, 0);
    }
}

.theme-dark .vehicle-insurance-section-header .vehicle-insurance-badge.vehicle-insurance-error {
    animation: pulse-red-dark 2s infinite;
}

/* ============================================
   MOTORCYCLE INSURANCE DIALOG - LIGHT THEME
   Toyota Professional Insurance Interface
   ============================================ */

/* CSS Variables - Light Theme */
.theme-light {
    --mi-toyota-red: #eb0a1e;
    --mi-toyota-red-dark: #c20818;
    --mi-toyota-grey: #595959;
    --mi-toyota-grey-dark: #2d2d2d;
    --mi-bg-primary: #f8f9fa;
    --mi-bg-card: #ffffff;
    --mi-border: #e5e7eb;
    --mi-text-primary: #2d2d2d;
    --mi-text-secondary: #595959;
    --mi-text-muted: #8c8c8c;
    --mi-success: #22c55e;
    --mi-warning: #f59e0b;
    --mi-error: #ef4444;
}

    /* Container */
    .theme-light .motorcycle-insurance-form-container {
        color: var(--mi-text-primary);
    }

    /* Header Section */
    .theme-light .motorcycle-insurance-form-header {
        border-bottom: 2px solid var(--mi-toyota-red);
    }

    .theme-light .motorcycle-insurance-header-icon {
        background: linear-gradient(135deg, var(--mi-toyota-red) 0%, var(--mi-toyota-red-dark) 100%);
        box-shadow: 0 4px 12px rgba(235, 10, 30, 0.25);
    }

    .theme-light .motorcycle-insurance-header-text h2 {
        color: var(--mi-toyota-grey-dark);
    }

    .theme-light .motorcycle-insurance-header-text p {
        color: var(--mi-text-secondary);
    }

    /* Header Buttons */
    .theme-light .motorcycle-insurance-btn-policyholder,
    .theme-light .motorcycle-insurance-btn-attachment {
        background: linear-gradient(135deg, var(--mi-toyota-red) 0%, var(--mi-toyota-red-dark) 100%);
        box-shadow: 0 4px 12px rgba(235, 10, 30, 0.25);
    }

        .theme-light .motorcycle-insurance-btn-policyholder:hover,
        .theme-light .motorcycle-insurance-btn-attachment:hover {
            box-shadow: 0 8px 20px rgba(235, 10, 30, 0.35);
        }

    .theme-light .motorcycle-insurance-btn-tooltip {
        background: var(--mi-toyota-grey-dark);
        color: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

        .theme-light .motorcycle-insurance-btn-tooltip::before {
            border-bottom-color: var(--mi-toyota-grey-dark);
        }

    /* Attachments */
    .theme-light .motorcycle-insurance-attachment-card {
        background: white;
        border: 1px solid var(--mi-border);
    }

        .theme-light .motorcycle-insurance-attachment-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-color: var(--mi-toyota-red);
        }

    .theme-light .motorcycle-insurance-attachment-icon {
        background: linear-gradient(135deg, var(--mi-toyota-red) 0%, var(--mi-toyota-red-dark) 100%);
    }

    .theme-light .motorcycle-insurance-attachment-name {
        color: var(--mi-toyota-grey-dark);
    }

    .theme-light .motorcycle-insurance-attachment-meta {
        color: var(--mi-text-secondary);
    }

    .theme-light .motorcycle-insurance-attachment-download {
        color: var(--mi-toyota-red);
    }

        .theme-light .motorcycle-insurance-attachment-download:hover {
            background: rgba(235, 10, 30, 0.1);
        }

    .theme-light .motorcycle-insurance-attachment-remove {
        color: var(--mi-error);
    }

        .theme-light .motorcycle-insurance-attachment-remove:hover {
            background: rgba(239, 68, 68, 0.1);
        }

    .theme-light .motorcycle-insurance-btn-add-more {
        border-color: var(--mi-border);
        color: var(--mi-text-muted);
    }

        .theme-light .motorcycle-insurance-btn-add-more:hover {
            border-color: var(--mi-toyota-red);
            color: var(--mi-toyota-red);
            background: rgba(235, 10, 30, 0.05);
        }

    /* Progress Ring */
    .theme-light .motorcycle-insurance-completion-status {
        background: white;
        border: 1px solid var(--mi-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .theme-light .motorcycle-insurance-progress-ring-bg {
        stroke: #e5e7eb;
    }

    .theme-light .motorcycle-insurance-progress-ring-circle {
        filter: drop-shadow(0 2px 8px rgba(235, 10, 30, 0.3));
    }

    .theme-light .motorcycle-insurance-progress-text .motorcycle-insurance-percentage {
        background: linear-gradient(135deg, var(--mi-toyota-red) 0%, var(--mi-toyota-red-dark) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .theme-light .motorcycle-insurance-progress-text small {
        color: var(--mi-text-muted);
    }

    /* Status Breakdown */
    .theme-light .motorcycle-insurance-status-item {
        background: white;
        border: 1px solid var(--mi-border);
    }

        .theme-light .motorcycle-insurance-status-item::before {
            background: var(--mi-toyota-red);
        }

        .theme-light .motorcycle-insurance-status-item:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .theme-light .motorcycle-insurance-status-item i {
            color: var(--mi-toyota-red);
            background: rgba(235, 10, 30, 0.1);
        }

        .theme-light .motorcycle-insurance-status-item span {
            color: var(--mi-toyota-grey-dark);
        }

        .theme-light .motorcycle-insurance-status-item.motorcycle-insurance-complete {
            border-color: rgba(34, 197, 94, 0.3);
            background: rgba(34, 197, 94, 0.03);
        }

            .theme-light .motorcycle-insurance-status-item.motorcycle-insurance-complete i {
                color: var(--mi-success);
                background: rgba(34, 197, 94, 0.1);
            }

        .theme-light .motorcycle-insurance-status-item.motorcycle-insurance-error {
            border-color: rgba(239, 68, 68, 0.3);
            background: rgba(239, 68, 68, 0.03);
        }

            .theme-light .motorcycle-insurance-status-item.motorcycle-insurance-error i {
                color: var(--mi-error);
                background: rgba(239, 68, 68, 0.1);
            }

    .theme-light .motorcycle-insurance-error-count {
        background: rgba(239, 68, 68, 0.1);
        color: var(--mi-error);
    }

    /* Form Sections */
    .theme-light .motorcycle-insurance-form-section {
        background: white;
        border: 1px solid var(--mi-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

        .theme-light .motorcycle-insurance-form-section:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .theme-light .motorcycle-insurance-form-section.motorcycle-insurance-has-errors {
            border-color: rgba(239, 68, 68, 0.4);
        }

        .theme-light .motorcycle-insurance-form-section.motorcycle-insurance-is-complete {
            border-color: rgba(34, 197, 94, 0.4);
        }

    .theme-light .motorcycle-insurance-section-header {
        background: #fafafa;
        border-bottom: 1px solid var(--mi-border);
    }

    .theme-light .motorcycle-insurance-has-errors .motorcycle-insurance-section-header {
        background: #fef2f2;
    }

    .theme-light .motorcycle-insurance-is-complete .motorcycle-insurance-section-header {
        background: #f0fdf4;
    }

    .theme-light .motorcycle-insurance-section-title i {
        color: var(--mi-toyota-red);
    }

    .theme-light .motorcycle-insurance-section-title h3 {
        color: var(--mi-toyota-grey-dark);
    }

    /* Status Badges */
    .theme-light .motorcycle-insurance-status {
        background: white;
        border: 1px solid var(--mi-border);
    }

        .theme-light .motorcycle-insurance-status.motorcycle-insurance-complete {
            color: var(--mi-success);
            background: rgba(34, 197, 94, 0.1);
            border-color: rgba(34, 197, 94, 0.3);
        }

        .theme-light .motorcycle-insurance-status.motorcycle-insurance-error {
            color: var(--mi-error);
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .theme-light .motorcycle-insurance-status.motorcycle-insurance-pending {
            color: var(--mi-warning);
            background: rgba(245, 158, 11, 0.1);
            border-color: rgba(245, 158, 11, 0.3);
        }

    .theme-light .motorcycle-insurance-btn-toggle {
        color: var(--mi-text-muted);
    }

        .theme-light .motorcycle-insurance-btn-toggle:hover {
            background: rgba(235, 10, 30, 0.1);
            color: var(--mi-toyota-red);
        }

    /* Section Content */
    .theme-light .motorcycle-insurance-section-content {
        border-top: 1px solid var(--mi-border);
        background: white;
    }

    /* Form Inputs */
    .theme-light .motorcycle-insurance-form-group label {
        color: var(--mi-toyota-grey-dark);
    }

    .theme-light .motorcycle-insurance-required {
        color: var(--mi-toyota-red);
    }

    .theme-light .motorcycle-insurance-tracker-required-note {
        color: var(--mi-toyota-red);
    }

    .theme-light .motorcycle-insurance-input-wrapper select,
    .theme-light .motorcycle-insurance-input-wrapper input {
        background: white;
        border: 1px solid var(--mi-border);
        color: var(--mi-toyota-grey-dark);
    }

        .theme-light .motorcycle-insurance-input-wrapper select:focus,
        .theme-light .motorcycle-insurance-input-wrapper input:focus {
            border-color: var(--mi-toyota-red);
            box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.1);
        }

        .theme-light .motorcycle-insurance-input-wrapper select::placeholder,
        .theme-light .motorcycle-insurance-input-wrapper input::placeholder {
            color: var(--mi-text-muted);
        }

    .theme-light .motorcycle-insurance-has-error .motorcycle-insurance-input-wrapper select,
    .theme-light .motorcycle-insurance-has-error .motorcycle-insurance-input-wrapper input {
        border-color: var(--mi-error);
        background: rgba(239, 68, 68, 0.05);
    }

    .theme-light .motorcycle-insurance-input-icon,
    .theme-light .motorcycle-insurance-select-icon {
        color: var(--mi-text-muted);
    }

    /* Error Messages */
    .theme-light .motorcycle-insurance-error-message {
        color: var(--mi-error);
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        padding: 0.5rem;
        border-radius: 0.375rem;
    }

    /* Premium Section */
    .theme-light .motorcycle-insurance-premium-section {
        background: white;
        border: 1px solid var(--mi-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

        .theme-light .motorcycle-insurance-premium-section .section-title {
            color: var(--mi-toyota-grey-dark);
        }

            .theme-light .motorcycle-insurance-premium-section .section-title i {
                color: var(--mi-toyota-red);
            }

    .theme-light .motorcycle-insurance-premium-display-card {
        background: linear-gradient(135deg, var(--mi-toyota-red) 0%, var(--mi-toyota-red-dark) 100%);
        box-shadow: 0 4px 12px rgba(235, 10, 30, 0.3);
    }

    /* Premium Adjustment */
    .theme-light .motorcycle-insurance-premium-warning-message {
        background-color: rgba(255, 193, 7, 0.2);
        border: 2px solid rgba(255, 193, 7, 0.4);
    }

    .theme-light .motorcycle-insurance-premium-input {
        border-color: rgba(255, 255, 255, 0.3);
        background-color: white;
        color: var(--mi-toyota-grey-dark);
    }

        .theme-light .motorcycle-insurance-premium-input:focus {
            border-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
        }

        .theme-light .motorcycle-insurance-premium-input.invalid {
            border-color: #f56565;
            background-color: #fff5f5;
        }

    .theme-light .motorcycle-insurance-premium-currency {
        color: var(--mi-toyota-grey-dark);
    }

    .theme-light .motorcycle-insurance-premium-error {
        background-color: rgba(245, 101, 101, 0.15);
        border: 1px solid rgba(245, 101, 101, 0.3);
    }

    .theme-light .motorcycle-insurance-premium-info {
        background-color: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Validation Summary */
    .theme-light .motorcycle-insurance-validation-summary {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }

        .theme-light .motorcycle-insurance-validation-summary li::before {
            color: #856404;
        }

    /* Loading States */
    .theme-light .loading-documents {
        color: var(--mi-text-secondary);
    }

    .theme-light .loading-spinner i {
        color: var(--mi-toyota-red);
    }

    .theme-light .loading-text {
        color: var(--mi-text-muted);
    }

    /* Scrollbar */
    .theme-light .motorcycle-insurance-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .theme-light .motorcycle-insurance-sidebar::-webkit-scrollbar-track {
        background: #f3f4f6;
    }

    .theme-light .motorcycle-insurance-sidebar::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
    }

        .theme-light .motorcycle-insurance-sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--mi-toyota-red);
        }

    /* Focus States */
    .theme-light *:focus-visible {
        outline: 2px solid var(--mi-toyota-red);
        outline-offset: 2px;
    }
/* ============================================
   MOTORCYCLE INSURANCE DIALOG - DARK THEME
   Toyota Professional Insurance Interface
   ============================================ */

/* CSS Variables - Dark Theme */
.theme-dark {
    --mi-toyota-red: #eb0a1e;
    --mi-toyota-red-dark: #c20818;
    --mi-toyota-red-light: #ff1a2e;
    --mi-bg-primary: #0f0f0f;
    --mi-bg-card: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --mi-bg-card-solid: #1a1a1a;
    --mi-border: rgba(255, 255, 255, 0.1);
    --mi-text-primary: rgba(255, 255, 255, 0.95);
    --mi-text-secondary: rgba(255, 255, 255, 0.7);
    --mi-text-muted: rgba(255, 255, 255, 0.5);
    --mi-success: #22c55e;
    --mi-warning: #f59e0b;
    --mi-error: #ef4444;
}

    /* Container */
    .theme-dark .motorcycle-insurance-form-container {
        color: var(--mi-text-primary);
    }

    /* Header Section */
    .theme-dark .motorcycle-insurance-form-header {
        border-bottom: 2px solid rgba(235, 10, 30, 0.3);
    }

    .theme-dark .motorcycle-insurance-header-icon {
        background: rgba(235, 10, 30, 0.2);
        color: var(--mi-toyota-red);
        box-shadow: 0 0 20px rgba(235, 10, 30, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .theme-dark .motorcycle-insurance-header-text h2 {
        color: var(--mi-text-primary);
    }

    .theme-dark .motorcycle-insurance-header-text p {
        color: var(--mi-text-secondary);
    }

    /* Header Buttons */
    .theme-dark .motorcycle-insurance-btn-policyholder,
    .theme-dark .motorcycle-insurance-btn-attachment {
        background: rgba(235, 10, 30, 0.15);
        border: 1px solid rgba(235, 10, 30, 0.3);
        color: var(--mi-toyota-red);
    }

        .theme-dark .motorcycle-insurance-btn-policyholder:hover,
        .theme-dark .motorcycle-insurance-btn-attachment:hover {
            background: rgba(235, 10, 30, 0.25);
            border-color: var(--mi-toyota-red);
            box-shadow: 0 8px 20px rgba(235, 10, 30, 0.3), 0 0 30px rgba(235, 10, 30, 0.2);
        }

    .theme-dark .motorcycle-insurance-btn-tooltip {
        background: rgba(0, 0, 0, 0.95);
        color: white;
        border: 1px solid rgba(235, 10, 30, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

        .theme-dark .motorcycle-insurance-btn-tooltip::before {
            border-bottom-color: rgba(0, 0, 0, 0.95);
        }

    /* Attachments */
    .theme-dark .motorcycle-insurance-attachment-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--mi-border);
    }

        .theme-dark .motorcycle-insurance-attachment-card:hover {
            background: rgba(255, 255, 255, 0.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            border-color: rgba(235, 10, 30, 0.5);
        }

    .theme-dark .motorcycle-insurance-attachment-icon {
        background: rgba(235, 10, 30, 0.2);
        color: var(--mi-toyota-red);
    }

    .theme-dark .motorcycle-insurance-attachment-name {
        color: var(--mi-text-primary);
    }

    .theme-dark .motorcycle-insurance-attachment-meta {
        color: var(--mi-text-secondary);
    }

    .theme-dark .motorcycle-insurance-attachment-download {
        color: var(--mi-toyota-red);
    }

        .theme-dark .motorcycle-insurance-attachment-download:hover {
            background: rgba(235, 10, 30, 0.15);
            box-shadow: 0 0 15px rgba(235, 10, 30, 0.5);
        }

    .theme-dark .motorcycle-insurance-attachment-remove {
        color: var(--mi-error);
    }

        .theme-dark .motorcycle-insurance-attachment-remove:hover {
            background: rgba(239, 68, 68, 0.15);
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
        }

    .theme-dark .motorcycle-insurance-btn-add-more {
        border-color: rgba(235, 10, 30, 0.5);
        color: var(--mi-toyota-red);
    }

        .theme-dark .motorcycle-insurance-btn-add-more:hover {
            background: rgba(235, 10, 30, 0.15);
            border-color: var(--mi-toyota-red);
            box-shadow: 0 0 20px rgba(235, 10, 30, 0.3);
        }

    /* Progress Ring */
    .theme-dark .motorcycle-insurance-completion-status {
        background: var(--mi-bg-card);
        border: 1px solid var(--mi-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .theme-dark .motorcycle-insurance-progress-ring-bg {
        stroke: rgba(255, 255, 255, 0.1);
    }

    .theme-dark .motorcycle-insurance-progress-ring-circle {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    }

    .theme-dark .motorcycle-insurance-progress-text .motorcycle-insurance-percentage {
        background: linear-gradient(135deg, var(--mi-toyota-red) 0%, var(--mi-toyota-red-light) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .theme-dark .motorcycle-insurance-progress-text small {
        color: var(--mi-text-muted);
    }

    /* Status Breakdown */
    .theme-dark .motorcycle-insurance-status-item {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--mi-border);
    }

        .theme-dark .motorcycle-insurance-status-item::before {
            background: var(--mi-toyota-red);
        }

        .theme-dark .motorcycle-insurance-status-item:hover {
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .theme-dark .motorcycle-insurance-status-item i {
            color: var(--mi-toyota-red);
            background: rgba(235, 10, 30, 0.15);
            filter: drop-shadow(0 0 8px rgba(235, 10, 30, 0.5));
        }

        .theme-dark .motorcycle-insurance-status-item span {
            color: var(--mi-text-secondary);
        }

        .theme-dark .motorcycle-insurance-status-item.motorcycle-insurance-complete {
            border-color: rgba(34, 197, 94, 0.3);
            background: rgba(34, 197, 94, 0.08);
        }

            .theme-dark .motorcycle-insurance-status-item.motorcycle-insurance-complete i {
                color: var(--mi-success);
                background: rgba(34, 197, 94, 0.15);
                filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
            }

        .theme-dark .motorcycle-insurance-status-item.motorcycle-insurance-error {
            border-color: rgba(239, 68, 68, 0.3);
            background: rgba(239, 68, 68, 0.08);
        }

            .theme-dark .motorcycle-insurance-status-item.motorcycle-insurance-error i {
                color: var(--mi-error);
                background: rgba(239, 68, 68, 0.15);
                filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
            }

    .theme-dark .motorcycle-insurance-error-count {
        background: rgba(239, 68, 68, 0.25);
        color: var(--mi-error);
    }

    /* Form Sections */
    .theme-dark .motorcycle-insurance-form-section {
        background: var(--mi-bg-card);
        border: 1px solid var(--mi-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

        .theme-dark .motorcycle-insurance-form-section:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            border-color: rgba(235, 10, 30, 0.3);
        }

        .theme-dark .motorcycle-insurance-form-section.motorcycle-insurance-has-errors {
            border-color: rgba(239, 68, 68, 0.5);
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
        }

        .theme-dark .motorcycle-insurance-form-section.motorcycle-insurance-is-complete {
            border-color: rgba(34, 197, 94, 0.5);
            box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
        }

    .theme-dark .motorcycle-insurance-section-header {
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid var(--mi-border);
    }

        .theme-dark .motorcycle-insurance-section-header:hover {
            background: rgba(235, 10, 30, 0.1);
        }

    .theme-dark .motorcycle-insurance-has-errors .motorcycle-insurance-section-header {
        background: rgba(239, 68, 68, 0.05);
    }

    .theme-dark .motorcycle-insurance-is-complete .motorcycle-insurance-section-header {
        background: rgba(34, 197, 94, 0.05);
    }

    .theme-dark .motorcycle-insurance-section-title i {
        color: var(--mi-toyota-red);
        filter: drop-shadow(0 0 10px rgba(235, 10, 30, 0.6));
    }

        .theme-dark .motorcycle-insurance-section-title i:hover {
            filter: drop-shadow(0 0 15px rgba(235, 10, 30, 0.8));
        }

    .theme-dark .motorcycle-insurance-section-title h3 {
        color: var(--mi-text-primary);
    }

    /* Status Badges */
    .theme-dark .motorcycle-insurance-status {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--mi-border);
    }

        .theme-dark .motorcycle-insurance-status.motorcycle-insurance-complete {
            color: var(--mi-success);
            background: rgba(34, 197, 94, 0.15);
            border-color: rgba(34, 197, 94, 0.3);
        }

        .theme-dark .motorcycle-insurance-status.motorcycle-insurance-error {
            color: var(--mi-error);
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .theme-dark .motorcycle-insurance-status.motorcycle-insurance-pending {
            color: var(--mi-warning);
            background: rgba(245, 158, 11, 0.15);
            border-color: rgba(245, 158, 11, 0.3);
        }

    .theme-dark .motorcycle-insurance-btn-toggle {
        color: var(--mi-text-muted);
    }

        .theme-dark .motorcycle-insurance-btn-toggle:hover {
            background: rgba(235, 10, 30, 0.15);
            color: var(--mi-toyota-red);
        }

    /* Section Content */
    .theme-dark .motorcycle-insurance-section-content {
        border-top: 1px solid var(--mi-border);
        background: transparent;
    }

    /* Form Inputs */
    .theme-dark .motorcycle-insurance-form-group label {
        color: var(--mi-text-primary);
    }

    .theme-dark .motorcycle-insurance-required {
        color: var(--mi-toyota-red);
    }

    .theme-dark .motorcycle-insurance-tracker-required-note {
        color: var(--mi-toyota-red);
    }

    .theme-dark .motorcycle-insurance-input-wrapper select,
    .theme-dark .motorcycle-insurance-input-wrapper input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--mi-border);
        color: var(--mi-text-primary);
    }

        .theme-dark .motorcycle-insurance-input-wrapper select:focus,
        .theme-dark .motorcycle-insurance-input-wrapper input:focus {
            border-color: var(--mi-toyota-red);
            box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.2);
            background: rgba(255, 255, 255, 0.08);
        }

        .theme-dark .motorcycle-insurance-input-wrapper select::placeholder,
        .theme-dark .motorcycle-insurance-input-wrapper input::placeholder {
            color: var(--mi-text-muted);
        }

    .theme-dark .motorcycle-insurance-has-error .motorcycle-insurance-input-wrapper select,
    .theme-dark .motorcycle-insurance-has-error .motorcycle-insurance-input-wrapper input {
        border-color: var(--mi-error);
        background: rgba(239, 68, 68, 0.1);
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }

    .theme-dark .motorcycle-insurance-input-icon,
    .theme-dark .motorcycle-insurance-select-icon {
        color: var(--mi-text-muted);
    }

    /* Error Messages */
    .theme-dark .motorcycle-insurance-error-message {
        color: var(--mi-error);
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.3);
        padding: 0.5rem;
        border-radius: 0.375rem;
    }

    /* Premium Section */
    .theme-dark .motorcycle-insurance-premium-section {
        background: var(--mi-bg-card);
        border: 1px solid rgba(235, 10, 30, 0.4);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 30px rgba(235, 10, 30, 0.15);
    }

        .theme-dark .motorcycle-insurance-premium-section .section-title {
            color: var(--mi-text-primary);
        }

            .theme-dark .motorcycle-insurance-premium-section .section-title i {
                color: var(--mi-toyota-red);
                filter: drop-shadow(0 0 8px rgba(235, 10, 30, 0.6));
            }

    .theme-dark .motorcycle-insurance-premium-display-card {
        background: linear-gradient(135deg, rgba(235, 10, 30, 0.2) 0%, rgba(194, 8, 24, 0.2) 100%);
        border: 1px solid rgba(235, 10, 30, 0.3);
        box-shadow: 0 0 30px rgba(235, 10, 30, 0.2);
    }

    /* Premium Adjustment */
    .theme-dark .motorcycle-insurance-premium-warning-message {
        background-color: rgba(255, 193, 7, 0.2);
        border: 2px solid rgba(255, 193, 7, 0.4);
    }

    .theme-dark .motorcycle-insurance-premium-input {
        border-color: rgba(255, 255, 255, 0.3);
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--mi-text-primary);
    }

        .theme-dark .motorcycle-insurance-premium-input:focus {
            border-color: var(--mi-toyota-red);
            box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.2);
            background-color: rgba(255, 255, 255, 0.08);
        }

        .theme-dark .motorcycle-insurance-premium-input.invalid {
            border-color: var(--mi-error);
            background-color: rgba(239, 68, 68, 0.1);
        }

    .theme-dark .motorcycle-insurance-premium-currency {
        color: var(--mi-text-muted);
    }

    .theme-dark .motorcycle-insurance-premium-error {
        background-color: rgba(245, 101, 101, 0.15);
        border: 1px solid rgba(245, 101, 101, 0.3);
    }

    .theme-dark .motorcycle-insurance-premium-info {
        background-color: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Validation Summary */
    .theme-dark .motorcycle-insurance-validation-summary {
        background: rgba(255, 193, 7, 0.15);
        color: #fbbf24;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

        .theme-dark .motorcycle-insurance-validation-summary h5 {
            color: #fbbf24;
        }

        .theme-dark .motorcycle-insurance-validation-summary li::before {
            color: #fbbf24;
        }

    /* Loading States */
    .theme-dark .loading-documents {
        color: var(--mi-text-secondary);
    }

    .theme-dark .loading-spinner i {
        color: var(--mi-toyota-red);
    }

    .theme-dark .loading-text {
        color: var(--mi-text-muted);
    }

    /* Enhanced Section Hover */
    .theme-dark .motorcycle-insurance-form-section:hover .motorcycle-insurance-section-title i {
        filter: drop-shadow(0 0 15px rgba(235, 10, 30, 0.8));
    }

    /* Scrollbar */
    .theme-dark .motorcycle-insurance-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .theme-dark .motorcycle-insurance-sidebar::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
    }

    .theme-dark .motorcycle-insurance-sidebar::-webkit-scrollbar-thumb {
        background: rgba(235, 10, 30, 0.5);
        border-radius: 4px;
    }

        .theme-dark .motorcycle-insurance-sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--mi-toyota-red);
        }

    /* Focus States */
    .theme-dark *:focus-visible {
        outline: 2px solid var(--mi-toyota-red);
        outline-offset: 2px;
    }

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .theme-dark {
        --mi-border: rgba(255, 255, 255, 0.3);
        --mi-text-primary: #ffffff;
        --mi-text-secondary: rgba(255, 255, 255, 0.85);
    }

        .theme-dark .motorcycle-insurance-form-section,
        .theme-dark .motorcycle-insurance-premium-section {
            border-width: 2px;
        }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .theme-dark * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .theme-dark .motorcycle-insurance-section-title i {
        filter: none !important;
    }
}
/* Light Mode Driver Type Selection */
:root[data-theme="light"] .vehicle-insurance-driver-type-selection {
    background: #f8f9fa;
    border-color: #dee2e6;
}

:root[data-theme="light"] .vehicle-insurance-radio-option {
    background: white;
    border-color: #dee2e6;
}

:root[data-theme="light"] .vehicle-insurance-radio-option:hover {
    background: #e7f3ff;
    border-color: #3182CE;
}

:root[data-theme="light"] .vehicle-insurance-radio-option.selected {
    background: #e7f3ff;
    border-color: #3182CE;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

:root[data-theme="light"] .radio-custom {
    background: white;
    border-color: #ced4da;
}

:root[data-theme="light"] .vehicle-insurance-radio-option:hover .radio-custom {
    border-color: #3182CE;
}

:root[data-theme="light"] .vehicle-insurance-radio-option.selected .radio-custom {
    background: #3182CE;
    border-color: #3182CE;
}

:root[data-theme="light"] .option-title {
    color: #212529;
}

:root[data-theme="light"] .option-description {
    color: #6c757d;
}
/* ============================================
   UPLOAD MODAL - DISTINCT STYLING
   Motorcycle Insurance Upload Dialog
   Uses "upload-modal" prefix to avoid conflicts
   ============================================ */

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040 !important;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

    .modal-backdrop.fade {
        opacity: 0;
        transition: opacity 0.15s linear;
    }

    .modal-backdrop.show {
        opacity: 1;
    }

/* Upload Modal Container - Distinct Class */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050 !important;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

    .upload-modal.show {
        display: block !important;
    }

    .upload-modal.d-block {
        display: block !important;
    }

    /* Modal Dialog */
    .upload-modal .modal-dialog {
        position: relative;
        width: auto;
        margin: 1.75rem auto;
        pointer-events: none;
    }

    .upload-modal .modal-dialog-centered {
        display: flex;
        align-items: center;
        min-height: calc(100% - 3.5rem);
    }

    .upload-modal .modal-dialog-lg {
        max-width: 800px;
    }

@media (min-width: 576px) {
    .upload-modal .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .upload-modal .modal-dialog-lg {
        max-width: 800px;
    }
}

/* Modal Content */
.upload-modal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Modal Header */
.upload-modal .modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
    background-color: #fff;
}

    .upload-modal .modal-header .modal-title {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0;
        line-height: 1.5;
        font-size: 1.25rem;
        font-weight: 600;
        color: #212529;
    }

        .upload-modal .modal-header .modal-title h5 {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 600;
            color: #212529;
        }

        .upload-modal .modal-header .modal-title i {
            font-size: 1.25rem;
            color: #6c757d;
        }

/* Close Button */
.upload-modal .btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}

    .upload-modal .btn-close:hover {
        color: #000;
        text-decoration: none;
        opacity: 0.75;
    }

    .upload-modal .btn-close:focus {
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        opacity: 1;
    }

/* Modal Body */
.upload-modal .modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

/* Modal Footer */
.upload-modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.5rem - 1px);
    border-bottom-left-radius: calc(0.5rem - 1px);
    gap: 0.5rem;
}

/* Upload Instruction */
.upload-modal .upload-instruction {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.upload-modal .upload-instruction-icon {
    flex-shrink: 0;
}

    .upload-modal .upload-instruction-icon i {
        font-size: 1.25rem;
        color: #0066cc;
    }

.upload-modal .upload-instruction-text {
    flex: 1;
}

    .upload-modal .upload-instruction-text p {
        margin: 0 0 0.5rem 0;
        color: #003d7a;
        font-size: 0.9375rem;
        line-height: 1.5;
    }

        .upload-modal .upload-instruction-text p:last-child {
            margin-bottom: 0;
            font-size: 0.875rem;
            color: #0066cc;
        }

    .upload-modal .upload-instruction-text strong {
        font-weight: 600;
    }

/* Form Group */
.upload-modal .form-group {
    margin-bottom: 1.5rem;
}

    .upload-modal .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        font-size: 0.875rem;
        color: #212529;
    }

.upload-modal .text-danger {
    color: #dc3545 !important;
}

/* Form Select */
.upload-modal .form-select {
    display: block;
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    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='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

    .upload-modal .form-select:focus {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* Upload Zone */
.upload-modal .upload-zone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

    .upload-modal .upload-zone:not(.disabled):hover {
        border-color: #86b7fe;
        background-color: #e7f3ff;
    }

    .upload-modal .upload-zone.disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background-color: #e9ecef;
    }

/* Upload Overlay */
.upload-modal .upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    z-index: 1;
}

.upload-modal .upload-overlay-content {
    text-align: center;
}

    .upload-modal .upload-overlay-content i {
        font-size: 2.5rem;
        color: #6c757d;
        margin-bottom: 0.75rem;
        display: block;
    }

    .upload-modal .upload-overlay-content p {
        margin: 0;
        color: #6c757d;
        font-size: 1rem;
        font-weight: 500;
    }

/* Upload Content */
.upload-modal .upload-content {
    position: relative;
    z-index: 0;
}

    .upload-modal .upload-content i {
        font-size: 3rem;
        color: #adb5bd;
        margin-bottom: 1rem;
        display: block;
    }

    .upload-modal .upload-content p {
        margin: 0 0 0.5rem 0;
        color: #495057;
        font-size: 1rem;
    }

.upload-modal .upload-browse-link {
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
}

    .upload-modal .upload-browse-link:hover {
        color: #0a58ca;
    }

.upload-modal .upload-content small {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.upload-modal .text-muted {
    color: #6c757d !important;
}

/* Pending Files */
.upload-modal .pending-files {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
}

    .upload-modal .pending-files h6 {
        margin: 0 0 1rem 0;
        font-size: 0.875rem;
        font-weight: 600;
        color: #495057;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.upload-modal .pending-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

    .upload-modal .pending-file-item:last-child {
        margin-bottom: 0;
    }

    .upload-modal .pending-file-item:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

.upload-modal .pending-file-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e7f3ff;
    border-radius: 0.375rem;
}

    .upload-modal .pending-file-icon i {
        font-size: 1.25rem;
        color: #0d6efd;
    }

.upload-modal .pending-file-info {
    flex: 1;
    min-width: 0;
}

.upload-modal .pending-file-name {
    font-weight: 500;
    color: #212529;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-modal .pending-file-size {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.125rem;
}

.upload-modal .pending-file-remove {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 0.375rem;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .upload-modal .pending-file-remove:hover {
        background-color: #f8d7da;
    }

    .upload-modal .pending-file-remove i {
        font-size: 0.875rem;
    }

/* Alert */
.upload-modal .alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.upload-modal .alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.upload-modal .mt-3 {
    margin-top: 1rem !important;
}

.upload-modal .mb-2 {
    margin-bottom: 0.5rem !important;
}

/* Buttons */
.upload-modal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

    .upload-modal .btn:focus {
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.upload-modal .btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

    .upload-modal .btn-secondary:hover {
        color: #fff;
        background-color: #5c636a;
        border-color: #565e64;
    }

.upload-modal .btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    .upload-modal .btn-primary:hover:not(:disabled) {
        color: #fff;
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

    .upload-modal .btn-primary:disabled,
    .upload-modal .btn-primary.disabled {
        color: #fff;
        background-color: #0d6efd;
        border-color: #0d6efd;
        opacity: 0.65;
        cursor: not-allowed;
    }

.upload-modal .btn i {
    font-size: 0.875rem;
}

/* Utility Classes */
.upload-modal .d-block {
    display: block !important;
}

.upload-modal .fade {
    transition: opacity 0.15s linear;
}

    .upload-modal .fade:not(.show) {
        opacity: 0;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .upload-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .upload-modal .modal-dialog-lg {
        max-width: calc(100% - 1rem);
    }

    .upload-modal .modal-header {
        padding: 1rem;
    }

    .upload-modal .modal-body {
        padding: 1rem;
    }

    .upload-modal .modal-footer {
        padding: 0.75rem;
    }

    .upload-modal .upload-zone {
        padding: 2rem 1rem;
    }

    .upload-modal .upload-content i {
        font-size: 2rem;
    }
}

/* Animation */
@keyframes uploadModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.upload-modal.show .modal-dialog {
    animation: uploadModalFadeIn 0.3s ease-out;
}