@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=SF+Pro+Display:wght@400;500;600;700;800&display=swap');

:root {
    --ios-bg: #030814;
    --ios-glass-card: rgba(8, 18, 38, 0.92);
    --ios-neon-blue: #00f0ff;
    --ios-sky-blue: #38bdf8;
    --ios-deep-blue: #0066ff;
    --ios-white: #ffffff;
    --ios-white-dim: rgba(255, 255, 255, 0.9);
    --ios-glass-border: rgba(0, 240, 255, 0.4);
    --ios-glass-shadow: 0 25px 60px rgba(0, 5, 20, 0.85), 0 0 35px rgba(0, 240, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

body, html {
    background-color: var(--ios-bg) !important;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(0, 102, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(8, 16, 36, 0.9) 0%, #030814 100%) !important;
    background-attachment: fixed !important;
    color: var(--ios-white) !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
}

body::before {
    display: none !important;
}

/* High Contrast Headings */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
div[class*="title"], div[class*="Title"], div[class*="header"], div[class*="Header"] {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 0 25px rgba(0, 102, 255, 0.6) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}

/* High Contrast Labels & Text */
p, span, div, td, th, li, small {
    color: var(--ios-white-dim) !important;
    font-weight: 500 !important;
}

label, .form-label, div[class*="label"], div[class*="Label"] {
    color: #38bdf8 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    display: block !important;
    text-shadow: none !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Clean Layout Containers (Prevent nested backdrop-filter collapse in Chrome) */
.container, .container-login, .container-fluid, div.container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* backdrop-filter removed */
    /* backdrop-filter removed */
}

.hide-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Explicit High-Contrast Opaque Glass Cards for Forms & Modals */
.modal-content, .custom-modal-box, form.form-login, .form-login {
    background: rgba(8, 18, 38, 0.96) !important;
    border: 1.5px solid #00f0ff !important;
    border-top: 2px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 20px 50px rgba(0, 4, 15, 0.9), 0 0 35px rgba(0, 240, 255, 0.4) !important;
    border-radius: 24px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Admin Nav Bar Styling */
.admin-nav-bar {
    background: rgba(10, 20, 45, 0.88) !important;
    /* backdrop-filter removed */
    /* backdrop-filter removed */
    border-bottom: 1px solid rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 4px 30px rgba(0, 240, 255, 0.25) !important;
}

.admin-nav-bar h6 {
    color: var(--ios-neon-blue) !important;
    text-shadow: 0 0 12px var(--ios-neon-blue) !important;
}

/* High Contrast High-Vibrancy Action Buttons */
button, .btn, input[type="submit"], input[type="button"], button[type="submit"] {
    background: linear-gradient(135deg, #00d2ff 0%, #0055ff 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 6px 25px rgba(0, 210, 255, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 1px !important;
    padding: 10px 24px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #0033ff 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 35px rgba(0, 240, 255, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* High Contrast Form Controls & Inputs */
input, select, textarea, .form-control, .form-select, input[type="text"], input[type="password"] {
    background: rgba(4, 12, 28, 0.95) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(0, 240, 255, 0.5) !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6) !important;
    box-sizing: border-box !important;
    /* backdrop-filter removed */
    transition: all 0.25s ease !important;
}

input::placeholder, textarea::placeholder, .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: normal !important;
    font-weight: 500 !important;
}

input:focus, select:focus, textarea:focus, .form-control:focus {
    border-color: #00f0ff !important;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
    background: rgba(8, 20, 48, 0.98) !important;
    outline: none !important;
    color: #ffffff !important;
}

/* High Contrast Table Styling */
table, .table {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

th, .table th {
    background: rgba(0, 102, 255, 0.45) !important;
    color: #00f0ff !important;
    border-bottom: 2px solid rgba(0, 240, 255, 0.6) !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8) !important;
    font-weight: 700 !important;
}

td, .table td {
    background: rgba(12, 24, 48, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* High Contrast Links */
a {
    color: #00f0ff !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6) !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 16px #00f0ff !important;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(4, 9, 20, 0.9);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.6);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}
::-webkit-scrollbar-thumb:hover {
    background: #00f0ff;
}


.alert-warning {
    display: block !important;
    background: rgba(255, 170, 0, 0.2) !important;
    border: 1px solid rgba(255, 170, 0, 0.6) !important;
    color: #ffea00 !important;
    border-radius: 16px !important;
    /* backdrop-filter removed */
    box-shadow: 0 8px 25px rgba(255, 170, 0, 0.3) !important;
    margin-bottom: 20px !important;
    padding: 14px 18px !important;
    animation: fadeIn 0.3s ease-in-out;
}
.alert-warning .alert-heading {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 4px !important;
}
.alert-warning p {
    color: #ffea00 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}
.alert-success, .alert-danger, .alert-info { display: none !important; }



/* Upmost Text Layer for Select & Option Controls */
select, .form-select, select.form-control, select.custom-upmost-select {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #08142c !important;
    background: #08142c !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 99 !important;
    border: 1.5px solid #00f0ff !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4) !important;
}

.custom-upmost-select {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-size: 0.86rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.custom-upmost-select span {
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: calc(100% - 20px) !important;
    display: inline-block !important;
}

select option, .form-select option, option {
    background-color: #08142c !important;
    background: #08142c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: initial !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 10px !important;
}

option:hover, option:focus, option:active, option:checked {
    background-color: #0066ff !important;
    background: #0066ff !important;
    color: #ffffff !important;
}


/* Ensure Modal backdrop and dialog sit above all background animations */
.modal-backdrop {
    z-index: 99998 !important;
    background: rgba(4, 9, 20, 0.75) !important;
    /* backdrop-filter removed */
    /* backdrop-filter removed */
}

.modal, div[class*="modal"], div[class*="Modal"] {
    z-index: 99999 !important;
}

.modal-content {
    background: rgba(10, 24, 48, 0.95) !important;
    border: 1.5px solid #00f0ff !important;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.5) !important;
    border-radius: 24px !important;
    color: #ffffff !important;
}


/* Login Container & Form - High Visibility Upmost Layer */
.container-login {
    position: relative !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80vh !important;
}

form.form-login, .form-login {
    position: relative !important;
    z-index: 99999 !important;
    background: rgba(8, 18, 38, 0.98) !important;
    border: 2px solid #00f0ff !important;
    border-radius: 24px !important;
    padding: 36px 32px !important;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.6) !important;
    max-width: 480px !important;
    width: 95% !important;
    margin: 60px auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.form-login input.form-control, .form-login .form-control {
    background: rgba(4, 12, 28, 0.98) !important;
    background-color: rgba(4, 12, 28, 0.98) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1.5px solid rgba(0, 240, 255, 0.6) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25) !important;
}

.label-login {
    color: #00f0ff !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.8) !important;
    text-align: center !important;
    margin-bottom: 24px !important;
}


/* Main Website Menu Cards - Original Icons & High Vibrancy Neon Glass */
.section-type-plates {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 30px 20px !important;
    max-width: 1300px !important;
    margin: 20px auto !important;
    position: relative !important;
    z-index: 99 !important;
}

.container-placa {
    background: rgba(8, 18, 38, 0.92) !important;
    border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 5, 20, 0.8), 0 0 20px rgba(0, 240, 255, 0.25) !important;
    /* backdrop-filter removed */
    /* backdrop-filter removed */
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px 18px !important;
    width: 180px !important;
    min-height: 170px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.container-placa:hover {
    transform: translateY(-6px) scale(1.04) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.4) !important;
    background: rgba(12, 28, 58, 0.96) !important;
}

.icon-placa {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    display: block !important;
    height: 85px !important;
    width: 85px !important;
    margin: 0 auto 12px auto !important;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6)) !important;
}

.icon-isurance {
    background-image: url(/app-plates/static/media/insurance.svg) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
    height: 85px !important;
    width: 85px !important;
    margin: 0 auto 12px auto !important;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6)) !important;
}

.icon-inspect {
    background-image: url(/app-plates/static/media/car-inspect.svg) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
    height: 85px !important;
    width: 85px !important;
    margin: 0 auto 12px auto !important;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6)) !important;
}

.label-placa {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8) !important;
    margin: 0 !important;
}


/* High-Vibrancy Form Glass Card Container */
section:not(.section-type-plates):not(.section-title):not(.section-vin) {
    background: rgba(6, 16, 36, 0.94) !important;
    border: 1.5px solid rgba(0, 240, 255, 0.5) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 28px !important;
    box-shadow: 0 25px 60px rgba(0, 4, 15, 0.95), 0 0 40px rgba(0, 240, 255, 0.35) !important;
    /* backdrop-filter removed */
    /* backdrop-filter removed */
    padding: 36px 32px !important;
    margin: 30px auto !important;
    max-width: 1150px !important;
    position: relative !important;
    z-index: 999 !important;
    color: #ffffff !important;
}

/* Page Section Title Header */
.section-title {
    margin: 20px 0 10px 0 !important;
    text-align: center !important;
}

.section-title h6 {
    color: #00f0ff !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.9), 0 0 40px rgba(0, 102, 255, 0.7) !important;
    letter-spacing: 0.5px !important;
}

/* Glowing Form Section Sub-Headers */
section:not(.section-type-plates) h6.title-group,
.title-group {
    color: #00f0ff !important;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.9), 0 0 30px rgba(0, 102, 255, 0.7) !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    border-bottom: 2px solid rgba(0, 240, 255, 0.4) !important;
    padding-bottom: 12px !important;
    margin-bottom: 24px !important;
    letter-spacing: 0.5px !important;
}

/* High Contrast Input Labels */
section:not(.section-type-plates) label,
section:not(.section-type-plates) .form-label {
    color: #38bdf8 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
}

/* High-Vibrancy Form Controls & Inputs */
section:not(.section-type-plates) input.form-control,
section:not(.section-type-plates) select.form-control,
section:not(.section-type-plates) .form-control {
    background: rgba(4, 12, 28, 0.95) !important;
    background-color: rgba(4, 12, 28, 0.95) !important;
    border: 1.5px solid rgba(0, 240, 255, 0.5) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) !important;
    transition: all 0.25s ease !important;
}

section:not(.section-type-plates) input.form-control:focus,
section:not(.section-type-plates) select.form-control:focus,
section:not(.section-type-plates) .form-control:focus {
    border-color: #00f0ff !important;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7) !important;
    outline: none !important;
    background: rgba(8, 20, 48, 0.98) !important;
}

/* Action Buttons (Generar / Cancelar) */
.section-btn-plates {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(0, 240, 255, 0.2) !important;
}

.section-btn-plates .btn-principal {
    background: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5) !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    padding: 12px 32px !important;
    border-radius: 9999px !important;
}

.section-btn-plates .btn-auxiliar {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 12px 28px !important;
    border-radius: 9999px !important;
}

.section-btn-plates .btn-auxiliar:hover {
    background: rgba(255, 60, 60, 0.3) !important;
    border-color: #ff4444 !important;
    color: #ffffff !important;
}


#root {
    position: relative !important;
    z-index: 10 !important;
    min-height: 100vh !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
}
