@import "../../Scripts/bootstrap-5.3.1-dist/css/bootstrap.css";
@import "reset_2025.css";
@import "bootstrap-icons.css";
/*************************
    框架設定
**************************/
html,
body {
    width: 100%;
    height: 100%;
    position: relative;
}

.scrollBar {
    overflow-y: auto;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 20px 130px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
}

.dashboard-container {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#273d86+19,0f1c33+100 */
    background: radial-gradient( ellipse at center, rgba(39, 61, 134, 0.95) 10%, rgba(15, 28, 51, 1) 100% ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.dashboard-main {
    flex: 1 1 calc(65% - 0.5rem);
    width: calc(65% - 0.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .dashboard-main > div {
        /* flex: 1; */
    }

.ccd-section {
    height: 60%;
}

.rainfall-chart-section {
    height: 40%;
}

.dashboard-side {
    flex: 1 1 calc(35% - 0.5rem);
    width: calc(35% - 0.5rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stream-section {
    height: 14%;
}

.dashboard-map {
    height: 43%;
}

.instrument-data {
    height: 43%;
}

.card-bg-gradient {
    padding: 0.5rem;
    border-radius: var(--bs-border-radius-lg);
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#19254b+19,0f1c33+100&0.8+19,0.8+100 */
    background: radial-gradient( ellipse at center, rgba(25, 37, 75, 0.8) 19%, rgba(15, 28, 51, 0.8) 100% ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/*左側主要資訊區：CCD + 雨量圖*/

/* CCD 樣式 */
.ccd-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ccd-title {
    color: var(--fit-white);
    font-size: 150%;
    text-align: center;
}

.ccd-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 100%;
    background: #000000;
    /* background: rgba(var(--fit-dark-rgb), 0.7); */
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
}

    .ccd-image img {
        width: auto;
        height: 100%;
    }

/* charts樣式 */
.chart-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/*右側次要資訊區：潛勢溪流資訊 + 地圖 + 儀器數據*/

/* 潛勢溪流主要資訊 */
.stream-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .stream-section > div {
        text-align: center;
    }

.stream-name {
    padding-bottom: 2px;
    line-height: 1.2;
    color: var(--bs-white);
    font-size: 2.6rem;
    font-weight: bold;
}

.stream-info {
    display: flex;
    justify-content: center;
    line-height: 1;
    padding-bottom: 0.5rem;
    /*color: var(--tvWall-blue);*/
    color: var(--fit-white);
    border-bottom: 1px solid var(--tvWall-blue);
    font-size: 1.5rem;
    font-weight: bold;
}

    .stream-info > div {
        padding: 0 0.5rem;
    }

.rain-info-item {
    color: var(--tvWall-blue);
}

.rain-info {
    display: flex;
    justify-content: center;
    font-weight: bold;
    /*padding: 0.5rem;*/
}

.rain-info-item {
    flex: 1;
    font-size: 1.2rem;
}

    .rain-info-item:not(:first-child) {
        border-left: 1px solid var(--tvWall-blue);
    }

.unit {
    font-size: 0.9rem;
}

.stream-rain-section {
    flex: 49%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
}

.rain-section {
    flex: 1;
}

.instrument-chart-panel {
    flex: 49%;
    display: flex;
}

.instrument-panel {
    width: 100%;
}

.camera-image-section {
    flex: 100%;
}

.camera-panel {
    height: 100%;
}

/* 地圖區域 */
.dashboard-map {
    flex: 1 1 calc(40% - 0.5rem);
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--bs-border-radius-lg);
}

    .map-container img {
        width: auto;
        height: 100%;
        /* object-fit: cover; */
    }

/* 儀器數據 */
.instrument-data {
    flex: 1 1 calc(30% - 0.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem;
}

.instrument-data-item {
    flex: 1 1 calc(50% - 0.5rem);
    display: flex;
    flex-direction: column;
    max-height: 50%;
    background: rgba(var(--fit-light-rgb), 0.2);
    border: 1px solid var(--fit-white);
    border-radius: var(--bs-border-radius-lg);
}

.instrument-data-header {
}

.instrument-data-header {
    position: relative;
}

    .instrument-data-header .name {
        padding: 0.25rem 0.75rem;
        color: var(--fit-white);
        font-size: 156.3%;
        font-weight: bold;
    }

.value-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex: 0.9;
    gap: 0.5rem;
    padding: 0rem 0.5rem;
    background: var(--tvWall-blue-dark);
    color: var(--fit-white);
    font-size: 280%;
    text-align: center;
}

    .value-container .value {
        line-height: 1.2;
        font-size: 100%;
        font-weight: bold;
    }

    .value-container .name {
        line-height: 1.2;
        font-size: 35%;
        font-weight: bold;
    }

    .value-container .location-icon {
        font-size: 40%;
    }

.instrument-data-item .instrument-data-header::before {
    content: "";
    position: absolute;
    width: 62px;
    height: 62px;
}

.instrument-type--rain .instrument-data-header::before {
    top: -7px;
    right: 0;
    background: url("../../Images/DashboardStation/icon_rainGauge.png") no-repeat;
    background-size: contain;
}

.instrument-type--soil .instrument-data-header::before {
    top: -7px;
    right: 0;
    background: url("../../Images/DashboardStation/icon_soilMoistureSensor.png") no-repeat;
    background-size: contain;
}

.instrument-type--geo .instrument-data-header::before {
    top: -7px;
    right: 0;
    background: url("../../Images/DashboardStation/icon_geophone.png") no-repeat;
    background-size: contain;
}

.instrument-type--cable .instrument-data-header::before {
    top: -7px;
    right: 0;
    background: url("../../Images/DashboardStation/icon_wireSensor.png") no-repeat;
    background-size: contain;
}

.value-container .value-item {
    padding: 0 0.5rem;
    color: var(--fit-white);
    text-decoration: none;
}

.value-container .value-btn {
    flex: 1 1 calc(50% - 0.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fit-white);
}

    .value-container .value-btn .name {
        text-align: left;
        line-height: 1.2;
    }

.btn-setting {
    /*position: absolute;
    right: 1.5rem;
    top: 1.5rem;*/
    color: var(--fit-white);
    background: linear-gradient( to right, rgba(106, 109, 252, 1) 21%, rgba(41, 102, 219, 1) 100% ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.5s;
}

    .btn-setting:hover {
        color: var(--fit-white);
        background: linear-gradient( to right, rgb(67, 69, 231) 21%, rgb(0, 89, 255) 100% );
    }

    .btn-setting:link,
    .btn-setting:visited {
        color: var(--fit-white) !important;
        text-decoration: none;
        transition: all 0.5s;
    }

    .btn-setting span {
        display: block;
        text-align: center;
        line-height: 1;
        font-size: 0.9rem;
    }

    .btn-setting i {
        display: block;
        text-align: center;
        line-height: 1;
        font-size: 0.9rem;
    }
