/* ===== THEME MODERNO - COLEGIO PROFESIONALES ===== */
:root {
    --primary-color: #006cb8;    /* Azul primario */
    --secondary-color: #d5e9f9;  /* Azul claro secundario */
    --accent-color: #004d84;     /* Azul oscuro para acentos */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;      /* Blanco grisáceo (mantener) */
    --dark-color: #2d3748;       /* Gris oscuro (mantener) */
    --gradient-primary: linear-gradient(135deg, #006cb8 0%, #004d84 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== ESTILOS GENERALES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* ===== NAVBAR MODERNO ===== */
.navbar-modern {
    background: linear-gradient(135deg, #006cb8 0%, #004d84 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 108, 184, 0.2);
    padding: 0.8rem 0;
}

.navbar-modern .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-modern .navbar-brand img {
    height: 40px;
    border-radius: 8px;
}

.navbar-modern .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    margin: 0 2px;
}

.navbar-modern .nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.navbar-modern .navbar-text {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

/* ===== CARDS MODERNAS ===== */
.card-modern {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 108, 184, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 108, 184, 0.15);
}

.card-header-modern {
    background: linear-gradient(135deg, #006cb8, #004d84) !important;
    color: white !important;
    border: none !important;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
}

.card-header-modern h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== BOTONES MODERNOS ===== */
.btn-modern {
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #006cb8, #004d84) !important;
    border: none !important;
    color: white !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-success-modern {
    background: var(--gradient-success);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-danger-modern {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-modern:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== TABLAS MODERNAS ===== */
.table-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern thead {
    background: var(--gradient-primary);
    color: white;
}

.table-modern thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    transition: var(--transition);
}

.table-modern tbody tr:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: scale(1.01);
}

.table-modern tbody td {
    padding: 1rem;
    border-color: #f8f9fa;
    vertical-align: middle;
}

/* ===== BADGES MODERNOS ===== */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success-modern {
    background: var(--success-color);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.badge-danger-modern {
    background: var(--danger-color);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.badge-warning-modern {
    background: var(--warning-color);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.badge-info-modern {
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* ===== SIDEBAR MODERNO ===== */
.sidebar-modern {
    background: linear-gradient(135deg, #d5e9f9 0%, #b3d9f7 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 0;
    overflow: hidden;
}

.sidebar-modern .list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-modern .list-group-item:hover {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: var(--secondary-color);
    padding-left: 2rem;
}

.sidebar-modern .list-group-item.active {
    background: var(--gradient-primary);
    border-left-color: var(--accent-color);
    color: white;
}

/* ===== STATS CARDS ===== */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.stats-card .stats-label {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ===== FORMULARIOS MODERNOS ===== */
.form-modern .form-control,
.form-modern .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
}

.form-modern .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== MODALES MODERNOS ===== */
.modal-modern .modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.modal-modern .modal-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-modern .modal-footer {
    border: none;
    background: #f8f9fa;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* ===== PAGINACIÓN MODERNA ===== */
.pagination-modern .page-link {
    border: none;
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    margin: 0 2px;
    border-radius: 8px;
    transition: var(--transition);
}

.pagination-modern .page-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* ===== ALERTAS MODERNAS ===== */
.alert-modern {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
}

.alert-success-modern {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-danger-modern {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: var(--danger-color);
    color: #721c24;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-modern .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .sidebar-modern {
        margin-bottom: 2rem;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== LOGO Y MARCA ===== */
.logo-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: 2rem;
}

.logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.feature-icon-admin {
    background: linear-gradient(135deg, #006cb8, #004d84);
    color: white;
}