/* Variables globales */
:root {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shine: rgba(255, 255, 255, 0.25);
    --card-bg: rgba(255, 255, 255, 0.85);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page Layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
}

main {
    flex: 1;
    background-color: var(--background-color);
    padding-top: 76px;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px var(--glass-shine);
}

.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 1.35rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
}

.navbar-brand:hover {
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.15);
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.25rem;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-hover) !important;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.navbar-nav .btn-primary {
    background: var(--primary-color);
    border: 1px solid transparent;
    color: white !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.navbar-nav .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.navbar-toggler {
    border: 1px solid var(--primary-color);
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(30, 58, 138, 0.08);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 58, 138, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 80px; /* Space for fixed navbar */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/Recursos/FONDO.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    filter: blur(3px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.65) 0%, rgba(42, 82, 152, 0.65) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-hero {
    background: white;
    color: #1e3c72;
    border: 2px solid white;
}

.btn-primary-hero:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-hero {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-hero:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Values Section */
.values-section {
    background: #f8f9fa;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

/* Stats */
.stats-container {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    color: white !important;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    color: var(--text-color);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3c72;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a5298;
}

/* Botones */
.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Tarjetas */
.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card .card-header {
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    padding: 1.5rem;
    color: white;
}

/* Formularios */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-floating > label {
    padding: 0.75rem 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

/* Enlaces */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

/* Utilidades */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Zona Privada */
.zona-privada-card {
    max-width: 400px;
    margin: 2rem auto;
}

.zona-privada-card .card-header {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

.zona-privada-card .card-body {
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .btn-primary {
        width: 100%;
        margin: 0.5rem 0 !important;
    }
}

/* Login Form Styles */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px var(--glass-shine);
    max-width: 400px;
    width: 90%;
    margin: 2rem auto;
}

.login-header {
    background: var(--primary-color);
    margin: -2rem -2rem 2rem -2rem;
    padding: 2rem;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
    color: white;
}

.login-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.login-form .form-control {
    background: white;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-form .form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

.login-form .form-control::placeholder {
    color: #94a3b8;
}

/* Evitar texto duplicado en inputs con Bootstrap form-floating */
.login-form .form-floating > .form-control::placeholder {
    color: transparent !important;
}
.login-form .form-floating > .form-control:-ms-input-placeholder {
    color: transparent !important;
}
.login-form .form-floating > .form-control::-ms-input-placeholder {
    color: transparent !important;
}

.login-form .form-check-label {
    color: #1e293b !important;
    font-weight: 500;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.login-form .form-check-input {
    border-color: #cbd5e1;
    background-color: white;
}

.login-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-form .btn-primary {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-form .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.login-links {
    margin-top: 1.5rem;
    text-align: center;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.login-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.login-links p {
    margin-bottom: 0.75rem;
    color: #475569;
}

.text-danger {
    color: #dc2626 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Cards y Secciones */
.section {
    background-color: transparent;
    color: var(--text-color);
    padding: 5rem 0;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px var(--glass-shine);
}

.card-body {
    background: transparent;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.value-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px var(--glass-shine);
}

.value-card:hover {
    transform: translateY(-5px);
}

.stats-container {
    background: var(--glass-bg);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid var(--glass-border);
}

/* Form Controls */
.form-control {
    background: white;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

.form-control:focus {
    background: white;
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-control::placeholder {
    color: var(--secondary-color);
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-muted {
    color: #6b7280 !important;
}

/* Validation */
.text-danger {
    color: #dc2626 !important;
}

.form-check-input {
    background-color: white;
    border-color: var(--secondary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Estilos para el horario escolar */
.schedule-table {
    border: 2px solid var(--glass-border);
}

.schedule-cell {
    height: 80px;
    vertical-align: middle;
    position: relative;
    padding: 8px;
}

.subject-card {
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.subject-card:hover .schedule-actions {
    opacity: 1;
}

.schedule-actions {
    position: absolute;
    top: 2px;
    right: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-actions .btn {
    padding: 2px 6px;
    margin-left: 2px;
    font-size: 0.7rem;
}

/* Colores por materia */
.subject-math {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subject-spanish {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.subject-science {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.subject-history {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.subject-english {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.subject-pe {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.subject-art {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.subject-default {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

/* Avatar circle para usuarios */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Stats cards mejoradas */
.stats-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .schedule-table {
        font-size: 0.8rem;
    }
    
    .subject-card {
        min-height: 50px;
        font-size: 0.75rem;
        padding: 4px;
    }
    
    .schedule-cell {
        height: 60px;
        padding: 4px;
    }
    
    .avatar-circle {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
}

/* Animaciones mejoradas */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Estilos para badges mejorados */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    font-weight: 500;
}

/* Mejoras para formularios */
.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Mejoras para botones */
.btn-group .btn {
    transition: all 0.2s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
}

/* Estilos para modales mejorados */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, var(--glass-bg), rgba(255, 255, 255, 0.1));
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-radius: 0 0 12px 12px;
}

/* Estilos específicos para calificaciones */
.grade-score {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.grade-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.grade-good {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

.grade-average {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.grade-failing {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

.grade-letter {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    margin-top: 2px;
}

/* Mejoras adicionales para los dashboards */
.dashboard-title {
    color: var(--primary-color);
    font-weight: 600;
}

.dashboard-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mejoras para las cards de estadísticas */
.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Efectos hover mejorados */
.table-hover tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Mejoras para los filtros */
.card-body .row .col-md-3,
.card-body .row .col-md-2,
.card-body .row .col-md-4 {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .card-body .row [class*="col-"] {
        margin-bottom: 0.5rem;
    }
}

/* Estilos para botones de acción */
.btn-group .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Mejoras para el modal */
.modal-lg {
    max-width: 900px;
}

/* Responsive para tablas */
@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.85rem;
    }
    
    .grade-score {
        font-size: 1rem;
    }
    
    .stats-card h4 {
        font-size: 1.5rem;
    }
}

/* Estilos específicos para asistencia */
.stats-item {
    padding: 0.5rem;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.stats-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.table-danger {
    --bs-table-bg: rgba(220, 53, 69, 0.1);
}

.table-warning {
    --bs-table-bg: rgba(255, 193, 7, 0.1);
}

/* Radio buttons para asistencia */
.form-check-input[type="radio"] {
    width: 1.2em;
    height: 1.2em;
}

/* Modal extra grande */
.modal-xl {
    max-width: 1200px;
}

/* Responsive para estadísticas */
@media (max-width: 576px) {
    .stats-number {
        font-size: 1.25rem;
    }
    
    .stats-label {
        font-size: 0.7rem;
    }
}