/* Gestão de Riscos - Estilo Visual Harmônico com Caixas Coloridas */

.gestao-riscos-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Header com visual limpo */
.gestao-riscos-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    position: relative;
}

.gestao-riscos-header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gestao-riscos-header .subtitle {
    margin: 10px 0 0 0;
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

.gestao-riscos-header .author {
    margin: 15px 0 0 0;
    font-size: 0.95em;
    opacity: 0.8;
}

/* Botões do topo com estilo harmônico */
.top-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.top-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.btn-compartilhar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-pdf {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.btn-imprimir {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.btn-modo-noturno {
    background: linear-gradient(135deg, #434343, #000000);
    color: white;
}

.top-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Seções com ícones coloridos */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 20px 0;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 5px solid;
}

.section-header.info-basicas {
    border-left-color: #4CAF50;
}

.section-header.variaveis-risco {
    border-left-color: #FF9800;
}

.section-header.resultados {
    border-left-color: #2196F3;
}

.section-header h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.section-header .icon {
    font-size: 1.8em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Campos de formulário com visual harmônico */
.form-group {
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.form-group:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.form-group label .icon {
    font-size: 1.3em;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Ícones específicos por variável */
.icon-dificuldade { background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important; }
.icon-ambiente { background: linear-gradient(135deg, #4ecdc4, #44a08d) !important; }
.icon-clima { background: linear-gradient(135deg, #feca57, #ff9ff3) !important; }
.icon-resgate { background: linear-gradient(135deg, #ff9ff3, #f368e0) !important; }
.icon-experiencia { background: linear-gradient(135deg, #54a0ff, #2e86de) !important; }
.icon-epoca { background: linear-gradient(135deg, #5f27cd, #341f97) !important; }
.icon-atividade { background: linear-gradient(135deg, #00d2d3, #54a0ff) !important; }
.icon-fisico { background: linear-gradient(135deg, #ff6348, #ff4757) !important; }
.icon-altitude { background: linear-gradient(135deg, #7bed9f, #70a1ff) !important; }

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tooltip informativo */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    position: relative;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Resultados com visual atrativo */
.resultado-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
    text-align: center;
}

.nivel-risco {
    font-size: 2em;
    font-weight: bold;
    margin: 15px 0;
    padding: 20px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nivel-risco.baixo {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.nivel-risco.medio {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.nivel-risco.alto {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.nivel-risco.extremo {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
}

/* Pontuação visual */
.pontuacao-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

/* Sugestões organizadas */
.sugestoes-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.sugestoes-container h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    margin-bottom: 20px;
}

.sugestoes-container h3 .icon {
    font-size: 1.5em;
}

.sugestoes-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sugestoes-lista li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sugestoes-lista li:last-child {
    border-bottom: none;
}

.sugestoes-lista li .icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

/* Checklist visual */
.checklist-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.checklist-periodo {
    margin-bottom: 25px;
}

.checklist-periodo h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.action-buttons button {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.action-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Informações de contato */
.contatos-emergencia {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.contatos-emergencia h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.contato-item .icon {
    font-size: 1.2em;
    color: #e74c3c;
    width: 24px;
    text-align: center;
}

/* Doações */
.doacoes-container {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid #fdcb6e;
}

.doacoes-container h3 {
    margin: 0 0 15px 0;
    color: #2d3436;
}

.pix-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: inline-block;
}

.chave-pix {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    color: #2d3436;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin: 10px 0;
    display: inline-block;
}

.btn-copiar-pix {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

/* Rodapé */
.gestao-riscos-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
    border-top: 3px solid #667eea;
}

.gestao-riscos-footer p {
    margin: 5px 0;
    color: #666;
}

/* Responsividade */
@media (max-width: 768px) {
    .gestao-riscos-container {
        padding: 15px;
        margin: 10px;
    }
    
    .gestao-riscos-header h1 {
        font-size: 1.8em;
    }
    
    .top-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .top-buttons button {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

/* Modo noturno */
.modo-noturno {
    background: #1a1a1a;
    color: #e0e0e0;
}

.modo-noturno .gestao-riscos-container {
    background: #2d2d2d;
}

.modo-noturno .form-group {
    background: #3a3a3a;
}

.modo-noturno .form-group input,
.modo-noturno .form-group select {
    background: #4a4a4a;
    color: #e0e0e0;
    border-color: #555;
}

.modo-noturno .section-header {
    background: #3a3a3a;
    color: #e0e0e0;
}

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

.form-group {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Indicador de progresso */
.progress-indicator {
    background: #f0f0f0;
    height: 6px;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Feedback visual */
.feedback-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.feedback-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feedback-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

