/* =========================================================
   STT 2026/2027 — 12ª REGIÃO
   CSS PRINCIPAL
   Mobile First
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #f7f6fb;
    color: #24212d;
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

button:focus {
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   VARIÁVEIS
========================================================= */

:root {

    /* =========================================
       CORES PRINCIPAIS — 12ª RM
    ========================================= */

    --primary: #006400;
    --primary-dark: #004d00;
    --primary-light: #e8f5e9;

    --secondary: #008000;

    --warning: #f59e00;
    --warning-light: #fff3d6;

    --danger: #d60000;
    --danger-light: #ffe5e5;


    /* =========================================
       FUNDOS
    ========================================= */

    --background: #f5f5f5;

    --surface: #ffffff;

    --surface-secondary: #eeeeee;


    /* =========================================
       TEXTOS
    ========================================= */

    --text: #242424;

    --text-secondary: #666666;

    --text-light: #999999;


    /* =========================================
       BORDAS
    ========================================= */

    --border: #dedede;


    /* =========================================
       SOMBRAS
    ========================================= */

    --shadow:
        0 4px 14px rgba(0, 0, 0, 0.07);


    /* =========================================
       DIMENSÕES
    ========================================= */

    --nav-height: 68px;

    --radius-small: 8px;

    --radius-medium: 13px;

    --radius-large: 18px;
}

/* =========================================================
   APP
========================================================= */

.app {
    width: 100%;
    min-height: 100vh;
    max-width: 600px;
    margin: 0 auto;
    background: var(--background);
    position: relative;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {

    height: 68px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    background: rgba(255, 255, 255, 0.95);

    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid rgba(238, 234, 243, 0.7);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.icon-button {

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    color: var(--text);

    border-radius: 50%;

    position: relative;

    transition: 0.2s ease;
}

.icon-button:active {
    background: #f1edf6;
    transform: scale(0.94);
}

.icon-button i {
    font-size: 18px;
}


/* =========================================================
   TÍTULO DO HEADER
========================================================= */

.header-title {

    flex: 1;

    display: flex;
    flex-direction: column;

    margin-left: 12px;

    line-height: 1.15;
}

.header-small {

    font-size: 8px;

    letter-spacing: 1.1px;

    font-weight: 700;

    color: var(--text-light);
}

.header-title strong {

    font-size: 15px;

    color: var(--text);

    margin-top: 3px;
}

.header-region {

    font-size: 10px;

    color: var(--primary);

    font-weight: 600;

    margin-top: 2px;
}


/* =========================================================
   NOTIFICAÇÃO
========================================================= */

.notification-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--danger);

    position: absolute;

    top: 7px;
    right: 7px;

    border: 2px solid white;
}


/* =========================================================
   CONTEÚDO
========================================================= */

.main-content {

    padding: 22px 18px 30px;

    min-height: calc(100vh - 68px);
}


/* =========================================================
   SAUDAÇÃO
========================================================= */

.welcome-section {
    margin-bottom: 22px;
}

.welcome-small {

    display: block;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;

    color: var(--primary);

    margin-bottom: 7px;
}

.welcome-section h1 {

    font-size: 27px;

    line-height: 1.13;

    letter-spacing: -0.7px;

    color: var(--text);

    margin-bottom: 9px;
}

.welcome-section p {

    font-size: 13px;

    line-height: 1.55;

    color: var(--text-secondary);

    max-width: 340px;
}


/* =========================================================
   CARD PRINCIPAL DO PROCESSO
========================================================= */

.process-card {

    position: relative;

    overflow: hidden;

    background: linear-gradient(135deg,
            #064e5b 0%,
            #087f8c 50%,
            #053f49 100%);
    color: white;

    border-radius: var(--radius-large);

    padding: 22px;

    box-shadow:
       0 14px 30px rgba(6, 78, 91, 0.25);

    margin-bottom: 28px;
}


/* elementos decorativos */

.process-card::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);

    top: -90px;
    right: -70px;
}

.process-card::after {

    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    bottom: -45px;
    left: -30px;
}


/* conteúdo */

.process-card>* {
    position: relative;
    z-index: 2;
}


.process-card-top {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 28px;
}

.card-label {

    display: block;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;

    opacity: 0.72;

    margin-bottom: 5px;
}

.process-card h2 {

    font-size: 21px;

    letter-spacing: -0.4px;

    margin-bottom: 7px;
}

.region {

    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 11px;

    opacity: 0.85;
}


/* =========================================================
   STATUS
========================================================= */

.status {

    height: fit-content;

    display: flex;

    align-items: center;

    gap: 5px;

    padding: 7px 9px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.13);

    border: 1px solid rgba(255, 255, 255, 0.13);

    font-size: 8px;

    white-space: nowrap;
}

.status-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #65e6a2;

    box-shadow: 0 0 0 3px rgba(101, 230, 162, 0.13);
}


/* =========================================================
   PROGRESSO
========================================================= */

.progress-area {
    margin-top: 4px;
}

.progress-info {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 9px;
}

.progress-info span {

    font-size: 11px;

    opacity: 0.85;
}

.progress-info strong {

    font-size: 17px;
}

.progress-bar {

    width: 100%;

    height: 7px;

    border-radius: 20px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.22);
}

.progress-fill {

    width: 0%;

    height: 100%;

    border-radius: inherit;

    background: white;

    transition: width 0.7s ease;
}

.progress-area small {

    display: block;

    font-size: 9px;

    opacity: 0.7;

    margin-top: 8px;
}


/* =========================================================
   SEÇÕES
========================================================= */

.section {
    margin-bottom: 28px;
}

.section-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 14px;
}

.section-overline {

    display: block;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;

    color: var(--primary);

    margin-bottom: 4px;
}

.section-header h2 {

    font-size: 19px;

    letter-spacing: -0.3px;

    color: var(--text);
}

.text-button {

    background: transparent;

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

    padding: 5px 0;
}


/* =========================================================
   EVENTOS
========================================================= */

.event-card {

    display: flex;

    align-items: center;

    gap: 13px;

    width: 100%;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    padding: 13px;

    margin-bottom: 10px;

    box-shadow: var(--shadow);

    text-align: left;

    transition: 0.2s ease;
}

.event-card:active {
    transform: scale(0.985);
}


/* data */

.event-date {

    width: 49px;
    min-width: 49px;

    height: 56px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    background: var(--primary-light);

    color: var(--primary);

    border-radius: 13px;
}

.event-month {

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.8px;
}

.event-date strong {

    font-size: 20px;

    line-height: 1;

    margin-top: 2px;
}


/* informações */

.event-information {
    flex: 1;
    min-width: 0;
}

.event-category {

    display: block;

    color: var(--primary);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 0.9px;

    margin-bottom: 3px;
}

.event-information h3 {

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 3px;

    color: var(--text);
}

.event-information p {

    font-size: 10px;

    color: var(--text-secondary);

    line-height: 1.35;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* seta */

.event-arrow {

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #f7f3fa;

    color: var(--text-light);

    border-radius: 50%;

    transition: 0.2s ease;
}

.event-arrow i {
    font-size: 10px;
}

.event-arrow:active {
    background: var(--primary-light);
    color: var(--primary);
}


/* =========================================================
   ACESSO RÁPIDO
========================================================= */

.quick-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 11px;
}

.quick-card {

    min-height: 139px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: flex-start;

    padding: 15px;

    text-align: left;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow);

    transition: 0.2s ease;
}

.quick-card:active {

    transform: scale(0.97);

    box-shadow: none;
}


/* ícones */

.quick-icon {

    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    margin-bottom: 15px;
}

.quick-icon i {
    font-size: 16px;
}

.edital-icon {

    background: #f0ddff;

    color: #8b2be2;
}

.calendar-icon {

    background: #e4edff;

    color: #5b8def;
}

.document-icon {

    background: #e3f7ee;

    color: #2aaf73;
}

.inscription-icon {

    background: #fff0dc;

    color: #e99a2f;
}


.quick-card strong {

    font-size: 13px;

    color: var(--text);

    margin-bottom: 4px;
}

.quick-card span {

    font-size: 9px;

    color: var(--text-secondary);

    line-height: 1.3;
}


/* =========================================================
   ALERTA
========================================================= */

.alert-card {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 15px;

    background: var(--warning-light);

    border: 1px solid #f8e1bd;

    border-radius: var(--radius-medium);

    margin-bottom: 14px;
}

.alert-icon {

    width: 34px;
    height: 34px;

    min-width: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #ffe4b9;

    color: var(--warning);
}

.alert-icon i {
    font-size: 14px;
}

.alert-card strong {

    display: block;

    font-size: 12px;

    color: #8c5d19;

    margin-bottom: 4px;
}

.alert-card p {

    font-size: 9px;

    line-height: 1.5;

    color: #967449;
}


/* =========================================================
   EDITAL ORIGINAL
========================================================= */

.official-card {

    display: flex;

    align-items: center;

    gap: 12px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    padding: 14px;

    box-shadow: var(--shadow);

    margin-bottom: 20px;
}

.official-icon {

    width: 43px;
    height: 43px;

    min-width: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--danger-light);

    color: var(--danger);
}

.official-icon i {
    font-size: 17px;
}

.official-information {
    flex: 1;
}

.official-information span {

    display: block;

    font-size: 7px;

    letter-spacing: 1px;

    font-weight: 800;

    color: var(--text-light);

    margin-bottom: 3px;
}

.official-information h3 {

    font-size: 13px;

    margin-bottom: 3px;
}

.official-information p {

    font-size: 9px;

    color: var(--text-secondary);
}

.official-button {

    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f5f0f8;

    color: var(--primary);
}

.official-button i {
    font-size: 12px;
}


/* =========================================================
   ESPAÇO PARA NAVBAR
========================================================= */

.bottom-space {
    height: 75px;
}


/* =========================================================
   NAVEGAÇÃO INFERIOR
========================================================= */

.bottom-navigation {

    position: fixed;

    bottom: 0;

    left: 50%;

    transform: translateX(-50%);

    width: 100%;

    max-width: 600px;

    height: var(--nav-height);

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    align-items: center;

    padding: 7px 8px 8px;

    background: rgba(255, 255, 255, 0.96);

    border-top: 1px solid var(--border);

    box-shadow: 0 -7px 25px rgba(35, 23, 50, 0.06);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    z-index: 200;
}

.nav-item {

    height: 58px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    background: transparent;

    color: #a39da9;

    position: relative;

    transition: 0.2s ease;
}

.nav-item i {

    font-size: 16px;

    transition: 0.2s ease;
}

.nav-item span {

    font-size: 8px;

    font-weight: 600;
}

.nav-item.active {

    color: var(--primary);
}

.nav-item.active i {

    transform: translateY(-1px);
}

.nav-item.active::before {

    content: "";

    position: absolute;

    top: -7px;

    width: 25px;

    height: 3px;

    border-radius: 5px;

    background: var(--primary);
}


/* =========================================================
   MENU LATERAL
========================================================= */

.menu-overlay {

    position: fixed;

    inset: 0;

    background: rgba(28, 20, 35, 0.42);

    opacity: 0;

    visibility: hidden;

    transition: 0.3s ease;

    z-index: 500;

    backdrop-filter: blur(2px);
}

.menu-overlay.open {

    opacity: 1;

    visibility: visible;
}


.side-menu {

    position: fixed;

    top: 0;
    left: 0;

    width: min(84%, 350px);

    height: 100vh;

    background: white;

    z-index: 600;

    transform: translateX(-100%);

    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);

    display: flex;

    flex-direction: column;

    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.12);
}

.side-menu.open {
    transform: translateX(0);
}
img{
border-radius:10px;
}

/* =========================================================
   HEADER DO MENU
========================================================= */

.side-menu-header {

    padding: 25px 20px;

    background:
        linear-gradient(
        135deg,
        #006400,
        #0a7a0a
    );

    color: white;

    display: flex;

    align-items: center;

    gap: 12px;
}

.side-logo {

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.16);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 14px;

    font-size: 15px;

    font-weight: 800;
}

.side-menu-header>div:nth-child(2) {

    display: flex;

    flex-direction: column;

    flex: 1;
}

.side-menu-header strong {

    font-size: 14px;

    margin-bottom: 3px;
}

.side-menu-header span {

    font-size: 10px;

    opacity: 0.75;
}

.close-menu {

    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    border-radius: 50%;
}


/* =========================================================
   ITENS DO MENU
========================================================= */

.side-menu-content {

    flex: 1;

    padding: 15px 12px;

    overflow-y: auto;
}

.side-menu-item {

    width: 100%;

    min-height: 51px;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 0 14px;

    margin-bottom: 5px;

    border-radius: 13px;

    background: transparent;

    color: var(--text-secondary);

    text-align: left;

    transition: 0.2s ease;
}

.side-menu-item i {

    width: 22px;

    text-align: center;

    color: var(--primary);

    font-size: 15px;
}

.side-menu-item span {

    font-size: 12px;

    font-weight: 600;
}

.side-menu-item:active {

    background: var(--primary-light);

    color: var(--primary);
}


/* =========================================================
   RODAPÉ DO MENU
========================================================= */

.side-menu-footer {

    padding: 18px 20px 25px;

    border-top: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.side-menu-footer span {

    font-size: 10px;

    font-weight: 700;

    color: var(--primary);
}

.side-menu-footer small {

    font-size: 9px;

    color: var(--text-light);
}


/* =========================================================
   TELAS MAIORES
========================================================= */

@media (min-width: 601px) {

    body {
        background: #ebe8f0;
    }

    .app {
        min-height: 100vh;

        box-shadow:
            0 0 60px rgba(45, 30, 60, 0.12);
    }

    .main-content {
        padding-left: 25px;
        padding-right: 25px;
    }

}


/* =========================================================
   CELULARES MUITO PEQUENOS
========================================================= */

@media (max-width: 360px) {

    .main-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .welcome-section h1 {
        font-size: 24px;
    }

    .process-card {
        padding: 18px;
    }

    .process-card-top {
        flex-direction: column;
        gap: 10px;
    }

    .status {
        align-self: flex-start;
    }

    .quick-card {
        min-height: 130px;
    }

    .quick-icon {
        margin-bottom: 11px;
    }

    .nav-item span {
        font-size: 7px;
    }

}


/* =========================================================
   SAFE AREA — IPHONE
========================================================= */

@supports (padding-bottom: env(safe-area-inset-bottom)) {

    .bottom-navigation {

        height: calc(var(--nav-height) + env(safe-area-inset-bottom));

        padding-bottom:
            calc(8px + env(safe-area-inset-bottom));
    }

    .bottom-space {

        height:
            calc(75px + env(safe-area-inset-bottom));
    }

}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {

    background: #d8d1df;

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bcb2c6;
}


/* =========================================================
   ANIMAÇÕES
========================================================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(10px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}

.welcome-section,
.process-card,
.event-card,
.quick-card,
.alert-card,
.official-card {

    animation: fadeUp 0.45s ease both;
}

.event-card:nth-child(2) {
    animation-delay: 0.05s;
}

.event-card:nth-child(3) {
    animation-delay: 0.1s;
}

.quick-card:nth-child(1) {
    animation-delay: 0.05s;
}

.quick-card:nth-child(2) {
    animation-delay: 0.1s;
}

.quick-card:nth-child(3) {
    animation-delay: 0.15s;
}

.quick-card:nth-child(4) {
    animation-delay: 0.2s;
}