/*
 * Arquivo: equilibria/assets/dashboard-avaliacoes.css
 * Estilos para o dashboard de avaliações dos participantes
 */

:root {
    --eq-primary: #ff8c00;
    --eq-primary-dark: #e67c00;
    --eq-success: #28a745;
    --eq-info: #17a2b8;
    --eq-warning: #ffc107;
    --eq-light: #f8f9fa;
    --eq-dark: #343a40;
    --eq-border: #dee2e6;
    --eq-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --eq-radius: 8px;
}

.eq-dashboard-avaliacoes {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--eq-dark);
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.eq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.eq-header-avaliacoes {
    background: white;
    box-shadow: var(--eq-shadow);
    margin-bottom: 30px;
    text-align: center;
    padding: 40px 20px;
}

.eq-header-avaliacoes h1 {
    color: var(--eq-primary);
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.eq-header-avaliacoes h2 {
    color: var(--eq-dark);
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.eq-tipo-programa {
    background: var(--eq-light);
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

/* Alertas */
.eq-alert {
    padding: 15px 20px;
    border-radius: var(--eq-radius);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.eq-alert-info {
    background: #e8f4fd;
    border-color: var(--eq-info);
    color: #0c5460;
}

/* Progresso Geral */
.eq-progresso-geral {
    background: white;
    padding: 30px;
    border-radius: var(--eq-radius);
    box-shadow: var(--eq-shadow);
    margin-bottom: 30px;
    text-align: center;
}

.eq-progresso-geral h3 {
    margin: 0 0 25px 0;
    color: var(--eq-dark);
    font-size: 22px;
}

.eq-progresso-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
}

.eq-stat {
    text-align: center;
}

.eq-stat-numero {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--eq-primary);
    line-height: 1;
}

.eq-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.eq-progresso-bar {
    width: 100%;
    height: 16px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.eq-progresso-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--eq-primary) 0%, var(--eq-success) 100%);
    border-radius: 8px;
    transition: width 0.8s ease;
    position: relative;
}

.eq-progresso-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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%);
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 0 0; }
    to { background-position: 20px 0; }
}

/* Lista de Avaliações */
.eq-avaliacoes-lista {
    margin-bottom: 40px;
}

.eq-avaliacoes-lista h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.eq-avaliacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.eq-avaliacao-card {
    background: white;
    border-radius: var(--eq-radius);
    padding: 25px;
    box-shadow: var(--eq-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.eq-avaliacao-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--eq-border);
}

.eq-avaliacao-card.concluida::before {
    background: var(--eq-success);
}

.eq-avaliacao-card.pendente::before {
    background: var(--eq-warning);
}

.eq-avaliacao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.eq-avaliacao-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.eq-status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.eq-status-icon.eq-concluida {
    background: var(--eq-success);
    color: white;
}

.eq-status-icon.eq-pendente {
    background: var(--eq-warning);
    color: white;
}

.eq-status-texto {
    font-size: 14px;
    font-weight: 600;
}

.eq-avaliacao-card.concluida .eq-status-texto {
    color: var(--eq-success);
}

.eq-avaliacao-card.pendente .eq-status-texto {
    color: #856404;
}

.eq-avaliacao-nome {
    font-size: 18px;
    font-weight: 600;
    color: var(--eq-dark);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.eq-avaliacao-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.eq-avaliacao-acoes {
    margin-top: auto;
}

.eq-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--eq-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

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

.eq-btn-primary:hover {
    background: var(--eq-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.eq-btn-secondary {
    background: #6c757d;
    color: white;
}

.eq-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Estado vazio */
.eq-empty-state {
    background: white;
    padding: 40px;
    border-radius: var(--eq-radius);
    text-align: center;
    box-shadow: var(--eq-shadow);
}

.eq-empty-state h4 {
    color: #666;
    margin-bottom: 10px;
}

.eq-empty-state p {
    color: #999;
    margin: 0;
}

/* Newsletter */
.eq-newsletter-section {
    background: white;
    padding: 30px;
    border-radius: var(--eq-radius);
    box-shadow: var(--eq-shadow);
    margin-bottom: 30px;
    border-left: 4px solid var(--eq-info);
}

.eq-newsletter-section h3 {
    color: var(--eq-dark);
    margin: 0 0 15px 0;
    font-size: 20px;
}

.eq-newsletter-section p {
    color: #666;
    margin-bottom: 20px;
}

.eq-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eq-form-group {
    display: flex;
    flex-direction: column;
}

.eq-newsletter-form input[type="text"],
.eq-newsletter-form input[type="email"],
.eq-newsletter-form input[type="tel"] {
    padding: 12px 15px;
    border: 1px solid var(--eq-border);
    border-radius: var(--eq-radius);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.eq-newsletter-form input:focus {
    outline: none;
    border-color: var(--eq-primary);
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.1);
}

.eq-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.eq-checkbox input[type="checkbox"] {
    margin: 0;
    accent-color: var(--eq-primary);
}

/* Footer */
.eq-footer-avaliacoes {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--eq-radius);
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
}

.eq-footer-avaliacoes p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.eq-footer-avaliacoes a {
    color: white;
    text-decoration: underline;
}

.eq-footer-avaliacoes a:hover {
    text-decoration: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .eq-container {
        padding: 15px;
    }
    
    .eq-header-avaliacoes {
        padding: 30px 15px;
    }
    
    .eq-header-avaliacoes h1 {
        font-size: 28px;
    }
    
    .eq-progresso-stats {
        gap: 25px;
    }
    
    .eq-stat-numero {
        font-size: 30px;
    }
    
    .eq-avaliacoes-grid {
        grid-template-columns: 1fr;
    }
    
    .eq-avaliacao-card {
        padding: 20px;
    }
    
    .eq-avaliacao-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .eq-newsletter-form {
        gap: 12px;
    }
    
    .eq-progresso-geral,
    .eq-newsletter-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .eq-progresso-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .eq-header-avaliacoes h1 {
        font-size: 24px;
    }
    
    .eq-avaliacoes-lista h3 {
        font-size: 20px;
    }
    
    .eq-avaliacao-card {
        padding: 15px;
    }
    
    .eq-progresso-geral,
    .eq-newsletter-section {
        padding: 20px;
    }
}

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

.eq-avaliacao-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Loading states */
.eq-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.eq-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 140, 0, 0.3);
    border-top: 3px solid var(--eq-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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