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

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5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bGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.home-container {
    padding: 2rem;
    color: #222;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.home-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .home-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #ff6600; /* naranja principal */
    }

    .home-header .subtitle {
        font-size: 1.2rem;
        color: #555;
        color: #ff6600;
    }

.quick-access h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

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

.card-access {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card-access:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    .card-access i {
        font-size: 2.5rem;
        color: #ff6600;
        margin-bottom: 1rem;
    }

    .card-access h3 {
        color: #111;
        margin-bottom: 0.5rem;
    }

    .card-access p {
        color: #666;
        margin-bottom: 1rem;
    }

.btn-primary {
    background-color: #ff6600;
    border: none;
    transition: background-color 0.2s ease;
}

    .btn-primary:hover {
        background-color: #e05500;
    }


/* === CLIENTES PAGE === */
.clientes-container {
    background-color: #f3f3f3;
    padding: 2rem;
    border-radius: 10px;
}

.clientes-header h1 {
    color: #ff6600;
    font-weight: bold;
}

.subtitle {
    color: #555;
}

.btn-naranja {
    background-color: #ff6600;
    color: #fff;
    border: none;
    transition: 0.3s;
}

    .btn-naranja:hover {
        background-color: #e65500;
        color: #fff;
    }

/* Tabla */
.table {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

    .table thead {
        background-color: var(--table-header);
        color: #fff;
    }

    .table thead th {
        color: #fff;
        font-weight: 600;
    }

    .table tbody tr:hover {
        background-color: var(--table-row-hover);
    }

.text-naranja {
    color: orange !important;
}

.bg-dark .form-select,
.bg-dark .form-control {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid orange;
}

    .bg-dark .form-select:focus,
    .bg-dark .form-control:focus {
        box-shadow: 0 0 10px orange;
        border-color: orange;
    }

.btn-naranja {
    background-color: orange;
    color: #000;
    border: none;
}

    .btn-naranja:hover {
        background-color: #ff9a1f;
    }

/* === ESTILO BASE OSCURO CON DETALLES NARANJA === */

.text-naranja {
    color: #ff8c00 !important;
}

.btn-naranja {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #fff;
    transition: all 0.2s ease-in-out;
}

    .btn-naranja:hover {
        background-color: #ffa733;
        border-color: #ffa733;
        color: #fff;
        transform: scale(1.05);
    }

.bg-dark {
    background-color: #181818 !important;
}

.border-warning {
    border-color: #ff8c00 !important;
}

/* === CONTENEDOR PRINCIPAL === */
.clientes-container {
    padding: 2rem;
    color: #fff;
}

/* === ENCABEZADO === */
.clientes-header h1 {
    color: #ff8c00;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.clientes-header .subtitle {
    color: #bbb;
    font-size: 0.95rem;
}

/* === BLOQUE DE FILTROS === */
.filtros-clientes {
    background-color: #121212;
    border: 1px solid #ff8c00;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

    .filtros-clientes .form-label {
        font-weight: bold;
        color: #ff8c00;
    }

    .filtros-clientes .form-control,
    .filtros-clientes .form-select {
        background-color: #1e1e1e;
        color: #fff;
        border: 1px solid #ff8c00;
        border-radius: 6px;
        transition: all 0.2s ease-in-out;
    }

        .filtros-clientes .form-control:focus,
        .filtros-clientes .form-select:focus {
            background-color: #252525;
            border-color: #ffa733;
            box-shadow: 0 0 6px #ff8c00;
            outline: none;
        }

/* === TABLA === */
.table {
    background-color: #222;
    color: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

    .table thead {
        background-color: #111;
        color: #ff8c00;
        font-weight: bold;
    }

.table-hover tbody tr:hover {
    background-color: #2c2c2c;
    transition: 0.2s;
}

/* === BOTONES DE ACCIÓN === */
.btn-outline-primary {
    border: 1px solid #ff8c00;
    color: #ff8c00;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

    .btn-outline-primary:hover {
        background-color: #ff8c00;
        color: #fff;
    }

.btn-outline-danger {
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

    .btn-outline-danger:hover {
        background-color: #ff4d4d;
        color: #fff;
    }

/* === MODAL === */
.modal-content {
    background-color: #1b1b1b;
    border: 1px solid #ff8c00;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
}

.modal-header {
    border-bottom: 1px solid #333;
    background-color: #121212;
}

.modal-title {
    color: #ff8c00;
}

.modal-footer {
    border-top: 1px solid #333;
}

/* === SPINNER === */
.spinner-border.text-warning {
    color: #ff8c00 !important;
}

/* === RESULTADOS === */
.resultados-info {
    color: #bbb;
    font-style: italic;
    font-size: 0.9rem;
}

.sidebar {
    width: 200px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0b0b1a 0%, #1c0030 100%);
    color: white;
}

.sidebar-header img {
    filter: drop-shadow(0 0 3px orange);
}

.nav-link {
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

    .nav-link:hover, .nav-link.active {
        background-color: orange;
        color: black !important;
        font-weight: 600;
    }

.bi {
    font-size: 1.1rem;
    vertical-align: middle;
}
.text-naranja {
    color: orange;
}

.filtros-container {
    transition: 0.3s ease-in-out;
}

    .filtros-container:hover {
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    }
/* === Sidebar general === */
.sidebar {
    min-height: 100vh;
    width: 220px;
    background-color: #0d0d0d; /* negro profundo */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 2px 0 10px rgba(255, 140, 0, 0.1);
}

/* === Encabezado del sidebar === */
.sidebar-header {
    background: linear-gradient(90deg, #ff8c00 0%, #ff5500 100%);
    border-bottom: 1px solid #ffa31a;
}

/* === Links === */
.nav-link-custom {
    color: #f5f5f5;
    font-weight: 500;
    border-left: 4px solid transparent;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.2s ease-in-out;
}

    /* === Hover y activo === */
    .nav-link-custom:hover {
        background-color: #1c1c1c;
        border-left: 4px solid #ff8c00;
        color: #ff8c00;
        text-shadow: 0 0 5px rgba(255, 140, 0, 0.6);
    }

    .nav-link-custom.active {
        background-color: #1a1a1a;
        border-left: 4px solid #ff8c00;
        color: #ff8c00;
    }

    /* === Íconos === */
    .nav-link-custom i, .nav-link-custom span {
        font-size: 1rem;
    }

/* === Scroll elegante si crece el menú === */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #ff8c00;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}
