/* Complete Fitness Calculator Styles - Version 2.0 */
.cfc-container {
    max-width: 800px;
    margin: 15px auto;
    background: #f9f7f1;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cfc-header {
    background: linear-gradient(135deg, #009999 0%, #157b7d 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.cfc-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.cfc-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cfc-form {
    padding: 40px;
}

.cfc-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cfc-form-group {
    flex: 1;
    min-width: 250px;
}

.cfc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

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

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

.cfc-calculate-btn {
    background: linear-gradient(135deg, #009999 0%, #157b7d 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.cfc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cfc-calculate-btn:active {
    transform: translateY(0);
}

.cfc-calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.cfc-results {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.cfc-results-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
}

.cfc-result-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.cfc-result-item:hover {
    transform: translateY(-2px);
}

.cfc-result-item h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.cfc-result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.cfc-result-category {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* Warning Alert Styles */
.cfc-warning-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.cfc-warning-alert h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.cfc-warning-alert p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Goal Selection Section */
.cfc-goals-section {
    padding: 40px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.cfc-goals-header {
    text-align: center;
    margin-bottom: 40px;
}

.cfc-goals-header h3 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cfc-goals-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.cfc-goals-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cfc-goal-option {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cfc-goal-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cfc-goal-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cfc-goal-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.cfc-goal-option.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cfc-goal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.cfc-goal-option h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.cfc-goal-option p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Goal Warning */
.cfc-goal-warning {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.cfc-goal-warning p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Revised Targets Section */
.cfc-revised-targets {
    padding: 40px;
    background: #f0f8ff;
    border-top: 1px solid #e1e5e9;
}

.cfc-targets-title {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.cfc-selected-goal {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.cfc-selected-goal h4 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.cfc-targets-comparison {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.cfc-target-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cfc-target-item h4 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.cfc-target-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.cfc-before, .cfc-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 120px;
}

.cfc-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.cfc-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.cfc-highlight {
    color: #667eea !important;
}

.cfc-arrow {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    margin: 0 10px;
}

.cfc-change {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.cfc-change.positive {
    background: #d4edda;
    color: #155724;
}

.cfc-change.negative {
    background: #f8d7da;
    color: #721c24;
}

.cfc-change.neutral {
    background: #e2e3e5;
    color: #383d41;
}

.cfc-goal-explanation {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #28a745;
}

.cfc-goal-explanation h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.cfc-goal-explanation div {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Loading Styles */
.cfc-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.cfc-loading p {
    font-size: 1.1rem;
    margin: 0;
}

/* Spinner */
.cfc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cfc-form-row {
        flex-direction: column;
    }

    .cfc-form-group {
        min-width: 100%;
    }

    .cfc-header {
        padding: 20px;
    }

    .cfc-header h2 {
        font-size: 1.8rem;
    }

    .cfc-form {
        padding: 20px;
    }

    .cfc-results {
        padding: 20px;
    }

    .cfc-goals-section {
        padding: 20px;
    }

    .cfc-revised-targets {
        padding: 20px;
    }

    .cfc-goals-container {
        grid-template-columns: 1fr;
    }

    .cfc-target-comparison {
        flex-direction: column;
        text-align: center;
    }

    .cfc-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .cfc-result-item {
        padding: 20px;
    }

    .cfc-result-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .cfc-container {
        margin: 10px;
    }

    .cfc-header h2 {
        font-size: 1.5rem;
    }

    .cfc-header p {
        font-size: 1rem;
    }

    .cfc-form {
        padding: 15px;
    }

    .cfc-results {
        padding: 15px;
    }

    .cfc-goals-section {
        padding: 15px;
    }

    .cfc-revised-targets {
        padding: 15px;
    }

    .cfc-result-item {
        padding: 15px;
    }

    .cfc-goal-option {
        padding: 20px 15px;
    }
}

/* Animation for showing sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cfc-results.show,
.cfc-goals-section.show,
.cfc-revised-targets.show {
    animation: fadeInUp 0.5s ease;
}

/* Error states */
.cfc-form-group input.error,
.cfc-form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.cfc-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
}

/* Success states */
.cfc-success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
}