/* Fontes e estilos base gov.br */
body, .content-text {
    font-family: 'rawline', sans-serif;
    line-height: 1.6;
}

/* Elemento meio círculo do cabeçalho */
.half-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(90deg, #1E40AF 50%, #FFFFFF 50%);
    border: 1px solid #1E40AF;
    display: inline-block;
    vertical-align: middle;
}

/* Estilos para listas de redes sociais */
.portal-redes {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 8px;
}

.portal-redes li {
    margin: 0;
}

.portal-redes a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
    width: 14px;
    height: 14px;
    fill: white;
}

/* Cores oficiais gov.br */
:root {
    --gov-blue-primary: #0a1f44;
    --gov-blue-secondary: #1E40AF;
    --gov-yellow: #FFD700;
    --gov-red: #DC2626;
    --gov-green: #059669;
}

/* Estilos para cards */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Estilos para botões gov.br */
.btn-gov-primary {
    background-color: var(--gov-blue-secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-gov-primary:hover {
    background-color: #1D4ED8;
}

.btn-gov-secondary {
    background-color: transparent;
    color: var(--gov-blue-secondary);
    border: 2px solid var(--gov-blue-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-gov-secondary:hover {
    background-color: var(--gov-blue-secondary);
    color: white;
}

/* Estilos para breadcrumb */
.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--gov-blue-primary);
}

/* Estilos para FAQ accordion */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-question {
    background-color: #f9fafb;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: #f3f4f6;
}

.faq-answer {
    padding: 1rem;
    background-color: white;
    border-top: 1px solid #e5e7eb;
}

/* Estilos para tabelas */
.table-gov {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table-gov th,
.table-gov td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table-gov th {
    background-color: var(--gov-blue-primary);
    color: white;
    font-weight: 600;
}

.table-gov tr:hover {
    background-color: #f9fafb;
}

/* Estilos para alertas */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background-color: #eff6ff;
    border-left-color: var(--gov-blue-secondary);
    color: #1e40af;
}

.alert-warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.alert-danger {
    background-color: #fef2f2;
    border-left-color: var(--gov-red);
    color: #991b1b;
}

.alert-success {
    background-color: #ecfdf5;
    border-left-color: var(--gov-green);
    color: #065f46;
}

/* Estilos para botão de login no header */
#login-button {
    min-width: 100px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#login-text {
    font-size: 14px;
    font-weight: normal;
}

/* Reduzir apenas quando for nome de usuário */
#login-text.user-name {
    font-size: 12px;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-responsive {
        grid-template-columns: 1fr;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .text-responsive {
        font-size: 0.875rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Estilos para formulários */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--gov-blue-secondary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
}

/* Estilos para loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para impressão */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    .text-blue-800 {
        color: #000 !important;
    }
    
    .bg-blue-50 {
        background-color: #f8f9fa !important;
    }
}

/* Melhorias de acessibilidade */
.focus-visible:focus {
    outline: 2px solid var(--gov-blue-secondary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -70px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
