* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    height: 100%;
}

body,
select,
button,
input,
textarea {
    font-family: 'Inter', sans-serif;
}

.app-container {
    display: flex;
    height: 100vh;
    background-color: #f8f8f8;
    overflow: hidden;
}

.sidebar {
    flex: 0 1 25%;
    min-width: 375px;
    background-color: #f8f8f8;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.header {
    display: flex;
    align-items: baseline;
    margin-bottom: 30px;
}

.app-name {
    color: #3754a0;
    font-size: 1.25rem;
    margin-right: 8px;
    font-family: "Kanit", sans-serif;
}

.company-name {
    color: #576076;
    font-size: 0.75rem;
}

.address-info-label {
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: #4d4d66;
    position: relative;
}


.autocomplete {
    position: relative;
    width: 100%;
    margin-bottom: 1.25rem;
}

.autocomplete input[type="text"] {
    width: 100%;
    padding: 10px 30px 10px 10px;
    font-size: 16px;
    color: #3C3854;
    border: 1px solid #cbcbd4;
    border-radius: 10px;
    background-color: #ffffff;
    transition: border 0.2s;
}

.autocomplete input[type="text"].loading-placeholder {
    color: #757590;
}

.autocomplete input[type="text"]:focus {
    outline: none;
    border-color: #5A5AE2;
}

.input-wrapper {
    position: relative;
}

.clear-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.clear-button:hover {
    color: #333;
}

.suggestions {
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #cbcbd4;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    z-index: 10;
    border-radius: 10px;
    margin-top: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    gap: 8px;
    height: 60px;
    box-sizing: border-box;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.suggestion-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.suggestion-content {
    flex-grow: 1;
    overflow: hidden;
}

.suggestion-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-details {
    font-size: 0.78rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 6px #0000000f;
    display: flex;
    flex-direction: column;
}

.data-inner {
    padding: 16px;
}

.tabs-wrapper {
    box-sizing: border-box;
    background-color: #eff4f9;
    padding: 4px;
    border-radius: 16px;
    margin: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.tab-button {
    border: none;
    color: #090909;
    background-color: #ffffff00;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    padding: 6px 12px;
    text-align: center;
    font-size: 12px;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
}

.tab-button.active {
    background-color: #ffffff;
    color: #007aff;
    font-weight: bold;
}


.info-label {
    font-size: 14px;
    color: #2c2c2c;
    margin-bottom: 12px;
    position: relative;
    font-weight: 500;
}

.info-icon {
    stroke: #2C2C2C;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: bottom;
}


.info-icon-wrapper {
    display: inline-block;
    position: relative;
}

.tooltip {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #444;
    z-index: 10;
    width: 180px;
    top: 100%;
    margin-left: -90px;
    left: auto;
    right: 0;
    font-weight: 400;
}

.info-icon-wrapper:hover .tooltip {
    display: block;
}

.image-data-block {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
}

.info-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.info-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-label-text {
    font-size: 16px;
    font-weight: bold;
}

.info-value {
    font-size: 12px;
    display: inline-flex;
    align-items: baseline;
    gap: 0px;
    color: #98999b;
}

.info-value .main-value {
    font-size: 40px;
    font-weight: bold;
}

.graph-container {
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
}

.graph-container svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.marker {

    fill: #ffffff;
    stroke: #b9b9b9;
}

.marker.active {
    stroke: #0054d3;
}

.axis-label {
    font-size: 20px;
    text-anchor: middle;
    dominant-baseline: hanging;
    fill: #000000;
}

.axis-number {
    font-size: 18px;
    text-anchor: end;
    dominant-baseline: middle;
    fill: #898989;
}

.legend {
    display: flex;
    padding-left: 30px;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.color-box {
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 50%;
}

.month-mean {
    background-color: #ff6cee;
}

.year-mean {
    background-color: #638dff;
}

.legend-text {
    font-size: 10px;
    color: #616161;
}

.graph-background {
    fill: #f5f7fa;
}

.mean-line-month {
    stroke: #ff6cee;
    stroke-width: 2;
}

.mean-line-year {
    stroke: #638dff;
    stroke-width: 2;
}

.base-line {
    stroke: #ccc;
    stroke-width: 1;
}

.row-divider {
    width: 100%;
    margin: 12px auto;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.data-row .label {
    font-size: 12px;
    color: #2c2c2c;
}

.data-row .value .main-value {
    font-size: 18px;
}

.data-row .value {
    font-size: 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    color: #98999b;
}

.data-row.highlighted .label {
    font-size: 14px;
    font-weight: 500;
}

.data-row.highlighted .value .main-value {
    font-size: 24px;
}

.data-row.highlighted .value {
    font-size: 12px;
}

.dark-green {
    color: #4e9c6d;
}

.green {
    color: #6dc480;
}

.yellow {
    color: #ecd89f;
}

.orange {
    color: #f3b986;
}

.dark-orange {
    color: #e7846a;
}

.red {
    color: #b43a56;
}

.neutral {
    color: #6b7280;
}

.label {
    color: #6b7280;
}

.value {
    font-weight: 500;
}

.value .main-value {
    font-weight: bold;
    font-size: 1.25rem;
}

.footer {
    font-size: 12px;
    color: #576076;

    padding-top: 20px;
}

.footer a {
    color: #355dcb;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

#map {
    flex: 1 1 auto;
    height: 100%;
    overflow: hidden;
}

.map-logo-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.map-logo {
    width: 155px;
    height: auto;
}