/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.header nav {
    display: flex;
    gap: 10px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

/* Hero section */
.hero {
    background: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.hero p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Formulários */
form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 2rem auto;
}

form h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

button {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #229954;
}

/* Surveys grid */
.recent-surveys {
    margin: 3rem 0;
}

.recent-surveys h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.surveys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.survey-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.survey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.survey-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.survey-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Listas */
ul {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 2rem auto;
    list-style: none;
}

li {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

li:last-child {
    border-bottom: none;
}

/* Resultados */
.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #7f8c8d;
    font-weight: bold;
}

/* Mensagens */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .surveys-grid {
        grid-template-columns: 1fr;
    }
    
    li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== ESTILOS DA PESQUISA APRIMORADOS ===== */

/* Escala NPS organizada */
.survey-nps-scale {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #28a745;
}

.survey-nps-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 0.3rem;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f8f9fa;
}

.survey-nps-option:hover {
    background: #e8f5e8;
    border-color: #28a745;
    transform: translateY(-1px);
}

.survey-nps-option.selected {
    background: #28a745;
    color: white;
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.survey-nps-labels {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

/* Opções de rating organizadas */
.survey-rating-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.survey-rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: #f8f9fa;
}

.survey-rating-option:hover {
    border-color: #007bff;
    background: #e3f2fd;
    transform: translateY(-1px);
}

.survey-rating-option.selected {
    border-color: #007bff;
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.survey-rating-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

/* Animações da barra de progresso */
.survey-progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 10px;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.survey-progress-fill {
    background: linear-gradient(90deg, #007bff, #28a745);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
    position: relative;
}

.survey-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: survey-progress-move 2s linear infinite;
}

@keyframes survey-progress-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Responsividade para formulários de pesquisa */
@media (max-width: 768px) {
    .survey-nps-scale {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.3rem;
        padding: 0.8rem;
    }
    
    .survey-nps-option {
        padding: 0.5rem 0.2rem;
    }
    
    .survey-rating-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .survey-rating-option {
        flex-direction: row;
        padding: 0.8rem;
        justify-content: flex-start;
    }
    
    .survey-rating-emoji {
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
    
    .survey-nps-labels {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .survey-nps-scale {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== FIM ESTILOS DA PESQUISA ===== */