/* ==================================================
   ATOBÁ 2.0 — CSS INSTITUCIONAL OFICIAL

   Cores institucionais:
   - Azul Atobá:   #0b4f6c
   - Azul claro:   #1fa4c4
   - Vermelho FAE: #C4161C
   - Amarelo:      #F2C400
   - Cinza escuro: #2F3542
   - Cinza claro:  #F5F5F5
   - Branco:       #FFFFFF
   - Texto:        #111111
================================================== */


/* ==================================================
   VARIÁVEIS
================================================== */

:root {
    --primary: #0b4f6c;
    --secondary: #1fa4c4;
    --background: #f4f6f8;
    --text: #2c2c2c;
    --white: #ffffff;

    --atoba-primary: #0b4f6c;
    --atoba-secondary: #1fa4c4;
    --atoba-yellow: #f2c400;
    --atoba-dark: #2f3542;
    --atoba-light: #f5f5f5;
    --atoba-text: #111111;
}


/* ==================================================
   RESET BÁSICO
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
}

main {
    margin-left: 0 !important;
    padding-left: 0;
}


/* ==================================================
   CONTAINER
================================================== */

.container,
.container-fluid {
    max-width: 100%;
    margin: auto;
    padding: 1rem 15px;
}

    /* Container de Conteúdo Centralizado */
    .content-center-wrapper {
        max-width: 1050px;
        margin-left: auto;
        margin-right: auto;
    }
/* ==================================================
   TOPBAR
================================================== */

.topbar {
    background: var(--primary);
    color: var(--white);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 40px;
}

.btn-login {
    background: var(--secondary);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}


/* ==================================================
   CARDS
================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.card span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}


/* ==================================================
   TABELAS
================================================== */

.table-section h2 {
    margin-bottom: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}


/* ==================================================
   FOOTER PADRÃO
================================================== */

.footer {
    background: var(--primary);
    color: var(--white);
    margin-top: 2rem;
}

.footer p {
    text-align: center;
    padding: 1rem;
}


/* ==================================================
   FOOTER PÚBLICO ATOBÁ
================================================== */

.footer-public {
    background: #363736;
    color: #fff;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 120px;
}

.footer-brand .logo-atoba {height: 110px;width: auto;	
}

.footer-brand .logo-fae { height: 80px;width: auto;border-left: 1px solid #dee2e6; padding-left: 15px;
}

.footer-public h5 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-public p {
    color: #dbe7ed;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.7;
}

.footer-public ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.footer-public li {
    margin-bottom: 10px;
}

.footer-public a {
    color: #dbe7ed;
    text-decoration: none;
    transition: .2s;
}

.footer-public a:hover {
    color: #f2c400;
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    padding: 18px;
    font-size: 14px;
    color: #dbe7ed;
}


/* ==================================================
   ALERTAS INSTITUCIONAIS
================================================== */

.alert-atoba {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 6px solid;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.alert-atoba .alert-icon {
    font-size: 18px;
    margin-right: 10px;
}

.atoba-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.atoba-alert-box {
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
}


/* ==================================================
   TIPOS DE ALERTA
================================================== */

.alert-success {
    background-color: #e9f7ef;
    border-color: #28a745;
    color: #155724;
}

.alert-success .alert-icon::before {
    content: "?";
}

.alert-danger {
    background-color: #fdecea;
    border-color: #dc3545;
    color: #721c24;
}

.alert-danger .alert-icon::before {
    content: "!";
}

.alert-warning {
    background-color: #fff4e5;
    border-color: #ffc107;
    color: #856404;
}

.alert-warning .alert-icon::before {
    content: "!";
}


/* ==================================================
   ADMIN — TILES
================================================== */

.admin-tile {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none;
    color: #0d4f68;
    border: 1px solid #e0e0e0;
    height: 100%;
    transition: all .25s ease;
}

.admin-tile i {
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

.admin-tile .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.admin-tile .title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.admin-tile .desc {
    font-size: 14px;
    color: #666;
}

.admin-tile small {
    font-size: 14px;
    color: #6c757d;
}

.admin-tile:hover {
    background-color: #0d4f68;
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,.18);
}

.admin-tile:hover .desc {
    color: #dbeef4;
}

.admin-tile:hover small {
    color: #d9eef6;
}


/* ==================================================
   ADMIN — DASHBOARD
================================================== */

.admin-dashboard-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7f9;
}

.admin-dashboard {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.admin-card {
    text-decoration: none;
    border: none;
    border-radius: 12px;
    transition: all .3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.admin-card:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.admin-card i {
    color: var(--atoba-primary);
}


/* ==================================================
   ANIMAÇÕES
================================================== */

.fade-scale {
    animation: fadeScaleIn .5s ease forwards;
}

.fade-in {
    animation: fadeIn .5s ease-in;
}

.admin-tile {
    opacity: 0;
    animation: tileFade .5s ease forwards;
}

.admin-tile:nth-child(1) {
    animation-delay: .05s;
}

.admin-tile:nth-child(2) {
    animation-delay: .10s;
}

.admin-tile:nth-child(3) {
    animation-delay: .15s;
}

.admin-tile:nth-child(4) {
    animation-delay: .20s;
}

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tileFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==================================================
   HOME PÚBLICA ATOBÁ
================================================== */

.public-header {
    background: #fefefe;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.public-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-atoba {
    height: 70px;
}

.logo-fae {
    height: 60px;
}

.public-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.public-nav a {
    color: #1b2326;
    text-decoration: none;
    font-weight: 500;
}

.btn-login-public {
    background: #00465f;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
}


/* ==================================================
   HERO ATOBÁ
================================================== */

.hero-atoba {
    min-height: 650px;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(47,53,66,.75),
            rgba(47,53,66,.75)
        ),
       /* url('../img/fae-banner.jpg'); */

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 900px;
    color: #fff;
}

.hero-content h1 {
    font-size: 72px;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.8;
}


/* ==================================================
   SEÇÕES DA HOME
================================================== */

.section-home {
    padding: 70px 0;
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.evento-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.calendar-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}


/* ==================================================
   ESTATÍSTICAS
================================================== */

.stats-section {
    background: #fff;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.stats-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-item {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.stat-item i {
    font-size: 32px;
    color: #093c55;
}

.stat-val {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #093c55;
}

.stat-label {
    font-size: 14px;
    color: #888;
}


/* ==================================================
   MODAL — BORDA AMARELA
================================================== */

.modal-borda-amarela {
    border: 3px solid #f2c400 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(242,196,0,.25) !important;
}

.modal-borda-amarela .swal2-icon.swal2-warning {
    background-color: #f2c400 !important;
    border-color: #f2c400 !important;
}

.modal-borda-amarela .swal2-icon.swal2-warning .swal2-icon-content {
    color: #fff !important;
}

.modal-borda-amarela .swal2-title,
.modal-borda-amarela .swal2-html-container {
    color: #0b4f6c !important;
}


/* ==================================================
   RESPONSIVO — TABLETS
================================================== */

@media (max-width: 992px) {

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

}


/* ==================================================
   RESPONSIVO — MOBILE
================================================== */

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .table thead {
        display: none;
    }

    .table tr {
        display: block;
        margin-bottom: 1rem;
    }

    .table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }

    .table td::before {
        content: attr(data-label);
        font-weight: bold;
    }

    .stats-flex {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: center;
    }

    .public-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .public-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 17px;
    }

}


/* ==================================================
   RESPONSIVO — TELAS PEQUENAS
================================================== */

@media (max-width: 576px) {

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .eventos-grid {
        grid-template-columns: 1fr;
    }

}
