html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: system-ui, sans-serif;
}


/******************************** ROOT LAYOUT *****************************************/

#app {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg);
}


/************************* LEFT PANEL (globe + controls) *****************************/

#panel-left {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-color: var(--color-bg);
    flex: 55;
}

#globe-container {
    flex: 3;
    position: relative;
    overflow: hidden;
    background-color: skyblue;
    border-radius: 20px;
    border-color: var(--color-border);
    border-width: 1px;
    border-style: solid;
    margin: 5px 0px 0px 5px;

}

#controls-container {
    flex: 2;
    overflow: hidden;
    overflow-y: auto;
}


/**************** RIGHT PANEL  (city card + comparison views) ******************/

#panel-right {
    flex: 45;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    padding: 5px;
    background: var(--color-bg);
}

#city-panel {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--color-border-subtle);
    background: var(--color-bg);
}

#comparison-histogram {
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
}

#comparison-radar {
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
}

.comparison-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#city-card-container {
    flex: 4;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
}


/*********************************** ATTRIBUTES PICKER ********************************************/

#attr-picker {
    background: #1a1a2e;
    border: 1px solid #fff;
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

#attr-picker-search {
    width: 100%;
    margin-bottom: 6px;
}

#attr-picker-list {
    list-style: none;
}

.attr-picker-item {
    padding: 4px 8px;
    cursor: pointer;
}

.attr-picker-item:hover {
    background: #ffffff22;
}

#comparison-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}


/******************************** RESET *****************************************/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
