﻿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 {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/* ===================================
   LOADING SCREEN STYLES - Professional Edition
   =================================== */

/* Loading Container */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #FDFDFD 0%, #F8F9FA 25%, #F4F6F7 50%, #ECF0F1 75%, #E8EAED 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 9999;
}

.loading-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(44, 62, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(22, 160, 133, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(155, 89, 182, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Brand Section */
.loading-brand {
    text-align: center;
    margin-bottom: 3rem;
    z-index: 1;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.15);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-icon i {
    color: white;
    font-size: 2.5rem;
}

/* Fallback icon CSS mientras se carga FontAwesome */
.logo-icon i {
    position: relative;
}

/* Crear un icono CSS simple como fallback */
.logo-icon i:before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid white;
    border-radius: 50%;
    border-top: 4px solid transparent;
    border-right: 8px solid white;
    position: relative;
    animation: pulse 2s ease-in-out infinite alternate;
}

/* Una vez que FontAwesome se carga, reemplazar con el icono real */
.logo-icon i.fas:before,
.logo-icon i.fa:before {
    content: "\f200"; /* FontAwesome chart-pie icon */
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    animation: none;
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2.5rem;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 1rem 0 0.5rem 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(44, 62, 80, 0.1);
}

.brand-subtitle {
    font-size: 1.2rem;
    color: #5D6D7E;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.brand-description {
    font-size: 0.9rem;
    color: #85929E;
    margin: 0;
    font-weight: 300;
}

/* Progress Ring */
.loading-progress-modern {
    margin: 2rem 0;
    z-index: 1;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-background,
.progress-bar {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-background {
    stroke: rgba(44, 62, 80, 0.1);
}

.progress-bar {
    stroke: #2C3E50;
    stroke-dasharray: 251.2;
    stroke-dashoffset: calc(251.2 - (251.2 * var(--blazor-load-percentage, 0)) / 100);
    transition: stroke-dashoffset 0.3s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.percentage-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C3E50;
}

.percentage-text::after {
    content: var(--blazor-load-percentage-text, "0%");
}

/* Loading Status */
.loading-status {
    text-align: center;
    margin: 2rem 0;
    z-index: 1;
}

.status-text {
    font-size: 1rem;
    color: #5D6D7E;
    font-weight: 500;
    margin-bottom: 1rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    animation: dotPulse 1.5s infinite ease-in-out;
}

.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: 0.2s; }
.dot3 { animation-delay: 0.4s; }

/* Footer */
.loading-footer {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    z-index: 1;
}

.powered-by {
    font-size: 0.85rem;
    color: #85929E;
    margin: 0;
}

.powered-by strong {
    color: #2C3E50;
    font-weight: 600;
}

/* Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes dotPulse {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.5rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon i {
        font-size: 2rem;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-description {
        font-size: 0.8rem;
    }
}

/* Legacy loading styles (ocultar los antiguos) */
.loading-progress {
    display: none;
}

.loading-progress-text {
    display: none;
}

/* ===================================
   DASHBOARD ELEGANT STYLES - Loading Style
   =================================== */

/* Hero Section Elegant */
.hero-section-elegant {
    min-height: 70vh;
    background: linear-gradient(145deg, #FDFDFD 0%, #F8F9FA 25%, #F4F6F7 50%, #ECF0F1 75%, #E8EAED 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(44, 62, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(22, 160, 133, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(155, 89, 182, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero-logo-container {
    margin-bottom: 1.5rem;
}

.hero-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.15);
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo-icon i {
    color: white;
    font-size: 2.5rem;
}

.hero-brand-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 1rem 0 0.5rem 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(44, 62, 80, 0.1);
}

.hero-brand-subtitle {
    font-size: 1.2rem;
    color: #5D6D7E;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.hero-brand-description {
    font-size: 0.9rem;
    color: #85929E;
    margin: 0;
    font-weight: 300;
}

.excellence-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2C3E50;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.1);
}

/* Buttons Elegant */
.btn-elegant {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.1);
}

.btn-elegant:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15);
}

.btn-elegant-primary {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
}

.btn-elegant-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #2C3E50;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.btn-elegant.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Dashboard Content Elegant */
.dashboard-content-elegant {
    background: linear-gradient(145deg, #FDFDFD 0%, #F8F9FA 25%, #F4F6F7 50%, #ECF0F1 75%, #E8EAED 100%);
    min-height: 100vh;
    position: relative;
}

.dashboard-content-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(44, 62, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(22, 160, 133, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(155, 89, 182, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Section Titles Elegant */
.section-title-elegant {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(44, 62, 80, 0.1);
}

.section-subtitle-elegant {
    font-size: 1.2rem;
    color: #5D6D7E;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Elegant */
.stats-elegant-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
    position: relative;
}

.stat-elegant {
    text-align: center;
    padding: 1rem;
}

.stat-elegant-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-elegant-label {
    font-size: 0.9rem;
    color: #5D6D7E;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Metrics Section Elegant */
.metrics-section-elegant {
    position: relative;
    z-index: 1;
}

.metric-card-elegant {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    height: 100%;
}

.metric-card-elegant:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.15);
}

.metric-icon-elegant {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.metric-icon-elegant.metric-success {
    background: linear-gradient(135deg, #16A085 0%, #2ECC71 100%);
}

.metric-icon-elegant.metric-info {
    background: linear-gradient(135deg, #2980B9 0%, #3498DB 100%);
}

.metric-icon-elegant.metric-warning {
    background: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);
}

.metric-content-elegant {
    text-align: center;
}

.metric-number-elegant {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label-elegant {
    font-size: 1rem;
    color: #5D6D7E;
    font-weight: 500;
    margin-bottom: 1rem;
}

.metric-trend-elegant {
    font-size: 0.85rem;
    color: #16A085;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Module Cards Elegant */
.modules-section-elegant {
    position: relative;
    z-index: 1;
}

.module-card-elegant {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.module-card-elegant:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(44, 62, 80, 0.15);
}

.module-header-elegant {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.05);
    background: rgba(248, 249, 250, 0.5);
}

.module-icon-elegant {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    animation: logoFloat 3s ease-in-out infinite;
}

.module-title-elegant {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
    letter-spacing: 0.5px;
}

.module-subtitle-elegant {
    font-size: 0.9rem;
    color: #5D6D7E;
    margin: 2px 0 0 0;
}

.status-badge-elegant {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.status-badge-elegant.active {
    background: rgba(22, 160, 133, 0.1);
    color: #16A085;
    border: 1px solid rgba(22, 160, 133, 0.2);
}

.module-body-elegant {
    padding: 1.5rem;
}

.module-description-elegant p {
    color: #5D6D7E;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-list-elegant {
    margin-bottom: 1.5rem;
}

.feature-item-elegant {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #5D6D7E;
}

.feature-item-elegant i {
    color: #16A085;
    font-size: 0.8rem;
}

.module-actions-elegant {
    margin-bottom: 1.5rem;
}

.module-stats-elegant {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid rgba(44, 62, 80, 0.05);
}

.stat-elegant-inline {
    text-align: center;
}

.stat-value-elegant {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 2px;
}

.stat-label-elegant {
    font-size: 0.75rem;
    color: #85929E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Elegant */
.footer-section-elegant {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

.footer-content-elegant {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.footer-logo-elegant {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.footer-logo-icon i {
    color: white;
    font-size: 1.8rem;
}

.footer-brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
    letter-spacing: 1px;
}

.footer-brand-subtitle {
    font-size: 1rem;
    color: #5D6D7E;
    margin: 0;
    font-weight: 500;
}

.footer-description p {
    color: #5D6D7E;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.footer-powered p {
    color: #85929E;
    font-size: 0.9rem;
    margin: 0;
}

.footer-powered strong {
    color: #2C3E50;
    font-weight: 600;
}

/* Coming Soon Module */
.coming-soon-elegant {
    opacity: 0.8;
}

.coming-soon-elegant:hover {
    opacity: 1;
}

.coming-soon-elegant .btn-elegant:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.coming-soon-elegant .btn-elegant:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.1);
}

/* Animations */
@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-8px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Module cards entrance animation */
.module-card-elegant {
    animation: fadeInUp 0.8s ease-out forwards;
}

.module-card-elegant:nth-child(1) {
    animation-delay: 0.1s;
}

.module-card-elegant:nth-child(2) {
    animation-delay: 0.2s;
}

.module-card-elegant:nth-child(3) {
    animation-delay: 0.3s;
}

/* Metric cards entrance animation */
.metric-card-elegant {
    animation: fadeInUp 0.8s ease-out forwards;
}

.metric-card-elegant:nth-child(1) {
    animation-delay: 0.1s;
}

.metric-card-elegant:nth-child(2) {
    animation-delay: 0.2s;
}

.metric-card-elegant:nth-child(3) {
    animation-delay: 0.3s;
}

.metric-card-elegant:nth-child(4) {
    animation-delay: 0.4s;
}

/* Stats float animation */
.stat-elegant {
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-elegant:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-elegant:nth-child(2) {
    animation-delay: 0.3s;
}

.stat-elegant:nth-child(3) {
    animation-delay: 0.4s;
}

.stat-elegant:nth-child(4) {
    animation-delay: 0.5s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-brand-title {
        font-size: 2.5rem;
    }
    
    .hero-logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero-logo-icon i {
        font-size: 2rem;
    }
    
    .section-title-elegant {
        font-size: 2rem;
    }
    
    .metric-card-elegant,
    .module-card-elegant {
        margin-bottom: 1.5rem;
    }
    
    .footer-content-elegant {
        padding: 2rem 1.5rem;
    }
    
    .footer-brand-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-brand-title {
        font-size: 2rem;
    }
    
    .section-title-elegant {
        font-size: 1.8rem;
    }
    
    .module-header-elegant {
        flex-direction: column;
        text-align: center;
    }
    
    .module-status-elegant {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

code {
    color: #c02d76;
}

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





/*______________________________________________________________________________________________________________________________________________________________________________________________________________*/
/*______________________________________________________________________________________________________________________________________________________________________________________________________________*/
/*______________________________________________________________________________________________________________________________________________________________________________________________________________*/
/*______________________________________________________________________________________________________________________________________________________________________________________________________________*/




body {
}

.contentGen {
    padding-top: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
}

.fondo {
    background-image: url('/img/logo/fondo.png') !important;
    background-repeat: no-repeat !important;
    background-position: right 20px bottom 10px !important;
    background-attachment: fixed !important;
    /*background-size: 150px 150px;*/
}

.conLogo {
    background-image: url('../img/logo/logoEspera.png');
    background-repeat: no-repeat;
    background-position: left 60px top 10px;
    background-attachment: fixed;
    background-size: 50px 40px;
    z-index: -1;
    min-height: 60px;
}

.menuContent {
}



/* Comportamiento para pantallas grandes (monitores) */
@media (min-width: 768px) {
    .toolbarPermanente {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: #343a40;
        color: #f0f0f0;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

/* Comportamiento para pantallas móviles (dispositivos pequeños) */
/*@media (max-width: 767px) {
    .toolbarPermanente {
        position: absolute;*/ /* Fijo en la parte superior para móviles */
        /*top: 0;
        width: 100%;
        z-index: 1000;
        background-color: #343a40;
        color: #f0f0f0;
        padding: 10px;
    }
}*/



.logo {
    width: 80px !important;
    height: 65px !important;
    cursor: pointer !important;
    /*padding-left: 50px;*/
}

.logoTop {
    text-align: center;
    width: 213px !important;
    height: 205px !important;
    padding-top: 10px !important;
    padding-left: 30px !important;
    cursor: pointer !important;
    /*position: fixed;*/
}

.logoDerecha {
    width: 42px;
    height: 42px;
}

.logoEspera {
    width: 200px !important;
    height: 57px !important;
}

.menuBoton {
    padding-top: -1px !important;
    cursor: pointer;
    background-color: transparent;
    font-size: 25px;
    /*width:100px;
    height:80px;*/
}

.table {
    margin-top: 20px;
    /*border-radius: 10px;*/
    overflow: hidden;
}

    .table th {
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 0.05rem;
    }

    .table {
        margin-top: 20px;
        overflow: hidden;
    }

    .table th {
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 0.05rem;
    }

    .table td {
        vertical-align: middle;
    }

    .table thead {
        background-color: #343a40;
        color: white;
    }

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2;
}



.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-title {
    font-weight: bold;
    color: #333;
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}




/* Personalización de las pestañas */
.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0; /* Bordes redondeados */
    background-color: #f8f9fa; /* Fondo claro */
    color: #333; /* Texto oscuro */
    padding: 10px 20px; /* Espaciado */
}

    .nav-tabs .nav-link:hover {
        background-color: #e9ecef; /* Color al hacer hover */
    }

    .nav-tabs .nav-link.active {
        background-color: #666; /* Fondo del tab activo */
        color: white; /* Texto del tab activo */
        border-color: transparent transparent transparent; /* Borde */
    }

/* Personalización del contenido */
.tab-content {
    border: 1px solid #ddd; /* Borde alrededor del contenido */
    border-top: none; /* Elimina el borde superior para que quede conectado a las pestañas */
    padding: 20px;
    background-color: white; /* Fondo blanco para el contenido */
    border-radius: 0 0 10px 10px; /* Bordes redondeados */
}


.tab-pane {
    transition: opacity 0.3s ease-in-out;
}





/*.toast {
    opacity: 0.95;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
*/
.toast-container {
    background-color: transparent;
    opacity: 0.90;
    z-index: 1050; /* Asegúrate de que esté en el frente */
}

.toastBody {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.toastBodyICO {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}


.toast-container .progress-bar {
    transition: width 0.05s linear; /* Suaviza la animación de la barra de progreso */
}

.toast-container .progress {
    background-color: red; /* Fondo más claro para la barra */
}





.form-label {
    font-weight: bold;
}

.form-check-label {
    margin-left: 0.25rem;
}



/*dialogo de pregunta*/

/* Overlay para atenuar el fondo */
.xmodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Asegura que esté por encima de otros elementos */
}

/* Estilos del modal */
.xmodal {
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    background-color: var(--modal-bg);
    color: var(--modal-text);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.xmodal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*background-color: #666;*/
}

.xmodal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #c0c0c0;
}

.xclose-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #FFF;
}

.xmodal-body {
    margin-top: 10px;
}

.xmodal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.xbtn {
    margin-left: 10px;
}


/*Loading*/
/* Estilos para el Loading Overlay */
.xloading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 9, 0.6); /* Fondo oscuro con opacidad */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Asegura que esté por encima de otros elementos */
}

/* Contenedor del contenido del Loading */
.xloading-content {
    text-align: center;
    color: white;
}

    /* Personalización del mensaje */
    .xloading-content p {
        font-size: 1.2rem;
    }

.spinner-lg {
    width: 4rem;
    height: 4rem;
    border-width: 0.5em;
}









/* Lista principal del menú */
.menu-list,
.submenu-list {
    list-style-type: none; /* Quita los círculos o viñetas predeterminadas */
    padding-left: 0;
    margin: 0;
}

/* Elemento del menú */
.menu-item {
    /* Indentación basada en el nivel */
    padding-left: calc(1rem * var(--level));
}

/* Estilo del encabezado del elemento del menú */
.menu-item-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none; /* Quita el subrayado de los enlaces */
}

/* Estilo específico para encabezados no expandibles */
.no-expandable {
    cursor: default; /* Cambia el cursor cuando no es expandible */
}

    /* Efecto hover en el elemento del menú */
    .menu-item-header:hover,
    .no-expandable:hover a {
        background-color: #666; /* Fondo más oscuro en hover */
        color: #f0f0f0; /* Cambia el color de la fuente en hover */
    }

        /* Cambiar color de iconos y texto en hover */
        .menu-item-header:hover .fa,
        .menu-item-header:hover .menu-link,
        .menu-item-header:hover .menu-item-icon,
        .no-expandable:hover .menu-link,
        .no-expandable:hover .menu-item-icon {
            color: #333; /* Forzar color blanco en hover */
            text-decoration: none; /* Asegura que no haya subrayado en hover */
        }

/* Enlaces del menú */
.menu-link {
    color: inherit; /* Hereda el color del elemento padre */
    text-decoration: none; /* Quita el subrayado */
}

    /* Enlaces del menú cuando el mouse está sobre ellos */
    .menu-link:hover,
    .menu-link:focus {
        color: inherit; /* Mantener el color original, evitar azul */
        text-decoration: none; /* Evitar subrayado */
    }

/* Iconos de expansión y contracción */
.expand-icon,
.no-expand-icon {
    width: .8rem;
    display: inline-block;
    text-align: center;
    margin-right: 0.1rem;
    color: #999;
    font-size: .7rem;
}

/* Estilos para los iconos de los elementos del menú */
.menu-item-icon {
    margin-right: 0.3rem; /* Añade separación entre el icono y el texto */
    font-size: 1rem;
    color: #333;
}

    /* Iconos del menú cuando el mouse está sobre ellos */
    .menu-item-icon:hover,
    .menu-item-icon:focus {
        color: inherit; /* Mantener el color original del icono, evitar azul */
        text-decoration: none; /* Asegurar que no haya subrayado en los iconos */
    }

/* Submenús */
.submenu-list {
    margin-left: 1rem;
    border-left: 1px solid #444;
}

/* Niveles de indentación */
.level-0 {
    --level: 0;
}

.level-1 {
    --level: 1;
}

.level-2 {
    --level: 2;
}

/* Añade más niveles si es necesario */



/* Estilo general del menú acordeón */
.accordion-menu {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fuente homogénea */
    font-size: 14px; /* Tamaño de fuente homogéneo */
    font-weight: 400; /* Peso de fuente para consistencia */
    color: var(--sidebar-text); /* Color del texto */
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

    /* Estilo de los items del acordeón */
    .accordion-menu .accordion-item {
        background-color: var(--sidebar-bg); /* Fondo del acordeón */
        border: none;
        margin-bottom: 5px;
        border-radius: 5px; /* Bordes redondeados */
        font-family: inherit; /* Fuente homogénea */
        font-size: inherit; /* Tamaño de fuente homogéneo */
        font-weight: inherit; /* Peso de fuente homogéneo */
    }

    /* Encabezado del acordeón (no expandible) */
    .accordion-menu .accordion-header.no-expandable {
        margin: 0;
        height: 40px; /* Altura constante */
        display: flex;
        align-items: center;
        font-family: inherit; /* Fuente homogénea */
        font-size: inherit; /* Tamaño de fuente homogéneo */
        font-weight: inherit; /* Peso de fuente homogéneo */
    }

    /* Encabezado del acordeón (expandible) */
    .accordion-menu .accordion-header {
        margin: 0;
        font-family: inherit; /* Fuente homogénea */
        font-size: inherit; /* Tamaño de fuente homogéneo */
        font-weight: inherit; /* Peso de fuente homogéneo */
    }

    /* Botón del acordeón para expandir/contraer */
    .accordion-menu .accordion-button {
        background-color: var(--sidebar-bg); /* Fondo */
        color: var(--sidebar-text); /* Color del texto */
        border: none;
        padding-left: calc(1rem * var(--level)); /* Ajuste de indentación basado en el nivel */
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        height: 40px; /* Alto constante para todos los elementos */
        box-shadow: none;
        text-decoration: none; /* Sin subrayado */
        display: flex;
        align-items: center;
        cursor: pointer; /* Indicar que es interactivo */
        font-family: inherit; /* Fuente homogénea */
        font-size: inherit; /* Tamaño de fuente homogéneo */
        font-weight: inherit; /* Peso de fuente homogéneo */
    }

        /* Indicador de expansión/contracción del acordeón */
        .accordion-menu .accordion-button::after {
            font-size: 1rem; /* Tamaño igual al texto */
            color: inherit; /* Color igual al texto */
        }

        /* Botón colapsado */
        .accordion-menu .accordion-button.collapsed {
            background-color: var(--sidebar-bg); /* Fondo */
            color: var(--sidebar-text);
        }

        /* Botón expandido */
        .accordion-menu .accordion-button:not(.collapsed) {
            background-color: var(--table-hover); /* Fondo más claro */
            color: var(--sidebar-text);
        }

        /* Efecto hover del botón del acordeón */
        .accordion-menu .accordion-button:hover {
            background-color: var(--sidebar-hover) !important; /* Fondo más oscuro */
            color: var(--sidebar-text) !important;
        }

    /* Enlaces del menú (para los nodos sin hijos) */
    .accordion-menu .menu-link {
        font-family: inherit; /* Fuente homogénea */
        font-size: inherit; /* Tamaño de fuente homogéneo */
        font-weight: inherit; /* Peso de fuente homogéneo */
        color: var(--sidebar-text); /* Color del texto */
        text-decoration: none; /* Sin subrayado */
        display: flex;
        align-items: center;
        height: 40px; /* Alto constante para todos los enlaces */
        padding-left: calc(1rem * var(--level)); /* Ajuste de indentación basado en el nivel */
    }

        /* Efecto hover del enlace */
        .accordion-menu .menu-link:hover,
        .accordion-menu .menu-link:focus {
            color: var(--sidebar-text) !important; /* Color claro en hover */
            text-decoration: none; /* Sin subrayado */
            background-color: var(--sidebar-hover) !important; /* Fondo más oscuro en hover */
        }

    /* Iconos de los elementos del menú */
    .accordion-menu .menu-item-icon {
        margin-right: 0.75rem; /* Espaciado uniforme entre el icono y el texto */
        font-size: 1rem; /* Tamaño consistente */
        color: var(--sidebar-text); /* Mismo color para todos los iconos */
    }

        /* Iconos al hacer hover */
        .accordion-menu .menu-item-icon:hover {
            color: var(--sidebar-text); /* Color más claro al hacer hover */
        }

    /* Cuerpo del acordeón (contenedor de elementos hijos) */
    .accordion-menu .accordion-body {
        background-color: var(--bg-secondary); /* Fondo más oscuro del cuerpo */
        padding-left: 1rem; /* Espaciado izquierdo para los elementos hijos */
        color: var(--sidebar-text); /* Color del texto */
        font-size: inherit; /* Mantener el tamaño de la fuente */
        font-family: inherit; /* Mantener la fuente */
        font-weight: inherit; /* Peso de fuente homogéneo */
    }

    /* Submenús (niveles hijos) */
    .accordion-menu .submenu-list {
        margin-left: 1rem; /* Espaciado a la izquierda para submenús */
        border-left: 1px solid #444; /* Línea vertical para diferenciar niveles */
    }

    /* Ajuste del nivel de indentación */
    .accordion-menu .level-0 {
        --level: 0;
    }

    .accordion-menu .level-1 {
        --level: 1;
    }

    .accordion-menu .level-2 {
        --level: 2;
    }







/*______________________________________________________________________________________________________________________________________________________________________________________________________________*/




.popup-panel-content {
    width: 100%;
    min-height: 50vh;
    padding: 10px;
    background-color: transparent;
}

.popup-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    width: 80vw;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}




/*______________________________________________________________________________________________________________________________________________________________________________________________________________*/




/* Upload file  *****************************************************************************************************************************************************/
.file-input-zone1 {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #313131;
    color: white;
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 70px;
    cursor: pointer;
    font-size: 14px;
    /*display:inherit;*/
}

    .file-input-zone1:hover {
        border-radius: 10px;
        width: 100%;
        font-size: 16px;
        background-color: #203043;
    }

    .file-input-zone1 input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

/* Upload file  *****************************************************************************************************************************************************/



.imgDetalle {
    height: 30em;
    line-height: 1em;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    border: 1px solid;
}



.splash-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    height: 100vh;
    font-family: "Segoe UI",Roboto,"Helvetica Neue","-apple-system",BlinkMacSystemFont,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-size: .88rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    background-color: #6B6B6B;
}

    .splash-screen .spinner-border {
        border: .5em solid;
        border-color: #727D83 #bdbdbd #fff;
        width: 120px;
        height: 120px;
    }

.splash-screen-caption {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.splash-screen-text {
    color: #a1a1a1;
    margin-top: .5rem;
}

/* Form Controls - Original styles preserved for light mode */
.form-label {
    font-weight: bold;
}

.form-check-label {
    margin-left: 0.25rem;
}


