/* ========================================
   ALICERCE SEC - ESTILO GERAL
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
}


/* ========================================
   CABEÇALHO
======================================== */

.topbar {
    height: 70px;
    background: #0f172a;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo span {
    color: #3b82f6;
}

.usuario {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.usuario strong {
    color: #ffffff;
}


/* ========================================
   CONTAINER
======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 25px;
}


/* ========================================
   TÍTULOS
======================================== */

.page-title {
    margin-bottom: 8px;
    font-size: 30px;
    color: #0f172a;
}

.page-subtitle {
    color: #64748b;
    margin-bottom: 30px;
}


/* ========================================
   CARDS
======================================== */

.card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.07);
    border: 1px solid #e2e8f0;
}

.card h2 {
    margin-bottom: 10px;
    color: #0f172a;
}

.card p {
    color: #64748b;
    line-height: 1.6;
}


/* ========================================
   CARDS DO DASHBOARD
======================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
    transition: 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.dashboard-card .icone {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.dashboard-card h3 {
    margin-bottom: 8px;
    color: #0f172a;
}

.dashboard-card p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 18px;
}


/* ========================================
   BOTÕES
======================================== */

.btn {
    display: inline-block;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}


/* ========================================
   MENU / LINKS
======================================== */

.menu {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.menu a {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-weight: bold;
    transition: 0.2s;
}

.menu a:hover {
    background: #dbeafe;
    color: #2563eb;
}


/* ========================================
   OCORRÊNCIAS
======================================== */

.ocorrencia {
    background: white;
    padding: 22px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
    transition: 0.2s;
}

.ocorrencia:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.codigo {
    color: #2563eb;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.titulo {
    font-size: 19px;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 12px;
}

.informacao {
    color: #64748b;
    font-size: 14px;
    margin: 6px 0;
}


/* ========================================
   STATUS
======================================== */

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
}


/* ========================================
   DETALHES
======================================== */

.campo {
    margin-bottom: 22px;
}

.campo strong {
    display: block;
    color: #334155;
    margin-bottom: 7px;
}

.campo p {
    color: #64748b;
    line-height: 1.6;
}


/* ========================================
   VOLTAR
======================================== */

.voltar {
    display: inline-block;
    margin-bottom: 20px;
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.voltar:hover {
    text-decoration: underline;
}


/* ========================================
   FORMULÁRIOS
======================================== */

.form-card {
    max-width: 750px;
    background: white;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.07);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* ========================================
   ESTADO VAZIO
======================================== */

.vazio {
    background: white;
    padding: 50px 30px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.vazio h2 {
    color: #334155;
    margin-bottom: 10px;
}


/* ========================================
   LOGOUT
======================================== */

.logout {
    color: #f87171;
    text-decoration: none;
    font-weight: bold;
}

.logout:hover {
    color: #ef4444;
}


/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 800px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 20px;
    }

    .usuario {
        font-size: 12px;
    }

    .container {
        padding: 25px 15px;
    }
}


@media (max-width: 500px) {

    .topbar {
        height: auto;
        padding: 18px;
        flex-direction: column;
        gap: 12px;
    }

    .page-title {
        font-size: 25px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   LOGO DA TELA INICIAL
======================================== */

.inicio-nav .logo-canto {
    position: absolute !important;
    top: 200px !important;
    right: -80px !important;

    width: 220px !important;
    height: 120px !important;

    max-width: 220px !important;
    max-height: 120px !important;

    object-fit: contain !important;
    z-index: 10 !important;
}


/* ========================================
   AJUSTES DO DASHBOARD DA DIREÇÃO
======================================== */

/* Remove somente os ícones dos cartões */

.card-icon,
.icone,
.stat-icon,
.action-icon {
    display: none !important;
}


/* Nome da escola */

.sidebar-logo,
.logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
}


/* Nome do usuário */

.sidebar-user-name,
.usuario-nome {
    font-size: 17px !important;
    font-weight: 700 !important;
}


/* Itens do menu lateral */

.sidebar a,
.sidebar-menu a,
.menu-item,
.menu-item a {
    font-size: 16px !important;
    font-weight: 600 !important;
}


/* Números dos cartões superiores */

.stat-card .numero,
.stat-card .valor {
    font-size: 30px !important;
    font-weight: 700 !important;
}


/* Títulos dos cartões superiores */

.stat-card h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
}


/* Texto menor dos cartões superiores */

.stat-card p,
.stat-card span {
    font-size: 14px !important;
}


/* Título "Ações rápidas" */

.acoes-titulo,
.quick-title {
    font-size: 20px !important;
}


/* Títulos dos cartões de ações */

.action-card h3,
.dashboard-card h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
}


/* Descrição dos cartões */

.action-card p,
.dashboard-card p {
    font-size: 14px !important;
}


/* Ocorrências recentes */

.recentes h2,
.recentes-titulo {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.recentes {
    font-size: 15px !important;
}


/* Título principal */

.conteudo h1,
.dashboard h1,
main h1 {
    font-size: 28px !important;
}


/* Subtítulo principal */

.conteudo > p,
.dashboard > p,
main > p {
    font-size: 15px !important;
}