/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0.0
*/

/*-------------------------
  Layout & Container Styles
--------------------------*/
.romance-rewiring-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    font-family: sans-serif;
}

.romance-rewiring-dashboard .sidebar {
    flex: 0 0 220px;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.romance-rewiring-dashboard .dashboard-content {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/*-------------------------
  Sidebar Navigation
--------------------------*/
.romance-rewiring-dashboard .sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.romance-rewiring-dashboard .sidebar nav ul li {
    margin-bottom: 12px;
}

.romance-rewiring-dashboard .sidebar nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: background 0.3s;
}

.romance-rewiring-dashboard .sidebar nav ul li a:hover {
    background: #e0e0e0;
}

/*-------------------------
  Assessment and Norm Layouts
--------------------------*/
.dashboard-assessment-summary,
.dashboard-norm-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-assessment-summary > div,
.dashboard-norm-scores > div,
.norm-score-card {
    flex: 1;
    min-width: 250px;
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    text-align: center;
}
.norm-score-card .norm-key {
    font-size: 0.85rem;
    font-weight: 500;
    color: #777;
    margin: 4px 0 8px;
}

.progress-bar-container {
    background: #e0e0e0;
    border-radius: 20px;
    height: 20px;
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0;
    border-radius: 20px;
    transition: width 1.5s ease-in-out;
}

.progress-value {
    font-weight: bold;
    margin-top: 10px;
}

/* Gradient Variants for Bars */
.progress-green {
    background: linear-gradient(90deg, #4caf50, #81c784) !important;
}
.progress-yellow {
    background: linear-gradient(90deg, #ff9800, #ffb74d) !important;
}
.progress-red {
    background: linear-gradient(90deg, #f44336, #e57373) !important;
}

/*-------------------------
  Vertical Lists: Badges, Superlatives, Streaks
--------------------------*/
.romance-rewiring-dashboard section .vertical-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.romance-rewiring-dashboard section .vertical-list > div {
    width: 100%;
    text-align: center;
}

.romance-rewiring-dashboard section .vertical-list .badge-item .circle {
    width: 80px;
    height: 80px;
    background: #d1c4e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto;
}

.romance-rewiring-dashboard section .vertical-list .superlative-item,
.romance-rewiring-dashboard section .vertical-list .streak-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
}

.romance-rewiring-dashboard section .vertical-list .superlative-item {
    background: #fff3e0;
}

.romance-rewiring-dashboard section .vertical-list .streak-item {
    background: #e8f5e9;
}

.romance-rewiring-dashboard section .vertical-list span.icon {
    font-size: 1.5rem;
    margin-right: 10px;
}
.romance-rewiring-dashboard .legend {
    text-align: center;
    margin: 30px auto;
    max-width: 600px;
}
.romance-rewiring-dashboard .legend ul {
    display: inline-block;
    text-align: left;
}

/*-------------------------
  Tooltip Styles
--------------------------*/
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
    outline: none;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 240px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 6px 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none;
}

.tooltip-wrapper:hover .tooltip-text,
.tooltip-wrapper:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/*-------------------------
  Responsive Behavior
--------------------------*/
@media (max-width: 768px) {
    .romance-rewiring-dashboard {
        flex-direction: column;
    }

    .romance-rewiring-dashboard .sidebar {
        position: relative;
        top: auto;
        width: 100%;
    }

    .dashboard-assessment-summary,
    .dashboard-norm-scores {
        flex-direction: column;
    }
}
/* Reduce heading size inside assessment cards */
.dashboard-assessment-summary h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
    word-wrap: break-word; /* optional: ensures long words wrap */
}

/* Optional: limit max width for long tooltip content */
.tooltip-text {
    max-width: 180px; /* already exists but can reduce slightly */
}
.tooltip-icon {
    font-size: 0.9rem;
}
/* Manage NORM score cards */
.norm-score-card h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
}
.norm-score-card .progress-value {
    font-size: 1rem;
    margin-top: 8px;
}
.norm-score-card .tooltip-icon {
    font-size: 0.85rem;
    margin-left: 5px;
}
.score-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 6px;
    margin-bottom: 12px;
    color: #444;
}
.romance-rewiring-dashboard .relational-indicators {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-top: 30px;
    font-family: Arial, sans-serif;
}

.romance-rewiring-dashboard .relational-indicators h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
}

.romance-rewiring-dashboard .relational-indicators ul {
    max-width: 600px;
    margin: 0 auto;
}

.romance-rewiring-dashboard .relational-indicators ul li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.romance-rewiring-dashboard .relational-indicators ul li strong {
    color: #555;
}

.romance-rewiring-dashboard .relational-indicators ul li em {
    font-style: normal;
    color: #777;
    margin-left: 6px;
    font-size: 0.85rem;
}

