html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.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 #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Reset básico */
.circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#4e73df calc(var(--value) * 1%), #e0e0e0 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    --value: 0;
    transition: background 1s ease;
}

    .circular-progress::before {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        background-color: #fff;
        border-radius: 50%;
    }

    .circular-progress .value-text {
        position: absolute;
        font-weight: bold;
        font-size: 1.5rem;
        color: #4e73df;
    }

body,
html {
    height: 100%;
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #f8f9fa;
    color: #495057;
}

.nav-scrollable {
    overflow: visible !important; /* Permite que el dropdown se muestre fuera del contenedor */
    position: relative; /* Necesario para el posicionamiento absoluto del dropdown */
}

.role-circle {
    display: inline-block;
    min-width: 32px;
    padding: 0.25em 0.75em;
    border-radius: 50%;
    background: #e0e7ff;
    color: #1e293b;
    text-align: center;
    font-size: 0.95em;
    font-weight: 500;
    margin-right: 0.25em;
}

.detalle-header-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.detalle-header-value {
    color: #198754;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detalle-section-title {
    color: #198754;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detalle-label {
    font-weight: 600;
    color: #222;
}

.detalle-value {
    font-weight: 400;
    color: #222;
}

.estado-badge {
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.35em 1.2em;
    font-size: 1rem;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 2;
}

    .estado-badge.disponible {
        background: #198754;
    }

h2 {
    color: black;
}

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: #1e1e2f;
    color: #fff;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: width 0.3s;
    z-index: 1030;
}

    #sidebar .sidebar-header {
        padding: 20px 30px;
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        background: #0f0f1a;
        border-bottom: 1px solid #2a2a40;
    }

    #sidebar ul.components {
        padding: 20px 0;
        list-style: none;
        margin: 0;
    }

    #sidebar ul li {
        padding: 15px 30px;
        font-size: 1rem;
        cursor: pointer;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
    }

        #sidebar ul li:hover,
        #sidebar ul li.active {
            background: #343454;
            border-left: 4px solid #4e73df;
            color: #f8f9fa;
        }

        #sidebar ul li i {
            margin-right: 12px;
            font-size: 1.2rem;
            vertical-align: middle;
        }

/* Main content */
#content {
    margin-left: 260px;
    padding: 30px 40px;
    transition: margin-left 0.3s;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Topbar */
.topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
}

    .topbar .search-box {
        flex: 1;
        max-width: 350px;
        margin-left: 20px;
    }

        .topbar .search-box input {
            width: 100%;
            border-radius: 30px;
            border: 1px solid #ced4da;
            padding: 6px 15px;
            font-size: 0.9rem;
            transition: box-shadow 0.3s;
        }

            .topbar .search-box input:focus {
                outline: none;
                border-color: #4e73df;
                box-shadow: 0 0 6px #4e73df;
            }

    .topbar .topbar-icons {
        display: flex;
        gap: 25px;
        align-items: center;
    }

        .topbar .topbar-icons i {
            font-size: 1.3rem;
            color: #6c757d;
            cursor: pointer;
            position: relative;
        }

            .topbar .topbar-icons i:hover {
                color: #4e73df;
            }

        .topbar .topbar-icons .badge {
            position: absolute;
            top: -5px;
            right: -8px;
            background: #e74a3b;
            color: #fff;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 50%;
        }

h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: black;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.card {
    border-radius: 10px;
}

    .card .form-select {
        min-width: 100%;
        font-size: 0.95rem;
    }

.btn i {
    font-size: 1rem;
}

.card-title {
    font-size: 1.1rem;
    color: black;
}

.card hr {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border-color: #dee2e6;
}

.card ul li h6 {
    font-weight: 600;
    color: #212529;
}

.card ul li small {
    color: #6c757d;
}

.card img, .card .bg-primary, .card .bg-success, .card .bg-warning {
    flex-shrink: 0;
}
/* Cards grid */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Individual card */
.card-custom {
    border-radius: 20px; /* Esquinas más redondeadas (antes era 10px) */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Más sombra (antes era 0 2px 8px) */
    padding: 20px 30px;
    color: #343a40;
    transition: box-shadow 0.3s ease, transform 0.2s ease; /* Agregar transform para hover */
    position: relative;
    overflow: hidden;
    background: #fff; /* Cambiar a blanco puro para mejor contraste */
}

.responsive-text {
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
}

/* También actualizar card-BackgroundCustom para consistencia */
.card-BackgroundCustom {
    border-radius: 20px; /* Mantener consistencia */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    color: #343a40;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.card-custom .card-header {
    background-color: #fff; /* Cambiar a blanco */
    border-radius: 20px; /* Mantener consistencia */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    color: #343a40;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

h1 {
    color: #1b6ec2; /* Color primario de Bootstrap 5 */
    font-weight: 600;
}

.card-custom:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Sombra aún más pronunciada en hover */
    transform: translateY(-5px); /* Efecto de elevación en hover */
}


.card-custom .card-icon {
    font-size: 2.8rem;
    position: absolute;
    top: 15px;
    right: 20px;
    opacity: 0.15;
}


.card-custom h5 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
    color: #343a40;
}

.card-custom h2 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}


.card-custom .card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
}

/* Chart container */
.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    margin-top: 30px;
}

/* Table styles */
/*table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

    table thead {
        background-color: #1b8f59;
        color: white;
        font-weight: 600;
    }

    table th,
    table td {
        padding: 12px 18px;
        text-align: left;
        border-bottom: 1px solid #dee2e6;
    }

    table tbody tr:hover {
        background: #f1f3ff;
    }


*/
/* Profile dropdown */
.profile-menu {
    position: relative;
}

    .profile-menu img {
        border-radius: 50%;
        width: 38px;
        height: 38px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

        .profile-menu img:hover {
            border-color: #4e73df;
        }

.dropdown-menu {
    min-width: 200px;
    box-shadow: 0 3px 15px rgb(0 0 0 / 0.2);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 991px) {
    #sidebar {
        width: 60px;
    }

        #sidebar ul li span {
            display: none;
        }

    #content {
        margin-left: 60px;
        padding: 20px;
    }
}

/* ============================
   COMPONENTES BLAZOR ESTILIZADOS
   ============================ */

/* Estilo base para inputs y selects */
.input-estilizado {
    appearance: none;
    background-color: #f4f6fc;
    border: 2px solid #d1d3e2;
    border-radius: 10px;
    padding: 12px 16px;
    width: 100%;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    color: #343a40;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .input-estilizado:focus {
        outline: none;
        border-color: #4e73df;
        box-shadow: 0 0 6px rgba(78, 115, 223, 0.4);
        background-color: #ffffff;
    }

/* Estilo para InputSelect (usa misma clase) */
select.input-estilizado {
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg viewBox='0 0 140 140' width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 140,0 70,100' fill='%236c757d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
    cursor: pointer;
}

/* Estilo para InputFile */
.input-file-estilizado {
    display: inline-block;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    border-radius: 8px;
    background-color: #f0f2f5;
    border: 1px solid #d1d9e6;
    color: #343a40;
    transition: 0.3s ease;
}

    .input-file-estilizado:focus {
        outline: none;
        border-color: #4e73df;
        box-shadow: 0 0 4px rgba(78, 115, 223, 0.4);
    }

/* Botón subir archivo */
.boton-estilizado {
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

    .boton-estilizado:hover {
        background-color: #2e59d9;
    }

/* Input Group (como Cubículo) */
.input-group-text {
    background: #e9eff6;
    border: 1px solid #ced4da;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: #495057;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.input-group .input-estilizado {
    border-radius: 0 8px 8px 0;
}

/* Label */
label.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e1e2f;
    font-size: 0.95rem;
}

/* Validation messages */
.validation-message,
.validation-message span {
    color: #e74a3b;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
    display: block;
}

.grafico-contenedor {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    border: 2px solid #ccc;
}

.segmento {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 100% 0, 100% 100%);
    background: #f0f0f0;
    transform-origin: center;
    border: 1px solid #ddd;
}

.segmento-contenido {
    position: absolute;
    top: 50%;
    left: 75%;
    transform-origin: center;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 12px;
}

.leyenda {
    text-align: center;
    margin-top: 20px;
}

.leyenda-item {
    margin: 5px 0;
}

.color-box {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border: 1px solid #00000033;
}

.grafico-circular {
    width: 250px; /* Aumenta aquí */
    height: 250px; /* Aumenta aquí */
    border-radius: 50%;
    position: relative;
    border: 2px solid #ccc;
    margin: 20px;
}

.segmento-texto {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 12px;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}

    .segmento-texto::before {
        content: '';
        width: 8px;
        height: 8px;
        background-color: currentColor;
        border-radius: 50%;
        display: inline-block;
        margin-right: 4px;
    }

/* Asegurar que los días sean clickeables */
.fc-daygrid-day {
    cursor: pointer !important;
    position: relative;
}

    .fc-daygrid-day:hover {
        background-color: rgba(0, 123, 255, 0.1) !important;
    }

/* Asegurar que el área clickeable cubra todo el día */
.fc-daygrid-day-frame {
    min-height: 40px;
    position: relative;
}


/* Apply consistent border-radius to all buttons to match cards */
.btn {
    border-radius: 20px !important; /* Match card border-radius */
}

/* Apply consistent border-radius to all badges to match cards */
.badge {
    border-radius: 20px !important; /* Match card border-radius */
}

/* Specific button types */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    border-radius: 20px !important; /* Match card border-radius */
}

/* Also update existing buttons */
.boton-estilizado {
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 20px; /* Updated to match cards */
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

/* Update dropdown buttons in NavMenu */
.dropup button {
    border-radius: 20px !important; /* Match card border-radius */
}

/* Update estado-badge to match cards */
.estado-badge {
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    border-radius: 20px; /* Updated to match cards */
    padding: 0.35em 1.2em;
    font-size: 1rem;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 2;
}

/* Update role-circle to match cards */
.role-circle {
    display: inline-block;
    min-width: 32px;
    padding: 0.25em 0.75em;
    border-radius: 20px; /* Updated to match cards */
    background: #e0e7ff;
    color: #1e293b;
    text-align: center;
    font-size: 0.95em;
    font-weight: 500;
    margin-right: 0.25em;
}

/* Update segmento-texto to match cards */
.segmento-texto {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 20px; /* Updated to match cards */
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* ============================
   NAVBAR NAVIGATION LINKS CONSISTENCY 
   ============================ */

/* Apply consistent border-radius to navigation links to match profile dropdown */
.nav-scrollable .nav-item .nav-link {
    border-radius: 20px !important; /* Match card border-radius and profile dropdown */
    margin: 0.25rem 0.75rem; /* Add some margin for better visual separation */
    transition: all 0.3s ease;
}

    /* Ensure hover effects work well with rounded corners */
    .nav-scrollable .nav-item .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px !important;
    }

/* Update the profile dropdown button to match consistently */
.dropup button {
    border-radius: 20px !important; /* Match card border-radius */
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    color: white;
}

/* Ensure dropdown menu also matches */
.dropdown-menu {
    min-width: 200px;
    box-shadow: 0 3px 15px rgb(0 0 0 / 0.2);
    border-radius: 20px !important; /* Updated to match cards */
}

/* Style dropdown items to be consistent */
.dropdown-item {
    border-radius: 20px !important;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

    .dropdown-item:hover {
        border-radius: 20px !important;
    }

.chart-container-custom {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

/* Asegurar que los títulos tengan el color correcto */
.card-custom .card-title {
    color: #1b6ec2 !important;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Estilo para las tarjetas de resumen con colores */
.card-custom.bg-primary .card-title,
.card-custom.bg-success .card-title,
.card-custom.bg-warning .card-title,
.card-custom.bg-info .card-title {
    color: white !important;
}

/* Efecto hover adicional para las gráficas */
.card-custom:hover .chart-container-custom {
    background: #ffffff;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Estilo para los iconos en las tarjetas de resumen */
.card-custom .card-icon {
    opacity: 0.3;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container-custom {
        padding: 10px;
    }

    .card-custom {
        margin-bottom: 1rem;
    }
}
