/* Work-Life Balance Calculator Styles */
/* Theme: Indigo/Blue - balanced, professional feel */

.wlb-calculator-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
}

.wlb-calculator-container * {
    box-sizing: border-box;
}

/* Hero Section */
.calculator-hero {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #818cf8 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(67, 56, 202, 0.3);
}

.calculator-hero h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15em;
    opacity: 0.95;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-icon {
    font-weight: bold;
}

/* Introduction Section */
.intro-section {
    background: #eef2ff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #6366f1;
}

.intro-section h2 {
    color: #4338ca;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Dimensions Preview */
.dimensions-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.dimension-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dim-icon {
    font-size: 1.3em;
}

.dim-name {
    font-size: 0.9em;
    font-weight: 500;
    color: #4338ca;
}

/* Privacy Notice */
.privacy-notice {
    background: #e0e7ff;
    border: 1px solid #a5b4fc;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.privacy-icon {
    font-size: 1.5em;
}

.privacy-notice strong {
    color: #3730a3;
    display: block;
}

.privacy-notice p {
    margin: 4px 0 0 0;
    font-size: 0.9em;
    color: #555;
}

/* Form Section */
.calculator-form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.calculator-form-section h2 {
    color: #4338ca;
    margin-top: 0;
    margin-bottom: 10px;
}

.form-instructions {
    color: #666;
    margin-bottom: 25px;
}

/* Dimension Sections */
.dimension-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.dimension-section:last-of-type {
    border-bottom: none;
}

.dimension-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 8px;
}

.dimension-header .dim-icon {
    font-size: 1.5em;
}

.dimension-header h3 {
    margin: 0;
    color: #4338ca;
    font-size: 1.1em;
}

/* Question Groups */
.question-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.question-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.question-number {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85em;
    flex-shrink: 0;
}

.question-text {
    margin: 0;
    font-size: 0.95em;
    color: #333;
    padding-top: 3px;
}

/* Options Row */
.options-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.option-label {
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.option-label input {
    position: absolute;
    opacity: 0;
}

.option-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 6px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
}

.option-value {
    font-weight: 600;
    color: #6366f1;
}

.option-text {
    font-size: 0.7em;
    color: #666;
    display: block;
    line-height: 1.2;
}

.option-label input:checked + .option-circle {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.option-label:hover .option-circle {
    border-color: #818cf8;
}

/* Submit Button */
.form-submit {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 56, 202, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.4);
}

/* Results Section */
.results-section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border-top: 4px solid #6366f1;
}

.results-section h2 {
    text-align: center;
    color: #4338ca;
    margin-top: 0;
    margin-bottom: 25px;
}

/* Overall Score Display */
.overall-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 12px;
    margin-bottom: 25px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: 4px solid #6366f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.score-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #4338ca;
    line-height: 1;
}

.score-max {
    font-size: 0.9em;
    color: #888;
}

.score-label-area {
    text-align: left;
}

.score-label {
    display: block;
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.score-summary {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    max-width: 300px;
}

/* Dimension Scores */
.dimension-scores {
    margin: 25px 0;
}

.dimension-scores h4 {
    color: #333;
    margin-bottom: 15px;
}

.dimension-bars {
    display: grid;
    gap: 15px;
}

.dimension-bar-item {
    padding: 12px 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.bar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bar-icon {
    font-size: 1.2em;
}

.bar-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.bar-score {
    font-weight: 600;
    color: #4338ca;
}

.bar-track {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Dimension-specific bar colors */
[data-dimension="work"] .bar-fill {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

[data-dimension="time"] .bar-fill {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

[data-dimension="relationships"] .bar-fill {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

[data-dimension="wellbeing"] .bar-fill {
    background: linear-gradient(135deg, #10b981, #34d399);
}

[data-dimension="boundaries"] .bar-fill {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* Result Interpretation */
.result-interpretation {
    margin: 25px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.result-interpretation h4 {
    color: #4338ca;
    margin-top: 0;
}

.result-interpretation p {
    margin-bottom: 10px;
}

/* Strengths and Areas */
.strengths-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.strengths-box {
    padding: 20px;
    background: #f0fdf4;
    border-radius: 10px;
    border-left: 4px solid #22c55e;
}

.strengths-box h4 {
    color: #16a34a;
    margin-top: 0;
}

.areas-box {
    padding: 20px;
    background: #fef3c7;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

.areas-box h4 {
    color: #d97706;
    margin-top: 0;
}

.strengths-box ul,
.areas-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.strengths-box li,
.areas-box li {
    margin-bottom: 5px;
}

/* Recommendations */
.recommendations {
    margin: 25px 0;
    padding: 20px;
    background: #eef2ff;
    border-radius: 10px;
}

.recommendations h4 {
    color: #4338ca;
    margin-top: 0;
}

.recommendations ul {
    margin: 10px 0;
    padding-left: 20px;
}

.recommendations li {
    margin-bottom: 8px;
}

/* Score Chart */
.score-chart {
    margin: 25px 0;
}

.score-chart h4 {
    color: #333;
    margin-bottom: 15px;
}

.chart-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 15px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    align-items: center;
    transition: all 0.3s ease;
}

.chart-row.excellent {
    background: #dcfce7;
    border-left: 4px solid #22c55e;
}

.chart-row.good {
    background: #e0e7ff;
    border-left: 4px solid #6366f1;
}

.chart-row.moderate {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.chart-row.poor {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.chart-row.highlight {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chart-range {
    font-weight: 600;
    color: #333;
}

.chart-level {
    font-weight: 500;
}

.chart-desc {
    font-size: 0.9em;
    color: #666;
}

/* Retake Section */
.retake-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.retake-btn {
    background: white;
    color: #4338ca;
    border: 2px solid #4338ca;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.retake-btn:hover {
    background: #4338ca;
    color: white;
}

.retake-section p {
    color: #666;
    font-size: 0.9em;
    margin: 10px 0 0 0;
}

/* Education Section */
.education-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.education-section > h2 {
    color: #4338ca;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Tabs */
.education-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f3f4f6;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #e5e7eb;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #4338ca;
    margin-top: 0;
}

.tab-content h4 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.tab-content ul {
    margin: 10px 0 15px 0;
    padding-left: 25px;
}

.tab-content li {
    margin-bottom: 8px;
}

/* Research Box */
.research-box {
    background: #eef2ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.research-box ul {
    margin: 0;
    padding-left: 20px;
}

/* Myth Items */
.myth-item {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 15px;
}

.myth-item h4 {
    color: #dc2626;
    margin-top: 0;
    margin-bottom: 10px;
}

.myth-item p {
    margin: 0;
    font-size: 0.95em;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.faq-section h2 {
    color: #4338ca;
    margin-top: 0;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #4338ca;
}

.faq-icon {
    font-size: 1.5em;
    color: #6366f1;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 0 20px 0;
    color: #555;
}

.faq-answer p {
    margin: 0;
}

/* Related Calculators */
.related-calculators {
    background: #eef2ff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.related-calculators h2 {
    color: #4338ca;
    margin-top: 0;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.related-name {
    font-weight: 600;
    color: #4338ca;
    margin-bottom: 5px;
}

.related-desc {
    font-size: 0.85em;
    color: #666;
}

/* Sources Section */
.sources-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.sources-section h2 {
    color: #4338ca;
    margin-top: 0;
    margin-bottom: 20px;
}

.sources-list ul {
    margin: 0;
    padding-left: 20px;
}

.sources-list li {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95em;
}

.sources-list a {
    color: #4338ca;
    text-decoration: none;
}

.sources-list a:hover {
    text-decoration: underline;
}

/* Disclaimer Section */
.disclaimer-section {
    background: #fef3c7;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.disclaimer-section h3 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 15px;
}

.disclaimer-section p {
    margin: 0 0 10px 0;
    color: #78350f;
    font-size: 0.95em;
}

.disclaimer-section p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wlb-calculator-container {
        padding: 15px;
    }

    .calculator-hero {
        padding: 30px 20px;
    }

    .calculator-hero h1 {
        font-size: 1.7em;
    }

    .dimensions-preview {
        gap: 8px;
    }

    .dimension-preview {
        padding: 8px 12px;
    }

    .intro-section,
    .calculator-form-section,
    .results-section,
    .education-section,
    .faq-section,
    .related-calculators,
    .sources-section,
    .disclaimer-section {
        padding: 20px;
    }

    .options-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .option-label {
        flex: 0 0 calc(20% - 5px);
    }

    .option-circle {
        width: 35px;
        height: 35px;
    }

    .option-text {
        font-size: 0.6em;
    }

    .overall-score-display {
        flex-direction: column;
        text-align: center;
    }

    .score-label-area {
        text-align: center;
    }

    .strengths-areas {
        grid-template-columns: 1fr;
    }

    .chart-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .education-tabs {
        justify-content: center;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .calculator-hero h1 {
        font-size: 1.4em;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .dimensions-preview {
        flex-direction: column;
        align-items: center;
    }

    .option-label {
        flex: 0 0 calc(33% - 5px);
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-value {
        font-size: 2em;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
