/* Componentes - Botões, Cards, Formulários */

/* Banner de Homologação */
.homologation-banner {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.homologation-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
}

.homologation-icon {
    width: 24px;
    height: 24px;
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.homologation-icon::before {
    content: '!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 16px;
    color: white;
}

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

.homologation-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.homologation-text strong {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.homologation-text span {
    font-size: 14px;
    opacity: 0.95;
    margin-top: 2px;
}

/* Compensar espaço do banner fixo */
body.has-homologation-banner {
    padding-top: 70px;
}

/* Responsivo para o banner */
@media (max-width: 768px) {
    .homologation-banner {
        padding: 8px 0;
    }
    
    .homologation-icon {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
    
    .homologation-icon::before {
        font-size: 14px;
    }
    
    .homologation-text strong {
        font-size: 14px;
    }
    
    .homologation-text span {
        font-size: 12px;
    }
    
    /* Ajustar padding do body para mobile */
    body.has-homologation-banner {
        padding-top: 80px;
    }
}

/* Seção de Busca */
.search-section {
    background-color: var(--card-bg);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    overflow: visible;
    position: relative;
}

.search-controls {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    padding: 12px var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Resultado da Busca */
.search-result {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

/* Garantir que period-header funcione corretamente dentro de search-result */
.search-result .period-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.search-result .period-header h3 {
    flex: 1 !important;
    margin: 0 !important;
    display: inline-block !important;
}

.search-result .period-header .badge {
    flex-shrink: 0;
    white-space: nowrap;
    position: static !important;
    z-index: auto !important;
    float: none !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-block !important;
}

/* Forçar especificidade máxima para badges em resultados de busca */
#searchResult .period-header .badge,
#searchResult .period-card .period-header .badge,
#searchResultContent .period-header .badge,
#searchResultContent .period-card .period-header .badge {
    display: inline-block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    /* FORÇAR VISIBILIDADE MÁXIMA */
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    z-index: auto !important;
    min-width: 60px !important;
    min-height: 20px !important;
    text-align: center !important;
    line-height: normal !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Cores específicas por tipo */
#searchResult .period-header .badge.current,
#searchResult .period-card .period-header .badge.current {
    background-color: var(--primary-color) !important;
    border: 2px solid #2E7D32 !important;
}

#searchResult .period-header .badge.upcoming,
#searchResult .period-card .period-header .badge.upcoming {
    background-color: var(--secondary-color) !important;
    border: 2px solid #1976D2 !important;
}

#searchResult .period-header .badge.past,
#searchResult .period-card .period-header .badge.past {
    background-color: #757575 !important;
    border: 2px solid #424242 !important;
}

/* Botões */
.btn-primary, 
.btn-secondary, 
.btn-highlight,
.btn-location,
.btn-map,
.btn-call {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-highlight {
    background-color: var(--danger-color);
    color: var(--text-white);
}

.btn-highlight:hover {
    background-color: #c62828;
    transform: translateY(-2px);
}

.btn-location {
    background-color: #ff9800;
    color: var(--text-white);
}

.btn-location:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
}

.btn-map {
    background-color: #4285f4;
    color: var(--text-white);
    padding: 8px 16px;
    font-size: 14px;
}

.btn-map:hover {
    background-color: #357ae8;
}

.btn-call {
    background-color: #00c853;
    color: var(--text-white);
    padding: 8px 16px;
    font-size: 14px;
}

.btn-call:hover {
    background-color: #00a843;
}

/* Cards */
.period-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-normal);
}

.period-card:hover {
    box-shadow: var(--shadow-hover);
}

.period-card.highlight {
    border: 2px solid var(--primary-color);
    background-color: #e8f5e9;
}

.period-card.past {
    background-color: #f9f9f9;
    color: #888;
    border: 1px solid #e5e5e5;
}

.period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: 12px;
}

.period-header h3 {
    flex: 1;
    margin: 0;
}

.period-header .badge {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--primary-color);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    position: static !important;
    z-index: auto !important;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.badge.past {
    background-color: #bdbdbd;
    color: white;
    font-weight: normal;
}

.badge.current {
    background-color: #4caf50;
    color: white;
    animation: pulse-glow 2s infinite;
}

.badge.found {
    background-color: #ff9800;
    color: white;
}

/* Estilo para farmácias em períodos encerrados */
.period-card.past .pharmacy-item h4 {
    color: #888;
}

.period-card.past .pharmacy-item .address,
.period-card.past .pharmacy-item .phone {
    color: #999;
}

.badge.upcoming {
    background-color: var(--secondary-color);
}

/* Cards de Farmácia */
.pharmacy-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
}

.pharmacy-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.pharmacy-card.highlight {
    border-color: var(--primary-color);
    border-width: 2px;
}

.pharmacy-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.pharmacy-card .address {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.pharmacy-card .phone {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.pharmacy-card .distance {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

.pharmacy-card .actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: space-between;
}

/* Grid de Farmácias */
.pharmacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Seções especiais */
.no-plantao {
    text-align: center;
    padding: 40px var(--spacing-lg);
    background-color: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: var(--border-radius);
}

.no-plantao h2 {
    color: #856404;
    margin-bottom: var(--spacing-md);
}

.no-plantao p {
    color: #856404;
    margin-bottom: var(--spacing-sm);
}

/* Ocultar conteúdo durante inicialização */
body.page-initializing .homologation-banner,
body.page-initializing header,
body.page-initializing footer,
body.page-initializing .current-section,
body.page-initializing .search-section,
body.page-initializing .all-periods {
    opacity: 0;
    pointer-events: none;
}

/* Modal SAMU e Location */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: auto;
}

.modal-overlay.hidden {
    display: none;
    pointer-events: none;
}

/* Modal SAMU deve ficar acima de todos os outros modais */
#samuModal {
    z-index: 10003; /* Acima do botão SAMU (10002) */
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background-color: #d32f2f;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.modal-body {
    padding: 25px;
    text-align: center;
}

.modal-body p {
    margin: 10px 0;
    line-height: 1.6;
}

.modal-actions {
    padding: 0 25px 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.btn-emergency {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-emergency:hover {
    background-color: #c62828;
    transform: translateY(-2px);
}

.btn-cancel {
    background-color: #666;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-cancel:hover {
    background-color: #555;
}

/* Modal de Localização */
.location-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.divider {
    text-align: center;
    color: #999;
    font-style: italic;
    margin: 10px 0;
}


/* Distância nas farmácias - OCULTO TEMPORARIAMENTE */
.distance-info {
    display: none !important;
    /* Estilos preservados para uso futuro:
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
    */
}

.closest-pharmacy {
    border: 2px solid #ff9800 !important;
    background-color: #fff3e0 !important;
    position: relative;
}

.closest-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff9800;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

/* Botão SAMU Fixo */
.samu-button-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background-color: #d32f2f;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: move;
    z-index: 10002; /* Acima de notification-system (10001) */
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.samu-button-fixed:hover {
    background-color: #c62828;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.samu-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.samu-text {
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 1.1;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4); }
    50% { box-shadow: 0 4px 12px rgba(211, 47, 47, 0.8); }
    100% { box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4); }
}

/* Sistema de Notificações Responsivo */
.notification-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none; /* Não bloquear cliques no botão SAMU */
}

.notification-system.hidden {
    display: none;
}

.notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    pointer-events: auto; /* Permitir cliques no overlay */
}

.notification-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: notificationSlide 0.3s ease-out;
    pointer-events: auto; /* Permitir interação com notificação */
}

@keyframes notificationSlide {
    from { 
        transform: translateY(-30px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.notification-header {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.notification-body {
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.notification-message {
    flex: 1;
    line-height: 1.5;
    color: #333;
    font-size: 16px;
}

.notification-actions {
    padding: 20px 25px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
}

.btn-notification-primary,
.btn-notification-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.btn-notification-primary {
    background-color: #2e7d32;
    color: white;
}

.btn-notification-primary:hover {
    background-color: #1b5e20;
    transform: translateY(-1px);
}

.btn-notification-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-notification-secondary:hover {
    background-color: #e0e0e0;
}

/* Variações de tipos de notificação */
.notification-error .notification-header {
    background: linear-gradient(135deg, #d32f2f, #f44336);
}

.notification-warning .notification-header {
    background: linear-gradient(135deg, #f57c00, #ff9800);
}

.notification-info .notification-header {
    background: linear-gradient(135deg, #1976d2, #2196f3);
}

.notification-success .notification-header {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
}

/* Responsividade para Mobile */
@media (max-width: 480px) {
    .notification-system {
        padding: 10px;
    }
    
    .notification-content {
        max-width: 100%;
        margin: 0;
        border-radius: 8px;
    }
    
    .notification-header {
        padding: 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .notification-header h3 {
        font-size: 16px;
    }
    
    .notification-body {
        padding: 20px 15px;
        gap: 12px;
    }
    
    .notification-icon {
        font-size: 28px;
    }
    
    .notification-message {
        font-size: 15px;
    }
    
    .notification-actions {
        padding: 15px;
        flex-direction: column;
    }
    
    .btn-notification-primary,
    .btn-notification-secondary {
        width: 100%;
        order: 1;
    }
    
    .btn-notification-secondary {
        order: 2;
        margin-top: 8px;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.loading h2 {
    margin-bottom: var(--spacing-md);
}

/* Visualização Todos os Plantões */
.all-periods-view {
    background-color: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.all-periods-view h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-size: 28px;
}

.all-periods-view .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

/* Visualização completa dos plantões */
.all-periods-view {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.month-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.month-header {
    background: var(--primary-color);
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.month-periods {
    padding: 20px;
}

.period-card.compact {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: white;
}

.period-card.compact.current-period {
    border-color: var(--success-color);
    background: var(--success-bg);
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.2);
}

.pharmacy-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pharmacy-item.compact {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.pharmacy-item.compact:last-child {
    border-bottom: none;
}

.pharmacy-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.pharmacy-actions {
    display: flex;
    gap: 6px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 0.8em;
    min-width: auto;
    border-radius: 4px;
    margin-left: 4px;
}

.btn-map.btn-small {
    background-color: #2196f3;
    color: white;
}

.btn-call.btn-small {
    background-color: #4caf50;
    color: white;
}

.badge.current {
    background: var(--success-color);
    color: white;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.8); }
}

/* 🚨 Animações do Ícone de Emergência */
.emergency-icon {
    display: inline-block;
    animation: emergency-pulse 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
}

.btn-emergency-icon {
    display: inline-block;
    animation: emergency-pulse 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
}

/* Animação principal - pulso de emergência */
@keyframes emergency-pulse {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.4));
    }
    25% { 
        transform: scale(1.15);
        filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.8));
    }
    50% { 
        transform: scale(1.2);
        filter: drop-shadow(0 0 16px rgba(255, 0, 0, 1));
    }
    75% { 
        transform: scale(1.15);
        filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.8));
    }
    100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.4));
    }
}

/* Modal de opções de mapa */
.map-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.map-options-modal.show {
    opacity: 1;
    visibility: visible;
}

.map-options-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.map-options-modal.show .map-options-content {
    transform: translateY(0);
}

.map-options-content h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.2em;
}

.map-options-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-map-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-map-option:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
    transform: translateY(-1px);
}

.btn-map-option.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-map-option.primary:hover {
    background: #1e40af;
    border-color: #1e40af;
}

.btn-map-option small {
    color: #64748b;
    font-size: 12px;
}

.btn-map-option.primary small {
    color: rgba(255, 255, 255, 0.8);
}

.btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

/* Loading de localização */
.location-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.loading-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-content p {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-weight: 500;
}

.loading-content small {
    color: #64748b;
    font-size: 12px;
}

/* Sistema de toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    text-align: center;
    font-size: 14px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

/* Responsivo para modal */
@media (max-width: 480px) {
    .map-options-content {
        padding: 20px;
        margin: 20px;
    }
    
    .loading-content {
        padding: 24px;
        margin: 20px;
    }
}

/* ====== BANNER PLANTÃO AO VIVO ====== */
.current-period-banner {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #4caf50;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    animation: bannerEntrance 0.6s ease-out;
}

/* Estilo específico para o redirecionamento */
.current-period-redirect {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    animation: bannerEntrance 0.6s ease-out;
}

.redirect-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.redirect-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.redirect-text {
    flex: 1;
}

.redirect-text strong {
    display: block;
    font-size: 16px;
    color: #e65100;
    margin-bottom: 5px;
}

.redirect-text p {
    margin: 0;
    font-size: 14px;
    color: #bf360c;
}

.redirect-right {
    flex-shrink: 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.live-indicator {
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: livePulse 2s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text strong {
    display: block;
    color: #2e7d32;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-text p {
    color: #4caf50;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.banner-right {
    flex-shrink: 0;
}

.btn-live {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-live:hover {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-live:active {
    transform: translateY(0);
}

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

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 2px 15px rgba(255, 68, 68, 0.6);
    }
}

/* Responsivo para banner */
@media (max-width: 768px) {
    .banner-content,
    .redirect-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .banner-left,
    .redirect-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .banner-text strong,
    .redirect-text strong {
        font-size: 16px;
    }
    
    .banner-text p,
    .redirect-text p {
        font-size: 13px;
    }
    
    .banner-right,
    .redirect-right {
        width: 100%;
    }
    
    .btn-live {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}


/* Efeitos do botão inteiro */
.btn-highlight:has(.btn-emergency-icon) {
    position: relative;
    overflow: visible;
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    animation: button-emergency-glow 3s infinite ease-in-out;
}

@keyframes button-emergency-glow {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
        border-color: rgba(255, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
        border-color: rgba(255, 0, 0, 0.6);
    }
}

/* Modal ATIVO - Estilo similar ao BETA */
.active-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.active-modal-header {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    border-bottom: none;
    position: relative;
}

.active-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.active-modal-header .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.active-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.active-modal-header .modal-close:active {
    transform: scale(0.95);
}

.active-modal-body {
    padding: 25px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.active-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.active-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.active-period {
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
}

.active-time {
    padding: 4px 12px;
    background: #4caf50;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-description h3,
.active-info h3,
.active-emergency h3,
.active-legal h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-description p,
.active-emergency p,
.active-legal p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #374151;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 -12px;
}

.info-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.emergency-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.emergency-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.emergency-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

.emergency-link:hover {
    text-decoration: underline;
}

.active-decree-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid #4caf50;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.active-decree-link:hover {
    background: #4caf50;
    color: white;
    transform: translateY(-1px);
}

.active-modal-actions {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.active-modal-actions .btn-primary {
    min-width: 120px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.active-modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* ====== MODAL "PLANTÃO ATUAL" INFORMATIVO ====== */
.current-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.current-modal-header {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    border-bottom: none;
    position: relative;
}

.current-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.current-modal-header .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.current-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.current-modal-header .modal-close:active {
    transform: scale(0.95);
}

.current-modal-body {
    padding: 25px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.current-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.current-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
}

.current-period {
    font-size: 18px;
    font-weight: 600;
    color: #c62828;
}

.current-time {
    padding: 4px 12px;
    background: #d32f2f;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(211, 47, 47, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(211, 47, 47, 0.8);
    }
}

.current-description h3,
.current-info h3,
.current-features h3,
.current-emergency h3,
.current-legal h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #c62828;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-description p,
.current-emergency p,
.current-legal p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #374151;
}

.current-description,
.current-info,
.current-features,
.current-emergency,
.current-legal {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.current-description {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
}

.current-info {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
}

.current-features {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
}

.current-emergency {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
}

.current-legal {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.current-decree-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c62828;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid #d32f2f;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.current-decree-link:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-1px);
}

.current-modal-actions {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.current-modal-actions .btn-primary {
    min-width: 120px;
    background: linear-gradient(135deg, #d32f2f, #c62828);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* ====== MODAL "PRÓXIMO PLANTÃO" INFORMATIVO ====== */
.upcoming-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.upcoming-modal-header {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    border-bottom: none;
    position: relative;
}

.upcoming-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.upcoming-modal-header .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.upcoming-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.upcoming-modal-body {
    padding: 25px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.upcoming-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.upcoming-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.upcoming-period {
    font-size: 18px;
    font-weight: 600;
    color: #1976d2;
}

.upcoming-time {
    padding: 4px 12px;
    background: #2196f3;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(33, 150, 243, 0.8);
    }
}

.upcoming-description h3,
.upcoming-info h3,
.upcoming-features h3,
.upcoming-legal h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upcoming-description p,
.upcoming-legal p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #374151;
}

.upcoming-description,
.upcoming-info,
.upcoming-features,
.upcoming-legal {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.upcoming-description {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.upcoming-info {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
}

.upcoming-features {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
}

.upcoming-legal {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.upcoming-decree-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid #2196f3;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.upcoming-decree-link:hover {
    background: #2196f3;
    color: white;
    transform: translateY(-1px);
}

.upcoming-modal-actions {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.upcoming-modal-actions .btn-primary {
    min-width: 120px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upcoming-modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ====== MODAL "PLANTÃO FUTURO" INFORMATIVO ====== */
.future-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.future-modal-header {
    background: linear-gradient(135deg, #3f51b5, #303f9f);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    border-bottom: none;
    position: relative;
}

.future-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.future-modal-header .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.future-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.future-modal-body {
    padding: 25px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.future-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.future-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    border-radius: 8px;
    border-left: 4px solid #3f51b5;
}

.future-period {
    font-size: 18px;
    font-weight: 600;
    color: #303f9f;
}

.future-time {
    padding: 4px 12px;
    background: #3f51b5;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-indigo 2s infinite;
}

@keyframes pulse-indigo {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(63, 81, 181, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(63, 81, 181, 0.8);
    }
}

.future-description h3,
.future-info h3,
.future-features h3,
.future-legal h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #303f9f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.future-description p,
.future-legal p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #374151;
}

.future-description,
.future-info,
.future-features,
.future-legal {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.future-description {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}

.future-info {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
}

.future-features {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
}

.future-legal {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.future-decree-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #303f9f;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid #3f51b5;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.future-decree-link:hover {
    background: #3f51b5;
    color: white;
    transform: translateY(-1px);
}

.future-modal-actions {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.future-modal-actions .btn-primary {
    min-width: 120px;
    background: linear-gradient(135deg, #3f51b5, #303f9f);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.future-modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #303f9f, #283593);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

/* ====== MODAL "PLANTÃO ENCERRADO" INFORMATIVO ====== */
.past-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.past-modal-header {
    background: linear-gradient(135deg, #757575, #616161);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    border-bottom: none;
    position: relative;
}

.past-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.past-modal-header .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.past-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.past-modal-body {
    padding: 25px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.past-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.past-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    border-radius: 8px;
    border-left: 4px solid #757575;
}

.past-period {
    font-size: 18px;
    font-weight: 600;
    color: #616161;
}

.past-time {
    padding: 4px 12px;
    background: #757575;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.past-description h3,
.past-info h3,
.past-features h3,
.past-current h3,
.past-legal h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #616161;
    display: flex;
    align-items: center;
    gap: 8px;
}

.past-description p,
.past-current p,
.past-legal p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #374151;
}

.past-description,
.past-info,
.past-features,
.past-current,
.past-legal {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.past-description {
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
}

.past-info {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
}

.past-features {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
}

.past-current {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    border-left: 4px solid #d32f2f;
}

.past-legal {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.current-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.current-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.past-decree-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #616161;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid #757575;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.past-decree-link:hover {
    background: #757575;
    color: white;
    transform: translateY(-1px);
}

.past-modal-actions {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.past-modal-actions .btn-primary {
    min-width: 120px;
    background: linear-gradient(135deg, #757575, #616161);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.past-modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #616161, #424242);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 117, 117, 0.3);
}

/* Responsivo para modal ENCERRADO */
@media (max-width: 768px) {
    .past-modal-content {
        max-width: 95vw;
        margin: 10px;
        max-height: 85vh;
    }
    
    .past-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .past-info-section {
        gap: 20px;
    }
    
    .past-modal-actions {
        flex-direction: column;
    }
    
    .past-modal-actions button {
        width: 100%;
    }
    
    .current-options {
        align-items: stretch;
    }
}

/* Responsivo para modais PRÓXIMO e FUTURO */
@media (max-width: 768px) {
    .upcoming-modal-content,
    .future-modal-content {
        max-width: 95vw;
        margin: 10px;
        max-height: 85vh;
    }
    
    .upcoming-status,
    .future-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .upcoming-info-section,
    .future-info-section {
        gap: 20px;
    }
    
    .upcoming-modal-actions,
    .future-modal-actions {
        flex-direction: column;
    }
    
    .upcoming-modal-actions button,
    .future-modal-actions button {
        width: 100%;
    }
}

/* Responsivo para modal "Plantão Atual" */
@media (max-width: 768px) {
    .current-modal-content {
        max-width: 95vw;
        margin: 10px;
        max-height: 85vh;
    }
    
    .current-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .current-info-section {
        gap: 20px;
    }
    
    .current-modal-actions {
        flex-direction: column;
    }
    
    .current-modal-actions button {
        width: 100%;
    }
    
    /* Correção para period-header em mobile */
    .period-header,
    .search-result .period-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .period-header h3,
    .search-result .period-header h3 {
        width: 100%;
        text-align: left;
    }
    
    .period-header .badge,
    .search-result .period-header .badge {
        align-self: flex-end;
    }
}

/* Responsivo para modal ATIVO */
@media (max-width: 768px) {
    .active-modal-content {
        max-width: 95vw;
        margin: 10px;
        max-height: 85vh;
    }
    
    .active-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .active-info-section {
        gap: 20px;
    }
    
    .active-modal-actions {
        flex-direction: column;
    }
    
    .active-modal-actions button {
        width: 100%;
    }
    
    .info-item {
        gap: 10px;
        padding: 6px 0;
    }
    
    .info-item:hover {
        padding: 6px 8px;
        margin: 0 -8px;
    }
    
    .info-text {
        font-size: 13px;
    }
    
    .emergency-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Hover effects para interatividade */
.btn-highlight:hover .btn-emergency-icon {
    animation: emergency-flash 0.6s infinite;
}

.btn-highlight:hover {
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.7) !important;
    border-color: rgba(255, 0, 0, 0.8) !important;
    transform: translateY(-2px);
}


@keyframes emergency-flash {
    0%, 100% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.6));
    }
    25% { 
        transform: scale(1.25);
        filter: drop-shadow(0 0 18px rgba(255, 0, 0, 1));
    }
    50% { 
        transform: scale(1.3);
        filter: drop-shadow(0 0 22px rgba(255, 50, 50, 1));
    }
    75% { 
        transform: scale(1.25);
        filter: drop-shadow(0 0 18px rgba(255, 0, 0, 1));
    }
}

/* Variante mais sutil para dispositivos que preferem movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .emergency-icon,
    .btn-emergency-icon {
        animation: emergency-gentle 3s infinite ease-in-out;
    }
    
    .btn-highlight:has(.btn-emergency-icon) {
        animation: gentle-glow 4s infinite ease-in-out;
    }
    
    @keyframes emergency-gentle {
        0%, 100% { 
            opacity: 0.8;
            filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.3));
        }
        50% { 
            opacity: 1;
            filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.6));
        }
    }
    
    @keyframes gentle-glow {
        0%, 100% { 
            box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
        }
        50% { 
            box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
        }
    }
}

/* 📱 Floating Scroll Indicator (Mobile Only) */
.scroll-indicator {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(156, 39, 176, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: none; /* Hidden by default, shown by JS */
}

.scroll-indicator.visible {
    display: block !important;
    animation: float-indicator 2s ease-in-out infinite;
}

.scroll-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.scroll-arrow {
    font-size: 18px;
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

.scroll-text {
    white-space: nowrap;
}

#remainingCount {
    font-weight: 700;
    color: #fff3cd;
}

/* Animações */
@keyframes float-indicator {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px);
        box-shadow: 0 4px 20px rgba(156, 39, 176, 0.4);
    }
    50% { 
        transform: translateX(-50%) translateY(-5px);
        box-shadow: 0 8px 25px rgba(156, 39, 176, 0.6);
    }
}

@keyframes bounce-arrow {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(3px);
    }
}

/* Mobile Only - Hide on Desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Ensure mobile visibility overrides */
@media (max-width: 768px) {
    .scroll-indicator.visible.mobile-only {
        display: block !important;
    }
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 80px;
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .scroll-arrow {
        font-size: 16px;
    }
    
    /* Position relative container */
    .current-section {
        position: relative;
        overflow: visible;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator {
        animation: none;
    }
    
    .scroll-arrow {
        animation: gentle-pulse 3s ease-in-out infinite;
    }
    
    @keyframes gentle-pulse {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 1; }
    }
}

/* Badge Beta no título */
.beta-badge {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    margin-left: 12px;
    vertical-align: top;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    display: inline-block;
    animation: subtle-pulse 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beta-badge:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
    animation-play-state: paused;
    transform-origin: center center;
}

@keyframes subtle-pulse {
    0%, 100% { 
        opacity: 0.9;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Versão no footer */
.version-info {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ======================================== */
/* Sistema de Tooltips Simples e Robusto */
/* ======================================== */

/* Reset básico para tooltips */
[data-tooltip] {
    position: relative !important;
    overflow: visible !important;
}

/* Tooltip básico - apenas o balão */
[data-tooltip]:hover::before {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    background: #2c2c2c !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    z-index: 99999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    /* Posicionamento padrão - acima */
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Tooltip abaixo para elementos específicos */
.beta-badge[data-tooltip]:hover::before {
    top: calc(100% + 8px) !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: normal !important;
    max-width: 160px !important;
    text-align: center !important;
    font-size: 11px !important;
}

/* Tooltip à direita para botão "Mais Próxima" */
.btn-location[data-tooltip]:hover::before {
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
    transform: none;
    white-space: normal;
    max-width: 180px;
    text-align: center;
}

/* Tooltip à esquerda para botão SAMU */
.samu-button-fixed[data-tooltip]:hover::before {
    right: calc(100% + 8px);
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    white-space: normal;
    max-width: 140px;
    text-align: center;
}

/* Desabilitar em dispositivos touch */
@media (hover: none) {
    [data-tooltip]:hover::before {
        display: none;
    }
}

/* IMPORTANTE: Garantir que badges nunca sejam afetados por tooltips */
.badge,
.search-result .badge,
.period-header .badge {
    display: inline-block !important;
}

/* Sobrescrever qualquer tooltip que possa afetar badges */
.badge::before,
.badge:hover::before,
.search-result .badge::before,
.search-result .badge:hover::before {
    display: none !important;
}

/* Título "Plantão Atual" clicável */
.current-title-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.current-title-clickable:hover {
    background-color: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    transform: scale(1.02);
}

/* ====== MODAL BETA INFORMATIVO ====== */
.beta-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.beta-modal-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    border-bottom: none;
    position: relative;
}

.beta-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.beta-modal-header .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.beta-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.beta-modal-header .modal-close:active {
    transform: scale(0.95);
}

.beta-modal-body {
    padding: 25px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.beta-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.beta-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.beta-version {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b35;
}

.beta-build {
    font-size: 14px;
    color: #666;
}

.beta-description,
.beta-features,
.beta-legal {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.beta-description {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
}

.beta-features {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
}

.beta-legal {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.beta-info-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.beta-info-section p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #555;
}

.beta-info-section ul {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
}

.beta-info-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.5;
}

/* Layout de funcionalidades com status */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 -12px;
}

.status-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.status-icon.active {
    animation: checkmark-pulse 2s infinite;
}

.feature-text {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

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


.beta-decree-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.beta-decree-link:hover {
    background: #f7931e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.beta-modal-actions {
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.beta-modal-actions .btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 12px 20px;
    font-weight: 500;
}

.beta-modal-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    color: white;
}

.beta-modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
}

.beta-modal-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
}

/* Responsivo para Modal BETA */
@media (max-width: 768px) {
    .beta-modal-content {
        max-width: 95vw;
        margin: 10px;
        max-height: 85vh;
    }
    
    .beta-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .beta-info-section {
        gap: 20px;
    }
    
    .beta-modal-actions {
        flex-direction: column;
    }
    
    .beta-modal-actions button {
        width: 100%;
    }
    
    /* Ajustes para lista de funcionalidades no mobile */
    .feature-item {
        gap: 10px;
        padding: 6px 0;
    }
    
    .feature-item:hover {
        padding: 6px 8px;
        margin: 0 -8px;
    }
    
    .status-icon {
        font-size: 14px;
        min-width: 18px;
    }
    
    .feature-text {
        font-size: 13px;
    }
}

/* ====== ESTILOS PARA MODAL AVANÇADO DE LOCALIZAÇÃO ====== */
.location-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.location-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.option-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.option-text {
    flex: 1;
}

.option-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-text small {
    color: var(--text-secondary);
    font-size: 12px;
}

.location-option-group {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.option-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.reference-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.reference-select optgroup {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: bold;
}

.reference-select option {
    padding: 5px;
    background: var(--bg-secondary);
}

.custom-origin-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
}

.custom-origin-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.accuracy-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-cancel {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-simple-map {
    padding: 10px 20px;
    background: var(--secondary-color);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-simple-map:hover {
    background: #5a6c7d;
    transform: translateY(-1px);
}

/* Responsivo para modal avançado */
@media (max-width: 768px) {
    .location-option {
        padding: 12px;
        gap: 10px;
    }
    
    .option-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .option-text strong {
        font-size: 14px;
    }
    
    .option-text small {
        font-size: 11px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* ====== MODAL FEEDBACK ====== */
.feedback-modal-content {
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.feedback-modal-header {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    border-bottom: none;
    position: relative;
}

.feedback-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.feedback-modal-header .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.feedback-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.feedback-modal-body {
    padding: 30px;
    color: #333;
    line-height: 1.6;
}

.feedback-info-section {
    text-align: center;
}

.feedback-description {
    margin-bottom: 25px;
}

.feedback-description h3 {
    color: #2196f3;
    margin-bottom: 15px;
    font-size: 20px;
}

.feedback-description p {
    margin-bottom: 10px;
    color: #555;
}

.feedback-form {
    text-align: left;
    margin-bottom: 25px;
}

.feedback-categories {
    margin-bottom: 20px;
}

.feedback-categories h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.category-btn:hover {
    border-color: #2196f3;
    background: #f3f9ff;
    transform: translateY(-2px);
}

.category-btn.selected {
    border-color: #2196f3;
    background: #2196f3;
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.feedback-inputs {
    margin-top: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.input-group textarea,
.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.input-group textarea:focus,
.input-group input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input-group textarea {
    min-height: 100px;
}

.feedback-privacy {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    text-align: left;
}

.feedback-privacy h4 {
    color: #2196f3;
    margin-bottom: 10px;
    font-size: 14px;
}

.feedback-privacy p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.feedback-modal-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-radius: 0 0 10px 10px;
}

.feedback-modal-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.feedback-modal-actions .btn-primary {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.feedback-modal-actions .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.feedback-modal-actions .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.feedback-modal-actions .btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.feedback-modal-actions .btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Link de Feedback no Footer */
.feedback-link {
    color: #2196f3;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.feedback-link:hover {
    color: #1976d2;
    text-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

/* Responsivo para Mobile */
@media (max-width: 768px) {
    .feedback-modal-content {
        max-width: 95vw;
        margin: 20px auto;
        max-height: 90vh;
    }
    
    .category-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .category-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .feedback-modal-actions {
        flex-direction: column;
    }
    
    .feedback-modal-actions button {
        width: 100%;
    }
}

/* ====== MODAL FEEDBACK SUCESSO ====== */
.feedback-success-modal-content {
    max-width: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    animation: modalSuccessEntrance 0.4s ease-out;
}

@keyframes modalSuccessEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-success-modal-header {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    text-align: center;
    border-bottom: none;
}

.feedback-success-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.feedback-success-modal-body {
    padding: 30px;
    text-align: center;
}

.feedback-success-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feedback-success-info h3 {
    color: #4caf50;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.success-instruction {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    margin: 0;
    color: #2e7d32;
    font-size: 15px;
    line-height: 1.5;
}

.success-instruction .highlight {
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.success-message {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    margin: 0;
}

.success-message p {
    margin: 0;
    color: #ef6c00;
    font-size: 15px;
}

.success-note {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 6px;
    margin: 0;
}

.success-note p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.feedback-success-modal-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    border-radius: 0 0 10px 10px;
}

.feedback-success-modal-actions .btn-success {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.feedback-success-modal-actions .btn-success:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.feedback-success-modal-actions .btn-success:active {
    transform: translateY(0);
}

/* Responsivo para Mobile */
@media (max-width: 768px) {
    .feedback-success-modal-content {
        max-width: 90vw;
        margin: 40px auto;
    }
    
    .success-icon {
        font-size: 40px;
    }
    
    .feedback-success-info h3 {
        font-size: 18px;
    }
    
    .success-instruction,
    .success-message {
        font-size: 14px;
        padding: 12px;
    }
    
    .feedback-success-modal-actions .btn-success {
        width: 100%;
        max-width: 200px;
    }
}


