:root {
    --primary-color: #4e73df;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* Range sliders */
.range-container {
    position: relative;
    padding-bottom: 30px;
}

.range-value {
    position: absolute;
    right: 0;
    bottom: 0;
    font-weight: 600;
    color: var(--primary-color);
}

/* Results section styling */
.result-summary {
    text-align: center;
    padding: 20px 0;
}

.result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
}

.percentile {
    font-size: 1.5rem;
    position: absolute;
    top: 30px;
    right: 25px;
}

.score-label {
    font-size: 1.1rem;
    max-width: 250px;
    text-align: center;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Global stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--light-color);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Wellbeing tips */
.wellbeing-tips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tip-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.tip-content h5 {
    margin-bottom: 5px;
}

.tip-content p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

/* Interesting facts */
.fact-list {
    list-style-type: none;
    padding-left: 0;
}

.fact-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.fact-list li:last-child {
    border-bottom: none;
}

.fact-list li:before {
    content: "\f0eb";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--warning-color);
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.copy {
    background-color: var(--secondary-color);
}

.share-btn.download {
    background-color: var(--info-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wellbeing-tips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}
