/* ============================================
   PSICOLOGÍA - ESTILOS
   Sistema de Gestión de Psicología Escolar
   Primer Ciclo (1ro-3ro) y Segundo Ciclo (4to-6to)
   ============================================ */

/* Contenedor principal de psicología */
#psicologia-container {
    width: 100%;
    min-height: 400px;
}

/* Sub-tabs de psicología */
.psicologia-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.psico-subtab-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.psico-subtab-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.psico-subtab-btn.active {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    border-color: #7B1FA2;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

/* Contenido de cada sub-tab */
.psico-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.psico-content.active {
    display: block;
}

/* Header de psicología */
.psico-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.psico-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.psico-header p {
    margin: 0;
    color: #6c757d;
    font-size: 15px;
}

/* Dashboard de estadísticas */
.psico-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.psico-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.psico-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.psico-stat-card h4 {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psico-stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.psico-stat-card .stat-label {
    font-size: 13px;
    color: #6c757d;
    margin: 5px 0 0 0;
}

/* Colores específicos para diferentes tipos de estadísticas */
.psico-stat-card.danger .stat-number {
    color: #dc3545;
}

.psico-stat-card.warning .stat-number {
    color: #ffc107;
}

.psico-stat-card.success .stat-number {
    color: #28a745;
}

.psico-stat-card.info .stat-number {
    color: #9C27B0;
}

/* Sección de acciones */
.psico-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.psico-action-btn {
    padding: 15px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.psico-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.psico-action-btn.primary {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.psico-action-btn.success {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.psico-action-btn.warning {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.psico-action-btn.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

/* Tabla de casos psicológicos */
.psico-table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.psico-table {
    width: 100%;
    border-collapse: collapse;
}

.psico-table thead {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
}

.psico-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psico-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
}

.psico-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badge de prioridad */
.psico-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.psico-badge.alta {
    background: #f8d7da;
    color: #721c24;
}

.psico-badge.media {
    background: #fff3cd;
    color: #856404;
}

.psico-badge.baja {
    background: #d4edda;
    color: #155724;
}

.psico-badge.seguimiento {
    background: #d1ecf1;
    color: #0c5460;
}

/* Mensaje de información */
.psico-info-message {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left: 4px solid #9C27B0;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #6A1B9A;
    font-size: 14px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .psico-subtab-btn {
        min-width: 150px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .psico-dashboard {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .psico-stat-card .stat-number {
        font-size: 24px;
    }

    .psico-actions {
        flex-direction: column;
    }

    .psico-action-btn {
        width: 100%;
        justify-content: center;
    }

    .psico-table-container {
        padding: 15px;
    }

    .psico-table th,
    .psico-table td {
        padding: 10px;
        font-size: 13px;
    }
}
