* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;


}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    overflow-x: hidden;


}

.admin-link {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857, #065f46) !important;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    /* background: white; */
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 40px;
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}



.nav-links img {
    width: 20px;
    height: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #059669 0%, #14b8a6 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* barra-busca */
.barra-busca {
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 700px;
}

.barra-busca input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    outline: none;
    color: #1f2937;
}

.barra-busca button {
    background: #059669;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.barra-busca button:hover {
    background: #047857;
}

/* Emergency Alert */
.emergency-alerta {
    background: #fef2f2;
    border: 3px solid #dc2626;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.emergency-icon {
    color: #dc2626;
    font-size: 2.5rem;
}


.emergency-icon img {
    width: 50px;
}

.emergency-alerta h3 {
    color: #7f1d1d;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.emergency-alerta p {
    color: #991b1b;
}

.emergency-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.emergency-btn:hover {
    background: #b91c1c;
}

/* Cards de acesso rapido */
.acesso-rapido {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
    cursor: pointer;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-blue {
    background: #eff6ff;
    border-color: #93c5fd;
}

.card-emerald {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.card-purple {
    background: #f3e8ff;
    border-color: #c084fc;
}

.card-red {
    background: #fee2e2;
    border-color: #fca5a5;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-icon img {
    width: 50px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-count {
    font-size: 2rem;
    font-weight: bold;
}

/* Info Section */
.info-section {
    background: #dbeafe;
    padding: 2rem;
    border-radius: 16px;
}

.info-section h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.info-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card p {
    color: #1e3a8a;
    font-weight: 600;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {

    .hero h2 {
        font-size: 1.8rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    main {
        padding: 1rem;
    }

    .emergency-alerta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .barra-busca {
        flex-direction: column;
    }

    .barra-busca button {
        width: 100%;
    }
}

/* ==================== ESTILOS PARA AVALIAÇÕES ==================== */

.avaliacoes-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Cabeçalho das avaliações */
.avaliacoes-header {
    text-align: center;
    margin-bottom: 30px;
}

.avaliacoes-header h3 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Cards de estatísticas */
.avaliacoes-stats {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 20px;
    padding: 25px;
    color: white;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.stats-card {
    text-align: center;
}

.stats-nota {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.stars-display {
    font-size: 24px;
    margin: 10px 0;
    letter-spacing: 4px;
}

.stats-total {
    font-size: 14px;
    opacity: 0.9;
}

/* Formulário de avaliação */
.avaliacoes-form {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.avaliacoes-form h4 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.avaliacoes-form .form-group {
    margin-bottom: 20px;
}

.avaliacoes-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.avaliacoes-form input,
.avaliacoes-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.avaliacoes-form input:focus,
.avaliacoes-form textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.avaliacoes-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estrelas de input */
.estrelas-input {
    display: flex;
    gap: 8px;
    font-size: 32px;
}

.estrela-input {
    cursor: pointer;
    transition: transform 0.2s;
    color: #d1d5db;
}

.estrela-input:hover {
    transform: scale(1.15);
}

/* Botão enviar */
.btn-enviar-avaliacao {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-enviar-avaliacao:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

/* Lista de avaliações */
.avaliacoes-lista {
    margin-top: 10px;
}

.avaliacoes-lista h4 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/* Item de avaliação */
.avaliacao-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.avaliacao-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.avaliacao-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.avaliacao-nome {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.avaliacao-nome strong {
    color: #1f2937;
    font-size: 16px;
}

.avaliacao-data {
    font-size: 12px;
    color: #9ca3af;
}

.avaliacao-estrelas {
    font-size: 16px;
    letter-spacing: 2px;
}

.avaliacao-comentario {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Resposta do admin */
.avaliacao-resposta {
    margin-top: 15px;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 12px;
    border-left: 4px solid #059669;
}

.resposta-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #047857;
}

.resposta-header strong {
    font-weight: 600;
}

.resposta-data {
    font-size: 11px;
    color: #6b7280;
}

.resposta-texto {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

/* Estado vazio */
.nenhuma-avaliacao {
    text-align: center;
    padding: 50px 20px;
    background: #f9fafb;
    border-radius: 16px;
    color: #6b7280;
}

.nenhuma-avaliacao p {
    font-size: 16px;
    margin-top: 10px;
}

/* Loading e erro */
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 40px;
    color: #ef4444;
    background: #fef2f2;
    border-radius: 16px;
}

/* Responsivo */
@media (max-width: 768px) {
    .avaliacoes-container {
        padding: 15px;
    }
    
    .avaliacoes-stats {
        padding: 20px;
    }
    
    .stats-nota {
        font-size: 36px;
    }
    
    .stars-display {
        font-size: 18px;
    }
    
    .avaliacao-header {
        flex-direction: column;
    }
    
    .estrelas-input {
        font-size: 28px;
    }
    
    .avaliacoes-form {
        padding: 20px;
    }
}

/* ==================== DARK MODE ==================== */

/* Botão Dark Mode */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #7c3aed;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 999;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
    background: #6d28d9;
}

/* Dark Mode - Corpo */
.dark-mode {
    background-color: #1a1a2e !important;
    color: #e2e8f0 !important;
}

.dark-mode nav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.dark-mode .nav-links a {
    color: #e2e8f0 !important;
}

.dark-mode .nav-links a:hover,
.dark-mode .nav-links a.active {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Cards */
.dark-mode .card,
.dark-mode .info-card,
.dark-mode .hero {
    background: #0d1117 !important;
    border-color: #30363d !important;
    color: #e2e8f0 !important;
}

.dark-mode .card h3,
.dark-mode .info-card p {
    color: #e2e8f0 !important;
}

.dark-mode .card p {
    color: #9ca3af !important;
}

/* Barra de busca */
.dark-mode .barra-busca {
    background: #0d1117 !important;
    border-color: #30363d !important;
}

.dark-mode .barra-busca input {
    background: #0d1117 !important;
    color: #e2e8f0 !important;
}

.dark-mode .barra-busca input::placeholder {
    color: #6b7280 !important;
}

.dark-mode .barra-busca button {
    background: #7c3aed !important;
}

/* Emergency Alert */
.dark-mode .emergency-alerta {
    background: linear-gradient(135deg, #7f1a1a 0%, #991b1b 100%) !important;
}

/* Info Section */
.dark-mode .info-section {
    background: #0d1117 !important;
}

.dark-mode .info-section h3 {
    color: #e2e8f0 !important;
}

/* Footer */
.dark-mode footer {
    background: #0a0a0f !important;
}

.dark-mode footer p {
    color: #9ca3af !important;
}

.dark-mode .footer-subtitle {
    color: #6b7280 !important;
}

/* Animações */
.avaliacao-item {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estrelas no hover */
.estrela-input {
    transition: all 0.2s;
}

.estrela-input:hover ~ .estrela-input {
    color: #d1d5db !important;
}

/* Tooltip para estrelas */
.estrela-input {
    position: relative;
}

.estrela-input:hover::after {
    content: attr(data-nota);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 5px;
}
