html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary:hover {
    background-color: #004080;
    transform: scale(1.03);
    transition: all 0.3s ease;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e51970;
}

.validation-message {
    color: #e51970;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OU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."
    }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.table {
    margin-top: 20px;
    border-collapse: collapse;
    font-family: sans-serif;
    table-layout: auto; /* Se ajusta al contenido */
}

    .table th, .table td {
        padding: 8px 12px;
        text-align: left;
        white-space: nowrap; /* Evita saltos de l�nea innecesarios */
    }


/* Fondo con degradado */
.navbar {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Degradado azul */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil para profundidad */
}

/* Fondo con degradado */
.navbar {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Degradado azul */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil para profundidad */
}

/* Estilo de la marca (logo) */
.navbar-brand {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.7rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3); /* Sombra en el texto */
}

/* Logo dentro de la marca */
.navbar-logo {
    height: 45px;
    width: auto;
    margin-right: 15px;
}

/* Estilo de los enlaces */
.nav-link {
    color: #fff !important;
    font-size: 1.15rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    transition: background-color 0.3s ease; /* Transici�n suave */
}

    /* Efecto al pasar el rat�n */
    .nav-link:hover {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.2); /* Efecto de fondo transparente */
        border-radius: 8px;
    }

.nav-scrollable {
    background-color: rgba(0, 0, 0, 0.1); /* Fondo negro */
    height: 100vh; /* Aseguramos que ocupe toda la altura de la pantalla */
    overflow-y: auto; /* Hacer scroll vertical */
    padding-top: 20px;
    border-right: 2px solid #007bff; /* Borde azul */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra interna */
}

/* Estilos responsivos para los enlaces */
.nav-item {
    margin-bottom: 12px;
}
/* Fondo de la navbar-toggler-icon con degradado */
.navbar .navbar-toggler-icon {
    background: linear-gradient(135deg, #007bff, #0056b3) !important; /* Degradado azul */
    border-radius: 4px; /* Bordes redondeados para el �cono */
    height: 30px; /* Ajuste para tama�o del �cono */
}

/* Mejorar el contorno del bot�n del toggler */
.navbar-toggler {
    border-color: #fff;
}




.bi-pencil, .bi-trash, .bi-hand-thumbs-down {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
    cursor: pointer;
}


.carousel-indicators [data-bs-target] {
    background-color: #007bff; /* Azul Bootstrap */
}

.carousel-indicators .active {
    background-color: #0056b3; /* Azul más oscuro para el activo */
}



/* Variables CSS para consistencia  se usan en 
    darhboard....razor


*/

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: rgba(15, 15, 30, 0.95);
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-radius: 16px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
}




/* Base Button Styles */
.ecu-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 10px;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

    .ecu-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .ecu-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Button Icons */
    .ecu-button img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

/* Specific icon filters for better visibility */

/* Info icon - White on dark background (needs white filter) */
.btn-info img {
    filter: none;
}

/* Immobilizer icon - Already red and white, no filter needed */
.btn-immobilizer img {
    filter: none;
}

/* DPF icon - Should remain orange/yellow for warning meaning */
.btn-dpf img {
    filter: none;
}

/* EGR icon - Black icon, needs white filter for dark background */
.btn-egr img {
    filter: none;
}

/* Lambda icon - Metallic sensors, better in white for visibility */
.btn-lambda img {
    filter: none;
}

/* VMAX icon - Line art, needs white filter */
.btn-vmax img {
    filter: none;
}

.btn-virgin img {
    filter: none;
}
/* Individual Button Colors */

/* Info Button - Blue */
.btn-info {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

    .btn-info:hover {
        background: linear-gradient(135deg, #1e40af, #60a5fa);
    }

/* Immobilizer Off Button - Red */
.btn-immobilizer {
    background: linear-gradient(135deg, #991b1b, #dc2626);
}

    .btn-immobilizer:hover {
        background: linear-gradient(135deg, #b91c1c, #ef4444);
    }

/* DPF Button - Orange/Brown */
.btn-dpf {
    background: linear-gradient(135deg, #a36100, #f59e0b);
}

    .btn-dpf:hover {
        background: linear-gradient(135deg, #b45309, #fbbf24);
    }

/* EGR Button - Dark Gray */
.btn-egr {
    background: linear-gradient(135deg, #374151, #6b7280);
}

    .btn-egr:hover {
        background: linear-gradient(135deg, #4b5563, #9ca3af);
    }

/* Lambda Button - Purple */
.btn-lambda {
    background: linear-gradient(135deg, #6b21a8, #a855f7);
}

    .btn-lambda:hover {
        background: linear-gradient(135deg, #7c3aed, #c084fc);
    }

/* VMAX Button - */
.btn-vmax {
    background: linear-gradient(135deg, #1b21a8, #1855f7);
}

    .btn-vmax:hover {
        background: linear-gradient(135deg, #3c3aed, #c084fc);
    }

/* VIRGIN Button -*/
.btn-virgin {
    background: linear-gradient(135deg, #11998e, #b45309);
}

    .btn-virgin:hover {
        background: linear-gradient(135deg, #9ca3af, #f59e0b);
    }

/* Button Container */
.ecu-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background-color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ecu-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .ecu-button {
        width: 100%;
        justify-content: center;
    }
}

/* Button Text */
.ecu-button span {
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

/* Focus States for Accessibility */
.ecu-button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Loading State */
.ecu-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

    .ecu-button:disabled:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }


/* ========================================
   FILE UPLOAD STYLES - Blazor Integration
   ======================================== */

/* File Upload Container */
.file-upload-section {
    margin-bottom: 20px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #374151;
}

/* Hide the original InputFile - we'll style the label instead */
input[type="file"] {
    display: none;
}

/* Styled File Upload Button */
.file-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #374151, #4b5563);
    color: white;
    padding: 12px 24px;
    border: 1px solid #6b7280;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    user-select: none;
}

    /* File Upload Button Hover */
    .file-upload-label:hover:not(.disabled) {
        background: linear-gradient(135deg, #4b5563, #6b7280);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    /* File Upload Button Active */
    .file-upload-label:active:not(.disabled) {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Disabled State */
    .file-upload-label.disabled {
        background: linear-gradient(135deg, #1f2937, #374151);
        color: #6b7280;
        cursor: not-allowed;
        border-color: #4b5563;
        box-shadow: none;
    }

    /* File Upload Icon */
    .file-upload-label::before {
        content: "📁";
        font-size: 16px;
        margin-right: 2px;
    }

/* File Name Display */
.file-name-display {
    margin-top: 8px;
    padding: 8px 12px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 13px;
    color: #e5e5e5;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

    /* Empty File State */
    .file-name-display.empty {
        color: #9ca3af;
        font-style: italic;
    }

/* Focus States for Accessibility */
.file-upload-label:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-upload-label {
        width: 100%;
        justify-content: center;
    }

    .file-name-display {
        width: 100%;
    }
}



/* ========================================
   ALERT STYLES - Modern Design with White Text
   ======================================== */

/* Alert Container - Similar to file upload */
.modern-alert {
    margin-bottom: 20px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #374151;
    position: relative;
    overflow: hidden;
}

/* Alert Variants with different border colors */

/* Info Alert (Blue) */
.modern-alert-info {
    border-left: 4px solid #3b82f6;
}

    .modern-alert-info::before {
        content: "ℹ️";
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 18px;
        opacity: 0.7;
    }

/* Success Alert (Green) */
.modern-alert-success {
    border-left: 4px solid #10b981;
}

    .modern-alert-success::before {
        content: "✅";
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 18px;
        opacity: 0.7;
    }

/* Warning Alert (Yellow/Orange) */
.modern-alert-warning {
    border-left: 4px solid #f59e0b;
}

    .modern-alert-warning::before {
        content: "⚠️";
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 18px;
        opacity: 0.7;
    }

/* Error Alert (Red) */
.modern-alert-error {
    border-left: 4px solid #ef4444;
}

    .modern-alert-error::before {
        content: "❌";
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 18px;
        opacity: 0.7;
    }

/* Alert Text - White text optimized */
.modern-alert-text {
    color: white;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    font-family: 'Arial', sans-serif;
}

/* Alert Title (optional) */
.modern-alert-title {
    color: #e5e5e5;
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 8px 0;
    padding-right: 30px; /* Space for icon */
}

/* Hover effect for alerts */
.modern-alert:hover {
    background: #222;
    border-color: #4b5563;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.modern-alert:focus-within {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .modern-alert {
        padding: 12px;
    }

    .modern-alert-text {
        font-size: 13px;
    }

    .modern-alert-title {
        font-size: 14px;
    }
}

/* Animated border effect (optional) */
.modern-alert::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* For alerts that should be more prominent */
.modern-alert-elevated {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

    .modern-alert-elevated:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

/* Compact version */
.modern-alert-compact {
    padding: 10px 12px;
}

    .modern-alert-compact .modern-alert-text {
        font-size: 13px;
    }

    .modern-alert-compact::before {
        font-size: 14px;
        top: 10px;
        right: 10px;
    }