/**
 * Estilos da página de Balcão Virtual do Portal do Contribuinte PGE/AM
 * Seguindo os padrões visuais da landing page
 */

/* Importar variáveis e estilos base da landing */
@import url('landing.css');

/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Variáveis de Cores - Reutilizando da landing */
:root {
    --primary: #039be5;
    --primary-light: #90caf9;
    --primary-medium: #42a5f5;
    --primary-dark: #3f51b5;
    --primary-navy: #173051;
    --accent-light: #e3f2fd;
    --accent-gray: #eceff1;
    --status-available: #43a047;
    --status-busy: #d32f2f;
    --status-unavailable: #bdbdbd;
}

/* Hero Section - Específica para Balcão Virtual */
.balcao-hero {
    position: relative;
    color: white;
    padding: 8rem 1.5rem 5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .balcao-hero {
        padding: 10rem 1.5rem 8rem;
    }
}

.balcao-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 155, 229, 0.15);
    z-index: 0;
}

.balcao-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.balcao-hero h1 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white !important;
}

@media (min-width: 768px) {
    .balcao-hero h1 {
        font-size: 3rem;
    }
}

.balcao-hero p {
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    color: white !important;
}

@media (min-width: 768px) {
    .balcao-hero p {
        font-size: 1.125rem;
    }
}

/* Flash Messages */
.flash-messages {
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.flash-messages .alert {
    border-radius: 0.375rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Informações de Funcionamento */
.funcionamento-section {
    padding: 3rem 1.5rem;
    background: var(--accent-light);
}

@media (min-width: 768px) {
    .funcionamento-section {
        padding: 4rem 1.5rem;
    }
}

.funcionamento-section .section-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .funcionamento-section .section-title {
        font-size: 2.5rem;
    }
}

.funcionamento-card {
    background: white;
    padding: 2rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.funcionamento-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.funcionamento-item:last-child {
    margin-bottom: 0;
}

.funcionamento-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.funcionamento-icon i {
    font-size: 1.75rem;
}

.funcionamento-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.funcionamento-content p {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Balcões Section */
.balcoes-section {
    padding: 3rem 1.5rem;
    background: white;
}

@media (min-width: 768px) {
    .balcoes-section {
        padding: 4rem 1.5rem;
    }
}

.balcoes-section .section-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .balcoes-section .section-title {
        font-size: 2.5rem;
    }
}

.balcoes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .balcoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .balcoes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .balcoes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card de Balcão */
.balcao-card {
    background: var(--accent-light);
    padding: 2rem 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 300ms;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 420px;
}

.balcao-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.balcao-card.disponivel {
    border-top: 4px solid var(--status-available);
}

.balcao-card.ocupado {
    border-top: 4px solid var(--status-busy);
}

.balcao-card.indisponivel {
    border-top: 4px solid var(--status-unavailable);
    opacity: 0.8;
}

/* Ícone do Balcão */
.balcao-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.balcao-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.balcao-card.disponivel .balcao-icon i {
    color: var(--status-available);
}

.balcao-card.ocupado .balcao-icon i {
    color: var(--status-busy);
}

.balcao-card.indisponivel .balcao-icon i {
    color: var(--status-unavailable);
}

/* Título do Balcão */
.balcao-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Badge de Status */
.balcao-status {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.disponivel {
    background: rgba(67, 160, 71, 0.1);
    color: var(--status-available);
}

.status-badge.ocupado {
    background: rgba(211, 47, 47, 0.1);
    color: var(--status-busy);
}

.status-badge.indisponivel {
    background: rgba(189, 189, 189, 0.1);
    color: var(--status-unavailable);
}

.status-badge i {
    font-size: 0.625rem;
}

/* Informações do Balcão */
.balcao-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.balcao-info-item {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.balcao-info-item strong {
    color: var(--primary-navy);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

/* Botão de Ação */
.balcao-action {
    margin-top: auto;
}

.btn-atendimento {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 300ms;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-atendimento i {
    font-size: 1.125rem;
}

.btn-atendimento.disponivel {
    background: var(--primary);
    color: white;
}

.btn-atendimento.disponivel:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-atendimento.indisponivel {
    background: var(--accent-gray);
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-atendimento.indisponivel:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Tempo Estimado */
.tempo-estimado {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.tempo-estimado strong {
    color: var(--primary-navy);
    font-weight: 600;
}

/* Empty State - Nenhum Balcão Disponível */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 4rem;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Responsividade Mobile */
@media (max-width: 640px) {
    .balcao-card {
        min-height: auto;
    }

    .balcao-icon {
        width: 72px;
        height: 72px;
    }

    .balcao-icon i {
        font-size: 2rem;
    }

    .balcao-title {
        font-size: 1.125rem;
    }
}

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

.balcao-card {
    animation: fadeIn 0.5s ease-out;
}

.balcao-card:nth-child(1) { animation-delay: 0.1s; }
.balcao-card:nth-child(2) { animation-delay: 0.2s; }
.balcao-card:nth-child(3) { animation-delay: 0.3s; }
.balcao-card:nth-child(4) { animation-delay: 0.4s; }
.balcao-card:nth-child(5) { animation-delay: 0.5s; }
.balcao-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   MINI HERO SECTION
   ======================================== */
.mini-hero {
    position: relative;
    color: white;
    padding: 6rem 1.5rem 3rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .mini-hero {
        padding: 8rem 1.5rem 4rem;
    }
}

.mini-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 155, 229, 0.1);
    z-index: 0;
}

.mini-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.mini-hero h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .mini-hero h1 {
        font-size: 2.5rem;
    }
}

.mini-hero p {
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .mini-hero p {
        font-size: 1.05rem;
    }
}

/* ========================================
   WAITING PAGE (Aguardando Atendimento)
   ======================================== */
.waiting-page {
    min-height: calc(100vh - 400px);
    background: var(--accent-light);
}

.waiting-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.waiting-card-body {
    padding: 3rem 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .waiting-card-body {
        padding: 4rem 3rem;
    }
}

/* Spinner Customizado */
.waiting-spinner {
    margin-bottom: 2.5rem;
}

.spinner-custom {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--primary);
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--primary-medium);
    animation-duration: 2.5s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--primary-light);
    animation-duration: 3s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.spinner-icon i {
    font-size: 1.75rem;
    color: white;
}

/* Título e Protocolo */
.waiting-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .waiting-title {
        font-size: 1.875rem;
    }
}

.waiting-protocol {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-light);
    border-radius: 9999px;
    font-size: 1rem;
    color: var(--primary-navy);
    margin-bottom: 2rem;
}

.waiting-protocol strong {
    font-weight: 600;
}

/* Info Box */
.waiting-info-box {
    background: rgba(3, 155, 229, 0.08);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0.375rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.waiting-info-box i {
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.waiting-info-box p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

/* Detalhes do Atendimento */
.waiting-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .waiting-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.waiting-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--accent-gray);
    border-radius: 0.5rem;
    text-align: left;
}

.waiting-detail-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.waiting-detail-icon i {
    font-size: 1.25rem;
    color: var(--primary);
}

.waiting-detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.waiting-detail-content strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.waiting-detail-content span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-navy);
}

/* Formulário de Cancelamento */
.waiting-cancel-form {
    margin-top: 2rem;
}

.btn-cancel-waiting {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #d32f2f;
    background: white;
    border: 2px solid #d32f2f;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 300ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel-waiting:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* ========================================
   CONSULTA PAGE (Consulta por Protocolo)
   ======================================== */
.consulta-page {
    min-height: calc(100vh - 400px);
    background: var(--accent-gray);
}

.consulta-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.consulta-card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.consulta-card-header i {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.consulta-card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.consulta-card-header p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
}

/* Alertas de Consulta */
.consulta-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 1.5rem 2rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.consulta-alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.consulta-alert-error {
    background: rgba(211, 47, 47, 0.1);
    border-left: 4px solid #d32f2f;
    color: #c62828;
}

.consulta-alert-success {
    background: rgba(67, 160, 71, 0.1);
    border-left: 4px solid var(--status-available);
    color: #2e7d32;
}

/* Formulário de Consulta */
.consulta-form {
    padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
    .consulta-form {
        padding: 3rem 3rem 2.5rem;
    }
}

.form-group-modern {
    margin-bottom: 2rem;
}

.form-label-modern {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.form-input-modern {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 300ms;
    font-family: 'Montserrat', sans-serif;
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 155, 229, 0.1);
}

.form-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.btn-consultar {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 300ms;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(3, 155, 229, 0.3);
}

.btn-consultar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 155, 229, 0.4);
}

/* Informações Adicionais */
.consulta-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(3, 155, 229, 0.05);
    border-radius: 0.5rem;
}

.consulta-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.consulta-info .info-item:first-child {
    padding-top: 0;
}

.consulta-info .info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.consulta-info .info-item + .info-item {
    border-top: 1px solid rgba(3, 155, 229, 0.15);
}

.consulta-info .info-item i {
    font-size: 1.125rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.consulta-info .info-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

/* ========================================
   DETALHES PAGE (Detalhes do Atendimento)
   ======================================== */
.detalhes-page {
    min-height: calc(100vh - 400px);
    background: var(--accent-gray);
}

.detalhes-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-bottom: 2rem;
}

.detalhes-card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .detalhes-card-header {
        padding: 2.5rem;
    }
}

.detalhes-header-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detalhes-header-icon i {
    font-size: 2rem;
    color: white;
}

.detalhes-header-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.detalhes-protocolo {
    font-size: 1rem;
    opacity: 0.95;
}

.detalhes-protocolo strong {
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Body do Card */
.detalhes-card-body {
    padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
    .detalhes-card-body {
        padding: 3rem;
    }
}

/* Grid de Detalhes */
.detalhes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .detalhes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detalhes-item {
    padding: 1.5rem;
    background: var(--accent-gray);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
}

.detalhes-item-full {
    grid-column: 1 / -1;
}

.detalhes-item-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.75rem;
}

.detalhes-item-label i {
    font-size: 1rem;
    color: var(--primary);
}

.detalhes-item-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary-navy);
    line-height: 1.6;
}

.detalhes-description {
    white-space: pre-wrap;
    word-break: break-word;
}

.status-badge-detalhes {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: rgba(67, 160, 71, 0.1);
    color: var(--status-available);
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Seção de Download */
.detalhes-download-section {
    background: var(--accent-light);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px dashed var(--primary);
    text-align: center;
}

.download-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.download-info i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.download-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
    text-align: left;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .download-info {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

.btn-download-detalhes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    background: var(--status-available);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 300ms;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
    text-decoration: none;
}

.btn-download-detalhes:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.4);
}

/* Ações de Detalhes */
.detalhes-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-consultar-outro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    background: white;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 300ms;
    text-decoration: none;
}

.btn-consultar-outro:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 155, 229, 0.3);
}

/* Alertas de Detalhes */
.detalhes-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.detalhes-alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.detalhes-alert-error {
    background: rgba(211, 47, 47, 0.1);
    border-left: 4px solid #d32f2f;
    color: #c62828;
}

/* ========================================
   HEADER - Cores do texto branco
   ======================================== */
.landing-header .nav-link {
    color: white !important;
}

.landing-header .nav-link:hover {
    color: white !important;
    border-bottom: 2px solid white;
}

.landing-header .btn-login {
    color: white !important;
    border-color: white;
}

.landing-header .btn-login:hover {
    color: var(--primary-navy) !important;
    background: white;
}

/* ========================================
   USER MENU (Header com autenticação)
   ======================================== */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu .user-name {
    color: white !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-logout {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 200ms;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-logout:hover {
    background: white;
    color: var(--primary-navy);
}

.btn-logout i {
    font-size: 0.875rem;
}

/* Mobile Menu - User Authenticated */
.user-menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

.user-menu-mobile .user-name {
    color: var(--primary-navy);
    font-size: 0.95rem;
    font-weight: 600;
}

.user-menu-mobile .btn-logout {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    justify-content: center;
}

.user-menu-mobile .btn-logout:hover {
    background: #c82333;
    border-color: #c82333;
}
