/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* === Fundos === */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(22, 30, 49, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* === Textos === */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-title: #ffffff;

    /* === Inputs (Padrão Dark) === */
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-text: #ffffff;
    --input-border: rgba(255, 255, 255, 0.08);
    --input-placeholder: #9ca3af;
    --input-focus: #2563eb;

    /* === Cores da Marca === */
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.4);

    /* === Feedbacks === */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.2);

    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.2);

    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.2);

    --neutral: #6b7280;
    --neutral-bg: rgba(107, 114, 128, 0.1);
    --neutral-border: rgba(107, 114, 128, 0.2);

    /* === Utilitários === */
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --border-radius: 14px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
    /* === Fundos === */
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.15);

    /* === Textos === */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-title: #111827;

    /* === Inputs (Modo Light Corrigido) === */
    --input-bg: #ffffff;
    --input-text: #1f2937;
    --input-border: #d1d5db;
    --input-placeholder: #9ca3af;
    --input-focus: #2563eb;

    /* === Cores da Marca === */
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);

    /* === Cores de Feedback === */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    --success-border: rgba(16, 185, 129, 0.15);

    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.08);
    --danger-border: rgba(239, 68, 68, 0.15);

    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.08);
    --warning-border: rgba(217, 119, 6, 0.15);

    --neutral: #6b7280;
    --neutral-bg: rgba(107, 114, 128, 0.08);
    --neutral-border: rgba(107, 114, 128, 0.15);

    /* === Sombras === */
    --shadow-main: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* App Wrapper for PWA */
.app-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem 1rem;
}

.admin-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-title);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #60a5fa;
}

/* Glassmorphism Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
}

/* Logo and Header Styling */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.brand-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-title) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Stat Cards for Dashboard */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-main);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.stat-card.vehicles::before { background: var(--accent); }
.stat-card.users::before { background: var(--warning); }
.stat-card.inspections::before { background: var(--success); }

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-title);
}

.stat-card.vehicles .stat-icon { color: #60a5fa; background: rgba(59, 130, 246, 0.1); }
.stat-card.users .stat-icon { color: #fbbf24; background: rgba(245, 158, 11, 0.1); }
.stat-card.inspections .stat-icon { color: #34d399; background: rgba(16, 185, 129, 0.1); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-title); /* Corrigido de #ffffff estável para variável */
    line-height: 1;
    margin-top: 0.25rem;
}

/* Forms and Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background-color: var(--input-bg); /* Corrigido dinâmico */
    border: 1px solid var(--input-border); /* Corrigido dinâmico */
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--input-text); /* Corrigido dinâmico */
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    background-color: var(--input-bg);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

select option {
    background-color: #111827;
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); }

.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-success { background: var(--success); color: #ffffff; }
.btn-success:hover { background: #059669; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }

.btn-danger { background: var(--danger); color: #ffffff; }
.btn-danger:hover { background: #dc2626; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: 6px; }

/* Custom Checklist Radio Options (Pill Buttons) */
.checklist-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

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

.checklist-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-title); /* Corrigido de #ffffff fixo */
    line-height: 1.4;
}

.option-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 0.6rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-secondary);
}

.option-label input[type="radio"] {
    display: none;
}

/* Cores de seleção do Checklist */
.option-label.conforme:hover { border-color: var(--success); color: var(--success); }
.option-label.conforme input[type="radio"]:checked+span,
.option-label.conforme.selected {
    background-color: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.option-label.nao-conforme:hover { border-color: var(--danger); color: var(--danger); }
.option-label.nao-conforme input[type="radio"]:checked+span,
.option-label.nao-conforme.selected {
    background-color: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.option-label.nao-aplica:hover { border-color: var(--neutral); color: var(--text-primary); }
.option-label.nao-aplica input[type="radio"]:checked+span,
.option-label.nao-aplica.selected {
    background-color: var(--neutral-bg);
    border-color: var(--neutral);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(107, 114, 128, 0.1);
}

/* Custom Checkbox / Radio styling */
.custom-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.radio-row input[type="radio"] {
    margin-top: 0.25rem;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

/* Signature Pad */
.signature-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
    position: relative;
}

.signature-canvas {
    display: block;
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    cursor: crosshair;
}

.signature-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-color);
}

/* Image Upload Previews */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.upload-zone:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.02);
}

.upload-zone svg {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    font-size: 10px;
}

/* Tabs for Admin Area */
.tab-navigation {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    gap: 1.5rem;
    scrollbar-width: none;
}

.tab-navigation::-webkit-scrollbar { display: none; }

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: var(--transition);
}

.tab-btn:hover { color: var(--text-title); }
.tab-btn.active { color: var(--accent); font-weight: 600; }
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease-out; }

/* Tables styling */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.925rem;
}

th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-title); /* Corrigido de #ffffff fixo */
    padding: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Badges */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* Modal dialog */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-window { transform: translateY(0); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 1.5rem; overflow-y: auto; color: var(--text-primary); }
.modal-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 0.75rem; }

.close-modal {
    background: none; border: none;
    color: var(--text-secondary);
    cursor: pointer; font-size: 1.5rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.close-modal:hover { color: var(--text-title); }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sticky Action Button / Footer */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-around;
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item svg { margin-bottom: 0.25rem; }

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 5rem; left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    width: 90%; max-width: 380px;
}

.toast {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: var(--shadow-main);
    color: #ffffff;
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.875rem; font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease-out forwards;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent); }

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

/* Responsive details */
@media (max-width: 768px) {
    .app-container { max-width: 100%; padding: 1.5rem 1rem 5rem 1rem; }
    .admin-container { padding: 1rem; }
    .tab-navigation { margin-bottom: 1.25rem; padding-bottom: 0.25rem; gap: 1rem; }
    table { font-size: 0.85rem; }
    th, td { padding: 0.75rem 0.5rem; }
    .btn { padding: 0.8rem 1.25rem; font-size: 0.95rem; }
    .modal-window { max-height: 95vh; width: 100%; margin: 0; border-radius: 12px; }
}

@media (max-width: 640px) {
    .app-container { max-width: 100%; padding: 1.25rem 0.75rem 5rem 0.75rem; }
    .card { padding: 1.25rem; margin-bottom: 1.25rem; border-radius: 12px; }
    .brand-logo { max-height: 50px; }
    .brand-title { font-size: 1.5rem; }
    .option-group { grid-template-columns: 1fr; gap: 0.5rem; }
    .option-label {
        flex-direction: row; gap: 0.75rem; padding: 0.85rem 1.25rem;
        font-size: 0.95rem; justify-content: flex-start; text-align: left; border-radius: 10px;
    }
    .option-label input[type="radio"] { display: block; margin: 0; accent-color: currentColor; width: 18px; height: 18px; }
    .checklist-item { padding: 1.25rem 0; }
    .checklist-item-title { font-size: 1rem; margin-bottom: 0.75rem; }
    .selectv2-trigger { font-size: 1rem !important; padding: 0.85rem 1rem !important; }
    .selectv2-option { font-size: 1rem !important; padding: 0.75rem 1rem !important; }
    .selectv2-search { font-size: 1rem !important; padding: 0.75rem 1rem !important; }
}

/* Custom SelectV2 Styling */
.selectv2-container { width: 100%; }
.selectv2-dropdown {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-main) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.selectv2-option { color: var(--text-primary); }
.selectv2-option:hover { background: rgba(255, 255, 255, 0.05); color: var(--accent); }
.selectv2-option.selected { background: var(--accent-glow) !important; color: #ffffff !important; font-weight: 600; }
.selectv2-dropdown::-webkit-scrollbar { width: 6px; }
.selectv2-dropdown::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
.selectv2-dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
.selectv2-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Table Controls and Pagination Styling */
.table-controls-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem 0 0 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-main);
}
.table-controls-wrapper table { margin-bottom: 0; border-left: none; border-right: none; border-radius: 0; }
.table-pagination .btn { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.table-pagination .btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Floating Theme Toggle Button Styling */
.theme-toggle-btn {
    position: fixed;
    top: 1rem; right: 1rem;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-main);
    transition: var(--transition);
}
.theme-toggle-btn:hover { background: var(--accent-glow); color: var(--accent); transform: scale(1.05); }

/* ==========================================
   Overrides e Forças Específicas para Light Mode
   ========================================== */
:root[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #111827 !important;
}

:root[data-theme="light"] body {
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
}

:root[data-theme="light"] .selectv2-dropdown {
    background: #ffffff !important;
}

:root[data-theme="light"] .selectv2-option {
    color: #111827 !important;
}

:root[data-theme="light"] .selectv2-option:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

:root[data-theme="light"] .selectv2-option.selected {
    color: #ffffff !important;
}

:root[data-theme="light"] th {
    background: rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .toast {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Smart override for hardcoded inline white text style colors in light mode */
:root[data-theme="light"] *[style*="color: #ffffff"],
:root[data-theme="light"] *[style*="color: #fff"],
:root[data-theme="light"] *[style*="color:#ffffff"],
:root[data-theme="light"] *[style*="color:#fff"] {
    color: var(--text-title) !important;
}