:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --secondary-color: #ef4444;
    --accent-color: #f87171;
    --dark-color: #1f2937;
    --light-color: #fef2f2;
}

/* Login Styles */
.login-body {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: inline-block;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.logo-icon {
    font-size: 2rem;
    color: white;
}

.login-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1556761175-b413da4baf72?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
}

.hero-content {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-item {
    font-size: 1.1rem;
    opacity: 0.9;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-2px);
}

/* Dashboard Styles */
.dashboard-body {
    background-color: #fef2f2;
    font-family: 'Inter', sans-serif;
}

.sidebar {
    background: white;
    border-right: 1px solid #fecaca;
    min-height: calc(100vh - 76px);
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.list-group-item:hover,
.list-group-item.active {
    color: var(--primary-color);
    background-color: rgba(220, 38, 38, 0.1);
    border-right: 3px solid var(--primary-color);
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v1'/%3e%3c/svg%3e");
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: fadeIn 0.8s ease-out;
}

.stat-card {
    animation: fadeIn 0.6s ease-out;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .login-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .welcome-card .btn-lg {
        margin-top: 1rem;
        width: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Agregar al final del archivo styles.css */

/* Estilos para los tabs mejorados */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #fecaca;
}

.info-card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fef2f2;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #fef2f2;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #495057;
    flex: 0 0 45%;
    font-size: 0.9rem;
}

.info-value {
    flex: 1;
    color: #1f2937;
    font-weight: 400;
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tab-header {
    text-align: center;
    padding: 1rem 0;
}

.tab-header h5 {
    font-weight: 600;
}

.initial-state, .no-data-state, .error-state {
    padding: 3rem 1rem;
}

.initial-state i, .no-data-state i, .error-state i {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        flex: none;
        margin-bottom: 0.25rem;
    }
    
    .info-value {
        text-align: left;
        width: 100%;
    }
    
    .info-card {
        padding: 1rem;
    }
}

/* Mejoras para los tabs */
.nav-tabs .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link .tab-spinner {
    position: relative;
    top: -1px;
}

/* Estados de los tabs */
.nav-tabs .nav-link.active {
    font-weight: 600;
}

/* Badges de estado */
.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.nav-tabs .nav-link {
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.d-none {
    display: none !important;
}