.platform {
    height: 100%;
    /* 3:1 비율로 화면에 표시 */
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 43px;
}

.left-area {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 1vh;
    color: #fff;
    opacity: 80%;
}

.chart-area {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.chart {
    flex: 1;
    border-radius: 8px;
    background-color: #333947;
}

.center-area {
    background-image: url(/images/image-lotte-depart.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 900px auto;
    position: relative;
    display: inline-block;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.gray-title {
    color: #737373;
    font-size: 16px;
}

.bold-title {
    color: #fff;
    opacity: 0.8;
    font-weight: bold;
}

.unit {
    color: #fff;
    opacity: 0.8;
    font-weight: bold;
    margin-left: 2px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: 100%;
    display: none;
}

.modal-title {
    width: 100%;
    height: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 30px;
    border-radius: 16px;
    transform: translateX(-50%) translateY(-50%);
    width: 1672px;
    height: 998px;
    background-color: #333947;
    overflow-y: auto;
}

.menu {
    position: relative;
    cursor: pointer;
    color: #fff;
}

.menu.has-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    cursor: pointer;
    color: #fff;
    min-width: 140px;
}

.menu.has-dropdown.selected > span:first-child {
    background-color: #272c38;
    border-radius: 6px;
    padding: 4px 8px;
}

.menu.has-dropdown .dropdown-list {
    display: none;
    position: absolute;
    top: 100%; /* 메뉴 바로 아래 */
    left: 0;
    background: #2d3345;
    border-radius: 6px;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    z-index: 5000;
}

.menu.has-dropdown .dropdown-list li {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.menu.has-dropdown .dropdown-list li:hover {
    color: #fff;
    background: #3c4556;
}

.menu.has-dropdown.active .dropdown-list {
    display: block;
}

.dropdown-list .category > span {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.dropdown-list .sub-menu li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.dropdown-list .sub-menu li:hover {
    color: #fff;
    background: #3c4556;
}

.content.active {
    display: block;
    height: 100%;
}

.row:nth-child(1) .chart-item,
.row:nth-child(3) .chart-item {
    height: 250px;
}

.chart-item canvas {
    width: 100%;
}

.status-table thead th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.status-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-area {
    width: 100%;
    height: 894px;
    overflow: hidden;
}

.menu-group-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

/* 대시보드의 계층2 버튼 컨테이너 */
#dashboard-level2-menu-container {
    flex-direction: row;
    gap: 10px;
}

.menu-group-container .menu.has-dropdown {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
}

.menu-group-container .menu.has-dropdown > span {
    display: block;
}

/* 계층1 선택 버튼 스타일 */
.level1-btn {
    padding: 8px 20px;
    background-color: #333947;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.level1-btn:hover {
    background-color: #3c4556;
    border-color: rgba(255, 255, 255, 0.3);
}

.level1-btn.active {
    background-color: #3c4556;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* 모니터링 계층2 버튼 스타일 */
.level2-btn {
    padding: 8px 20px;
    background-color: #2d3345;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.level2-btn:hover {
    background-color: #3c4556;
    border-color: rgba(255, 255, 255, 0.3);
}

.level2-btn.active {
    background-color: #3c4556;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* 중첩 드롭다운 스타일 */
.dropdown-list .has-submenu {
    position: relative;
}

.dropdown-list .has-submenu > span:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.dropdown-list .has-submenu:hover > span:first-child {
    background: #3c4556;
}

.dropdown-list .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #2d3345;
    border-radius: 6px;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    min-width: 200px;
    z-index: 5001;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 5px;
}

.dropdown-list .has-submenu:hover > .submenu {
    display: block;
}

.dropdown-list .submenu li {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    position: relative;
}

.dropdown-list .submenu li:hover {
    color: #fff;
    background: #3c4556;
}

/* 최종 페이지 항목 스타일 */
.dropdown-list .submenu li[data-fragment] {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.dropdown-list .submenu li[data-fragment]:hover {
    color: #fff;
    background: #3c4556;
}

/* 중첩 레벨 스타일 */
.dropdown-list .submenu .has-submenu > span:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.dropdown-list .submenu .has-submenu:hover > span:first-child {
    background: #3c4556;
}

.dropdown-list .submenu .submenu {
    left: 100%;
    margin-left: 5px;
}

.chart-canvas-wrap {
    flex: 1;
    position: relative;
    min-height: 0;
}

.chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.saving-ratio-box {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgb(45, 50, 65);
    border: 1px solid #6c7385;
    border-radius: 6px;
    padding: 4px 10px;
    color: #e0e0e0;
    font-size: 11px;
    z-index: 10;
    line-height: 1.5;
    pointer-events: none;
    white-space: nowrap;
}

.chart3-content {
    flex: 1;
    position: relative;
    min-height: 0;
}

.chart3-content canvas {
    width: 100% !important;
    height: 100% !important;
}

.comfort-ratio-box {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background-color: rgb(45, 50, 65);
    border: 1px solid #6c7385;
    border-radius: 6px;
    padding: 4px 10px;
    color: #e0e0e0;
    font-size: 11px;
    z-index: 10;
    line-height: 1.5;
    pointer-events: none;
    white-space: nowrap;
}
