/* ============================================================
   Estilos Personalizados - Colegios Atenea Digital
   Versión 1.0 - MVV (vistas/css)
   ============================================================ */

/* --- GENERAL --- */
body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAVBAR --- */
.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* --- TARJETAS / CARDS --- */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

/* --- TABLAS --- */
.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* --- BADGES --- */
.badge {
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
}

/* --- BOTONES --- */
.btn-sm {
    border-radius: 6px;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}

/* --- MODALES --- */
.modal-header {
    border-radius: 10px 10px 0 0;
}

.modal-content {
    border: none;
    border-radius: 10px;
}

/* --- FOOTER --- */
.footer {
    margin-top: auto;
    background-color: #1a1a2e;
    color: #aaa;
    font-size: 0.85rem;
    padding: 1rem 0;
}

/* --- LOGIN --- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
}

.login-card .card-body {
    padding: 2.5rem;
}

.login-card .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.login-card .btn {
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
}

/* --- DATATABLES PERSONALIZACIÓN --- */
/* La tabla debe ocupar el 100% del ancho del contenedor (.card-body) */
.dataTables_wrapper,
.dataTables_scrollHeadInner,
.dataTables_scrollBody {
    width: 100% !important;
}

.dataTables_wrapper table.dataTable {
    width: 100% !important;
    margin: 0 auto;
}

.dataTables_wrapper table.dataTable th {
    white-space: nowrap;
    padding: 0.6rem 0.75rem;
}

.dataTables_wrapper table.dataTable td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.25rem 0.5rem;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.25rem 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
}

/* --- SELECT2 --- */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 6px !important;
    min-height: 38px;
}

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

.card, .alert {
    animation: fadeIn 0.3s ease-out;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    .table {
        font-size: 0.8rem;
    }
    .login-card .card-body {
        padding: 1.5rem;
    }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}