:root {
    --primary-color: #dd497b;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}



.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f5f7fa;
}

.user-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.comprobantes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.comprobantes-table th, 
.comprobantes-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comprobantes-table th {
    background-color: var(--primary-color);
    color: white;
}

.comprobantes-table tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.badge {
    padding: 0.35rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

/* Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 86%;
    }
}
/* Estilos adicionales para los nuevos elementos */

/* Password toggle */
.password-container .input-group {
    margin-top: 0.5rem;
}

.toggle-password {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-left: none;
    cursor: pointer;
}

.toggle-password:hover {
    background-color: #e9ecef;
}

/* Alertas */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    position: relative;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--dark-color);
    color: white;
    margin-top: 2rem;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-footer a {
    color: var(--accent-color);
}

.version {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Login footer */
.login-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Input group */
.input-group {
    display: flex;
}

.input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    display: flex;
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 100%;
}

/* Efecto fade-in */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Retrasos para diferentes secciones (opcional) */
.welcome-banner {
    animation-delay: 0.2s;
}

.stats-cards .card:nth-child(1) {
    animation-delay: 0.3s;
}

.stats-cards .card:nth-child(2) {
    animation-delay: 0.4s;
}

.stats-cards .card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Efecto principal */
.dashboard-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.loaded .dashboard-container {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos para elementos específicos */
.loaded .welcome-banner {
    transition-delay: 0.1s;
}

.loaded .stats-cards .card {
    transition-delay: calc(0.2s + (0.1s * var(--i)));
}

body {
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

body.fade-out {
    opacity: 0;
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Estilos para el menú vertical */
.vertical-nav {
    width: 100px; /* Ancho del menú */
    height: 100vh;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.vertical-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.vertical-nav li {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 1rem 0;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.icon-container {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.nav-icon i {
    font-size: 1.5rem;
}

.nav-text {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

/* Efectos hover y activo */
.nav-icon:hover .icon-container,
.nav-icon.active .icon-container {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-icon:hover::after,
.nav-icon.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
    border-radius: 0 4px 4px 0;
}

/* Efecto de iluminación */
.nav-icon:hover .icon-container i {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* Ajuste para el contenido principal */
.main-content {
    margin-left: 100px; /* Igual al ancho del menú */
    width: calc(100% - 100px);
}

/* Estilos para el CAPTCHA personalizado */
.captcha-container {
    margin: 20px 0;
}

.captcha-display {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    justify-content: space-between;
}

.captcha-display span {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: bold;
    color: #333;
    background: #eee;
    padding: 5px 10px;
    border-radius: 4px;
}

.btn-refresh {
    background: none;
    border: none;
    color: #4361ee;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s;
}

.btn-refresh:hover {
    transform: rotate(180deg);
    color: #3a0ca3;
}

/* Para el mensaje de error */
.error-captcha {
    color: #e63946;
    font-size: 0.8rem;
    margin-top: 5px;
}