/* Chips in the input box */
.ss-main .ss-value {
    background-color: #8DC63F !important; /* dark green for chips */
    color: #fff !important;
    border-radius: 4px;
    padding: 2px 6px;
    margin-right: 4px;
}

/* Delete "x" icon in chips */
.ss-main .ss-value-delete svg path {
    stroke: #fff !important;
    stroke-width: 5;
}

/* All options in the dropdown */
.ss-content .ss-option {
    color: #333 !important; /* default text */
}

/* Hovered option in dropdown */
.ss-content .ss-option:hover {
    background-color: #28a745 !important; /* green hover */
    color: #fff !important;
}

/* Preselected options in dropdown */
.ss-content .ss-option[aria-selected="true"] {
    background-color: #d4f1d4 !important; /* light green */
    color: #8DC !important; /* darker green text */
}

/* chart type buttons */
.chart-type-buttons button {
    background-color: white;      
    color: black;                 
    border: 2px solid lightgrey;   
    border-width: 0.5px;       
    padding: 6px 12px;            
    margin-left: 4px;             
    border-radius: 6px; 
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.chart-type-buttons button.active {
    background-color: #8DC63F;       /* selected green */
    color: white;
}

.chart-type-buttons button:hover {
    background-color: #d4f1c5;     /* light green on hover */
}


/* Chart header wrapper */
.oecd-chart-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* Chart header text */
.oecd-chart-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: light;
    color: #000;
    text-transform: none; /* normal case */
}

/* Info circle next to header */
.oecd-info-circle {
    width: 20px;
    height: 20px;
    background-color: #8DC63F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: default;
    position: relative; /* needed for tooltip positioning */
}

.oecd-info-circle:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%; /* above the icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;   /* white background */
    color: #000;              /* black text for contrast */
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    width: 220px; /* adjust as needed */
    white-space: pre-wrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* subtle shadow */
    z-index: 9999;
}

.oecd-info-circle:hover::before {
    content: '';
    position: absolute;
    bottom: 110%; /* small arrow under tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent; /* white arrow */
}

/* Chart subtext paragraph */
.oecd-chart-subtext {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #555;
}

.oecd-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 16px;
    margin: 8px;
    background: #fff;
    flex: 0 0 calc(50% - 12px);
    box-sizing: border-box;
    min-width: 0;       
}

.oecd-row {
    display:flex;
    flex-wrap:wrap;
}

/* card */
.oecd-card {
    position:relative;             
    flex:0 0 calc(50% - 16px);
    margin:8px;
    box-sizing:border-box;
    transition:all .25s ease;
}

/* expand button */
.chart-expand-btn{
    position:absolute;
    top:8px;
    right:8px;
    z-index:5;
}

/* expanded card */
.oecd-card.expanded{
    flex:0 0 100%;
}

/* hide sibling */
.oecd-row.row-expanded .oecd-card:not(.expanded){
    display:none;
}

.chart-expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 36px;       /* fixed width */
    height: 36px;      /* fixed height */
    
    /* styling */
    background-color: #8DC63F; /* green */
    color: #fff;               /* white text */
    font-size: 18px;           /* slightly bigger symbol */
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 2px 3px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* hover effect */
/* hover effect: slightly darker green */
.chart-expand-btn:hover {
    background-color: #c1e0b3; /* slightly darker than default */
    transform: scale(1.1);     /* subtle pop */
}

/* optional: active pressed effect */
.chart-expand-btn:active {
    background-color: #1e7e34;
    transform: scale(1);
}

.oecd-card .oecd-logo {
    position: absolute;
    bottom: 10px;   /* distance from bottom of card */
    right: 10px;    /* distance from right of card */
    width: 44px;    /* adjust as needed */
    height: auto;   /* preserve aspect ratio */
    opacity: 0.7;   /* make it subtle */
    pointer-events: none; /* allows clicks to pass through */
    z-index: 5;     /* ensures it sits above canvas but below legends if needed */
}