/* ==========================================================
    Componentes de Cards (Glassmorphism e Layouts)
========================================================== */

.glass-card,
.stat-card,
.glass-panel {
    background: var(--glass-bg, rgba(255, 255, 255, 0.7)) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    transition: all 0.3s ease;
}

/* Painéis do Dashboard (Gerenciados por JS) */
.action-panel,
.content-panel {
    display: none;
    animation: fadeInPanel 0.4s ease-out;
}

.action-panel.active,
.content-panel.active {
    display: block !important;
}

/* Se d-none estiver presente (Bootstrap), ele ganha do display: block por causa do !important */
/* No entanto, para segurança, garantimos que active mostre o painel se d-none for removido */

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card:hover,
.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Círculos de Ícones */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.icon-circle-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 1.75rem;
}

/* Card de Estatísticas */
.stat-card {
    padding: 1.5rem;
}

/* Cards de Funcionários/Alunos */
.staff-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.staff-avatar {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Títulos de Seção com Linha */
.section-title {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin-left: 15px;
}

/* Sobrescritas para o Tema Escuro (Dark Mode) */
[data-bs-theme="dark"] .glass-card,
[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .glass-panel {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Card de Mensagens (Antigo) */
.message-card {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.4);
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.message-card:hover {
    background: rgba(255, 255, 255, 0.6);
}

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
}

.form-soft {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.3s ease;
}

.form-soft:focus {
    background: white !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1) !important;
}