/**
 * Estilos públicos da calculadora
 *
 * @package TreinoCalculator
 */

.treino-calculator-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.treino-calculator-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.treino-calculator-container h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

/* Formulário */
.treino-form {
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .treino-calculator-container {
        padding: 20px;
    }
}

/* Botão de calcular */
.btn-calcular {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-calcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-calcular:active {
    transform: translateY(0);
}

.btn-calcular:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Resultados */
.resultados-container {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resultado-secao {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #4CAF50;
}

.resultado-secao h3 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
}

/* 1RM Display */
.rm-secao {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    text-align: center;
}

.rm-secao h3 {
    color: white;
}

.rm-valor {
    font-size: 56px;
    font-weight: 900;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.rm-descricao {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Cards de Percentuais */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.percentual-card {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.percentual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.percentual-card h4 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    font-size: 18px;
}

.percentual-card .peso-range {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0;
}

.percentual-card .info-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.percentual-card .info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 600;
    color: #333;
}

/* Zonas de FC */
.zonas-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zona-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 5px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.zona-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.zona-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.zona-nome {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.zona-bpm {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
}

.zona-percentual {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.zona-descricao {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Progressão */
.progressao-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.progressao-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.progressao-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.progressao-semana {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.progressao-rm {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    margin: 5px 0;
}

.progressao-ganho {
    font-size: 11px;
    color: #2196F3;
    font-weight: 600;
}

/* Ações */
.acoes-container {
    margin-top: 30px;
    text-align: center;
}

.btn-imprimir {
    padding: 12px 30px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-imprimir:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* Print styles */
@media print {
    .treino-calculator-container {
        box-shadow: none;
    }
    
    .treino-form,
    .btn-imprimir,
    .acoes-container {
        display: none !important;
    }
    
    .resultados-container {
        display: block !important;
    }
}

/* Loading state */
.btn-loading {
    display: inline-block;
}

.btn-loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error messages */
.treino-error {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    border-radius: 4px;
    margin: 15px 0;
}

/* Success messages */
.treino-success {
    padding: 15px;
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
    margin: 15px 0;
}