/* =========================================
   COLMENA VISOR - DISEÑO MODERNO MINIMALISTA
   ========================================= */

/* --- RESET & BASES --- */
.colvse {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background-color: #f3f4f6; /* Fondo gris muy suave */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.colvse * { box-sizing: border-box; }

/* --- HEADER --- */
.colvse-header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.colvse-header .inner {
    max-width: 900px; /* Ancho máximo para centrar */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-left strong {
    font-size: 1.2rem;
    color: #005a87; /* Azul Corporativo */
    letter-spacing: -0.5px;
}

/* Botón Salir minimalista */
#colvse-logout {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
#colvse-logout:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff;
}

/* --- CONTENEDOR PRINCIPAL --- */
#colvse-main {
    flex: 1;
    width: 100%;
    max-width: 900px; /* Contenedor centrado */
    margin: 30px auto;
    padding: 0 20px;
}

/* --- TARJETAS (CARDS) --- */
.card {
    background: #ffffff;
    border-radius: 16px; /* Bordes redondeados modernos */
    padding: 25px;
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Sombra suave */
    transition: transform 0.2s;
}

.card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #111827;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* --- LOGIN --- */
.login.centered {
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
}
.login h2 { color: #005a87; margin-bottom: 30px; }
.login input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 1rem;
    transition: border 0.2s;
}
.login input:focus { border-color: #005a87; outline: none; background: #fff; }

/* --- BOTONES --- */
.btn {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}
.btn.primary {
    background-color: #005a87;
    color: #fff;
    width: 100%; /* Botón login full width */
    box-shadow: 0 4px 6px rgba(0, 90, 135, 0.2);
}
.btn.primary:hover { opacity: 0.9; }

/* --- TOOLBAR (Matrícula y Botones) --- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.matricula-picker { flex-grow: 1; }
.matricula-picker label { display: block; font-size: 0.75rem; color: #6b7280; font-weight: bold; margin-bottom: 4px; text-transform: uppercase; }
.matricula-picker select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    color: #1f2937;
}

.actions .btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.85rem;
    padding: 8px 15px;
    width: auto;
}
.actions .btn:hover { background: #f3f4f6; }

/* --- TABLAS DE DATOS --- */
.colvse-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.colvse-table th { text-align: left; color: #6b7280; font-weight: 600; padding: 10px; border-bottom: 1px solid #e5e7eb; font-size: 0.8rem; text-transform: uppercase; }
.colvse-table td { padding: 12px 10px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.colvse-table tr:last-child td { border-bottom: none; }

/* Badges de estado */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.st-pagada { background: #dcfce7; color: #166534; }
.st-vencida { background: #fee2e2; color: #991b1b; }

/* --- AULA VIRTUAL (Destacada) --- */
#colvse-academico-area h4 { margin-top: 0; color: #005a87; font-size: 1rem; }
.colvse-res-item { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 12px; 
    margin-bottom: 10px;
    transition: transform 0.1s;
}
.colvse-res-item:hover { transform: translateX(2px); border-color: #cbd5e1; }

/* --- FOOTER --- */
.colvse-footer {
    text-align: center;
    padding: 30px 20px;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: auto;
}
.colvse-footer strong { color: #6b7280; }

/* Ocultar elementos utilitarios */
.hidden { display: none !important; }