/* MEI Portal Design System - Institucional, confiável e limpo */

:root {
    /* Background and layout - Fundo branco */
    --background: 0 0% 100%;
    --foreground: 220 100% 15%;
    /* Azul muito escuro para textos */

    /* Card components */
    --card: 0 0% 100%;
    --card-foreground: 220 100% 15%;

    /* Popovers */
    --popover: 0 0% 100%;
    --popover-foreground: 220 100% 15%;

    /* Primary - Azul gov mais forte */
    --primary: 214 100% 35%;
    --primary-foreground: 0 0% 100%;
    --primary-hover: 214 100% 30%;

    /* Secondary - Azul mais claro */
    --secondary: 214 50% 95%;
    --secondary-foreground: 220 100% 15%;

    /* Muted tones */
    --muted: 210 20% 96%;
    --muted-foreground: 220 100% 15%;

    /* Accent colors */
    --accent: 214 50% 95%;
    --accent-foreground: 220 100% 15%;

    /* Status colors - Verde apenas para PAGOS */
    --success: 142 76% 36%;
    --success-foreground: 0 0% 100%;
    --success-light: 142 60% 95%;

    /* Verde padrão dos botões (cor #7CB342) */
    --button-green: 88 43% 46%;
    --button-green-foreground: 0 0% 100%;

    /* Warning agora é azul para a faixa */
    --warning: 214 100% 45%;
    --warning-foreground: 0 0% 100%;
    --warning-light: 214 100% 95%;

    /* Destructive neutro para EM ABERTO */
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 84% 60%;
    --destructive-light: 0 0% 100%;

    /* Form elements */
    --border: 142 30% 80%;
    --input: 142 30% 80%;
    --ring: 214 100% 35%;

    --radius: 0.5rem;
}

/* Tailwind CSS Variables Support */
.bg-background {
    background-color: hsl(var(--background));
}

.text-foreground {
    color: hsl(var(--foreground));
}

.bg-card {
    background-color: hsl(var(--card));
}

.text-card-foreground {
    color: hsl(var(--card-foreground));
}

.text-primary {
    color: hsl(var(--primary));
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.bg-muted {
    background-color: hsl(var(--muted));
}

.text-destructive {
    color: hsl(var(--destructive));
}

.bg-destructive\/10 {
    background-color: hsl(var(--destructive) / 0.1);
}

.text-success {
    color: hsl(var(--success));
}

.bg-success {
    background-color: hsl(var(--success));
}

.bg-success\/10 {
    background-color: hsl(var(--success) / 0.1);
}

.border-success\/20 {
    border-color: hsl(var(--success) / 0.2);
}

.border-destructive\/20 {
    border-color: hsl(var(--destructive) / 0.2);
}

.border-border {
    border-color: hsl(var(--border));
}

.bg-muted\/30 {
    background-color: hsl(var(--muted) / 0.3);
}

.bg-muted\/50 {
    background-color: hsl(var(--muted) / 0.5);
}

.border-border\/50 {
    border-color: hsl(var(--border) / 0.5);
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}


/* Estilos para o RodapÃ© gov.br */

.main-footer {
    background-color: #003366;
    /* Azul escuro do gov.br */
    color: #fff;
    /* Texto branco */
    padding: 40px 0 0 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    margin-top: 0;
}

@media screen and (max-width: 640px) {
    .main-footer {
        padding: 30px 0 0 0;
        font-size: 13px;
    }
}

.main-footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.main-footer a:hover {
    color: #a0d0ff;
    text-decoration: underline;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media screen and (max-width: 640px) {
    .footer-content {
        padding: 0 15px;
    }
}

.footer-section {
    margin-bottom: 30px;
}

.footer-govbr-logo {
    flex: 0 0 100%;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.govbr-logo-footer {
    width: 150px;
    height: auto;
}

@media screen and (max-width: 640px) {
    .footer-govbr-logo {
        margin-bottom: 25px;
        margin-top: 5px;
    }
    
    .govbr-logo-footer {
        width: 120px;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    /* Ocupa o espaÃ§o restante */
    justify-content: space-between;
}

.footer-column {
    flex: 0 0 48%;
    /* Duas colunas em mobile */
    margin-bottom: 20px;
}

@media screen and (max-width: 640px) {
    .footer-column {
        flex: 0 0 100%;
        margin-bottom: 25px;
    }
    
    .footer-column h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-column ul li {
        margin-bottom: 8px;
    }
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #a0d0ff;
    /* Azul claro para títulos */
    letter-spacing: 0.3px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #a0d0ff;
    padding-left: 4px;
}

.footer-social {
    flex: 0 0 100%;
    /* Ocupa a largura total em mobile */
    text-align: center;
}

.footer-social h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #a0d0ff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    font-size: 24px;
    color: #fff;
}

.access-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #004080;
    /* Azul um pouco mais claro */
    padding: 10px 20px;
    border-radius: 5px;
    max-width: 250px;
    margin: 0 auto;
}

.access-info i {
    font-size: 20px;
}

.footer-bottom-bar {
    background-color: #002040;
    /* Azul mais escuro */
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    margin-top: 30px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 640px) {
    .footer-bottom-bar {
        padding: 15px 0;
        margin-top: 25px;
        font-size: 11px;
    }
}

.footer-bottom-bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.footer-bottom-bar p {
    margin: 0;
    flex: 0 0 100%;
    /* Ocupa a largura total em mobile */
    margin-bottom: 10px;
}

.footer-bottom-bar .govbr-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsividade para Desktop */
@media (min-width: 768px) {
    .footer-govbr-logo {
        flex: 0 0 150px;
        /* Largura fixa para o logo */
        text-align: left;
        margin-bottom: 0;
    }

    .footer-links {
        flex: 1;
        /* Ocupa o espaÃ§o restante */
        justify-content: space-around;
    }

    .footer-column {
        flex: 0 0 23%;
        /* Quatro colunas */
    }

    .footer-social {
        flex: 0 0 200px;
        /* Largura fixa para social */
        text-align: right;
    }

    .social-icons {
        justify-content: flex-end;
    }

    .access-info {
        margin: 0;
        margin-left: auto;
        /* Alinha Ã  direita */
    }

    .footer-bottom-bar p {
        flex: none;
        margin-bottom: 0;
    }

    .footer-bottom-bar .container {
        justify-content: space-between;
    }
}

/* Melhorias adicionais para mobile */
@media screen and (max-width: 640px) {
    /* Ajustes de espaçamento para mobile */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Melhor legibilidade em mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Evita seleção acidental de texto em mobile */
    button, a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        user-select: none;
    }
}

/* Garantir que o footer só apareça ao rolar */
html, body {
    height: 100%;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Garantir que o main tenha altura suficiente para empurrar o footer e centralizar conteúdo */
main {
    min-height: calc(100vh - 80px); /* Para desktop, header é ~80px */
    padding-bottom: 3rem;
}

@media screen and (max-width: 640px) {
    main {
        min-height: calc(100vh - 64px); /* Para mobile, header é ~64px */
        padding-bottom: 4rem;
    }
}