/* 폰트 설정 */
/* NanumSquare 폰트 - 로컬 파일 사용 */
@font-face {
    font-family: 'NanumSquare';
    src: url('fonts/NanumSquare-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumSquare';
    src: url('fonts/NanumSquare-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumSquare';
    src: url('fonts/NanumSquare-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'NanumSquare', sans-serif;
    background-color: #fff;
    /* overflow: hidden; */
    width: 1080px;
    height: 1920px;
    margin: 0 auto;
}

.container {
    width: 1080px;
    height: 1920px;
    position: relative;
    /* background-color: #fff; */
    /* overflow: hidden; */
    background: rgba(0, 0, 0, 0.70);
}

/* 헤더 */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 1080px;
    height: 120px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #000;
    z-index: 100;
}

.logo {
    height: 71.219px;
    width: auto;
}

/* 평면도 섹션 */
.floor-map-section {
    position: absolute;
    top: 120px;
    left: 0;
    width: 1080px;
    height: 985px;
    /* background: rgba(0, 0, 0, 0.70); */
}

.floor-container {
    position: relative;
    width: 1080px;
    height: 375px;
    padding-left: 72px;
    padding-right: 72px;
}

.floor-container:first-child {
    top: 80px;
}

.floor-container:last-child {
    top: 30px;
}

.floor-label {
    position: absolute;
    left: 95px;
    font-size: 72px;
    font-weight: 800;
    color: #fff;
    z-index: 10;
}

.floor-map {
    position: relative;
    width: 100%;
    height: 397.694px;
    margin-top: 0;
}

.floor-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* opacity: 0.3; */
}

/* 홀 오버레이 */
.hall-overlay {
    position: absolute;
    transition: fill 0.3s ease;
}

.hall-overlay svg {
    width: 100%;
    height: 100%;
}

.hall-overlay path {
    transition: fill 0.3s ease;
}

/* 3F 홀 위치 */
.hall-c {
    left: calc(25% + 15px);
    top: 56px;
    width: 365px;
    height: 175.104px;
}

.hall-d {
    left: calc(41.667% + 40px);
    top: 170px;
    width: 341.799px;
    height: 133.554px;
}

/* 1F 홀 위치 */
.hall-a {
    left: calc(25% + 15px);
    top: 56px;
    width: 365px;
    height: 175.104px;
}

.hall-b {
    left: calc(41.667% + 40px);
    top: 170px;
    width: 341.799px;
    height: 133.554px;
}

/* 툴팁 */
.tooltip {
    position: absolute;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tooltip-hall-c {
    left: calc(31.333% + 12px);
    top: 50px;
}

.tooltip-hall-d {
    left: calc(50% + 13px);
    top: 156px;
}

.tooltip-hall-a {
    left: calc(31.333% + 12px);
    top: 50px;
}

.tooltip-hall-b {
    left: calc(50% + 13px);
    top: 156px;
}

.tooltip-content {
    background-color: #2f2b3d;
    padding: 11.944px 28.667px;
    border-radius: 9.556px;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 47.778px;
}

.tooltip .status-text {
    transition: color 0.3s ease;
}

.tooltip-arrow {
    width: 28.667px;
    height: 14.333px;
    position: relative;
}

.tooltip-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 14.333px solid transparent;
    border-right: 14.333px solid transparent;
    border-top: 14.333px solid #2f2b3d;
}

/* 테이블 헤더 */
.table-title {
    position: absolute;
    top: 1105px;
    left: 42px;
    width: 1006px;
    padding: 16px 32px;
    color: #FFF;
    text-align: left;
    font-family: NanumSquare;
    font-size: 64px;
    font-weight: 700;
    line-height: 120%;
    border: 3px solid rgba(0, 0, 0, 0.10);
    background: #3A4A72;
}
.table-header {
    position: absolute;
    top: 1220px;
    left: 42px;
    width: 1006px;
    height: 62px;
    /* border: 3px solid rgba(0, 0, 0, 0.10); */
    background: #CDCDCD;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 32px; */
    z-index: 10;
}

.table-header > div {
    font-size: 34px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    text-align: center;
    height: 100%;
    /* align-content: center; */
}

.th-location {
    /* flex: 0 0 292px; */
    text-align: center !important;
    padding: 10px 32px;
    border: 3px solid rgba(0, 0, 0, 0.10);
    background: #CDCDCD;
    color: rgba(0, 0, 0, 0.85);
    width: 272px;
    height: 100%;
    align-content: center !important;
}

.th-floor {
    /* flex: 0 0 150px; */
    padding: 10px 32px;
    border: 3px solid rgba(0, 0, 0, 0.10);
    background: #CDCDCD;
    color: rgba(0, 0, 0, 0.85);
    text-align: center;
    width: 140px;
    height: 100%;
    align-content: center !important;
}

.th-status {
    /* flex: 0 0 320px; */
    padding: 10px 32px;
    border: 3px solid rgba(0, 0, 0, 0.10);
    background: #CDCDCD;
    color: rgba(0, 0, 0, 0.85);
    text-align: center;
    width: 298px;
    height: 100%;
    align-content: center !important;
}

.th-wait {
    /* flex: 0 0 318px; */
    text-align: center;
    padding: 10px 32px;
    border: 3px solid rgba(0, 0, 0, 0.10);
    background: #CDCDCD;
    color: rgba(0, 0, 0, 0.85);
    width: 296px;
    height: 100%;
    align-content: center !important;
}

/* 등록대 리스트 */
.desk-list {
    position: absolute;
    top: 1282px;
    left: 42px;
    width: 1006px;
}

.desk-item {
    width: 1006px;
    height: 123px;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    /* padding: 0 32px; */
    position: relative;
}

.desk-item:nth-child(odd) {
    background: rgba(255, 255, 255, 0.20);
}

.desk-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.10);
}

.desk-name {
    flex: 0 0 272px;
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    height: 122px;
    padding: 24px 32px;
    /* line-height: 86px; */
    text-align: center;
    border: 3px solid rgba(0, 0, 0, 0.10);
}

.desk-floor {
    flex: 0 0 140px;
    font-size: 48px;
    font-weight: 800;
    color: #b3b2b4;
    height: 122px;
    padding: 24px 32px;
    /* line-height: 86px; */
    text-align: center;
    border: 3px solid rgba(0, 0, 0, 0.10);
}

.desk-status {
    flex: 0 0 298px;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    position: relative;
    height: 122px;
    padding: 24px 32px;
    border: 3px solid rgba(0, 0, 0, 0.10);
    /* line-height: 86px; */
}

.desk-status::before {
    content: '';
    position: absolute;
    left: -5px;
    right: -5px;
    top: 0;
    bottom: 0;
    z-index: -1;
    transition: background-color 0.3s ease;
}

.desk-status.status-smooth{
    background-color: #00ed37;
}

.desk-status.status-moderate{
    background-color: #ffad1e;
}

.desk-status.status-crowded{
    background-color: #ff2027;
}

.desk-wait {
    flex: 0 0 296px;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    height: 122px;
    padding: 24px 32px;
    border: 3px solid rgba(0, 0, 0, 0.10);
    /* line-height: 86px; */
}

/* 마퀴 */
.marquee-container {
    position: absolute;
    top: 1802px;
    left: 0;
    width: 1080px;
    height: 118px;
    background-color: #000;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.marquee-content p {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    padding-right: 200px;
    line-height: 1.2;
}

.marquee-content strong {
    font-weight: 800;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 푸터 */
.footer {
    position: absolute;
    top: 1852px;
    left: 0;
    width: 1080px;
    height: 68px;
    background-color: #d70a30;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer p {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.footer strong {
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
}

/* 상태별 색상 */
.color-smooth {
    fill: #00ed37;
}

.color-moderate {
    fill: #ffad1e;
}

.color-crowded {
    fill: #ff2027;
}

/* Admin 페이지 레이아웃 */
body.admin-page {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.admin-section-left {
    flex: 7;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.admin-section-right {
    flex: 3;
    width: 100%;
    padding: 16px;
    padding-left: 18px;
    background-color: #fafafa;
    overflow-y: auto;
    max-height: 190vh;
}

/* Admin Area Info 스타일 */
.admin-area-info {
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.admin-area-info-title {
    background-color: #2f2b3d;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.admin-area-info-title-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.admin-area-info-title-text span {
    display: block;
}

.admin-area-info-content {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.admin-area-info-content-item {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.admin-area-info-content-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.admin-area-info-content-item p:first-child {
    color: #666;
    font-weight: 400;
    font-size: 12px;
}

.admin-area-info-content-item p:nth-child(2) {
    color: #2f2b3d;
    font-weight: 700;
    font-size: 16px;
}

.admin-area-info-content-item p:nth-child(3) {
    color: #666;
    font-weight: 400;
    font-size: 12px;
    margin-top: 8px;
}

.admin-area-info-content-item select,
.admin-area-info-content-item input[type="text"],
.admin-area-info-content-item input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'NanumSquare', sans-serif;
    background-color: #fff;
    color: #2f2b3d;
    transition: border-color 0.2s ease;
}

.admin-area-info-content-item select:focus,
.admin-area-info-content-item input[type="text"]:focus {
    outline: none;
    border-color: #2f2b3d;
}

.save-btn {
    padding: 10px 20px;
    background-color: #2f2b3d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'NanumSquare', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 4px;
}

.save-btn:hover {
    background-color: #1f1b2d;
}

.save-btn:active {
    background-color: #0f0b1d;
}

.admin-section-monitor-item {
    width: 100%;
    height: 240px;
    background-color: #000;
    position: relative;
}
.admin-section-monitor-item span {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 24px;
    position: absolute;
}
.admin-section-monitor-item p {
    font-size: 12px;
    color: #fff;
    text-align: center;
    position: absolute;
    bottom: 0;
}
.floor-map-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 72px;
    margin-bottom: 33px;
    margin-top: 35px;
}
.floor-map-title-text {
    font-size: 72px;
    font-weight: 700;
    color: #fff;
    line-height: 120%;
}
.floor-map-title-icon {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 5.673px;
    border-radius: 8px;
    background: #5C75B3;
    color: #fff;
    font-size: 36px;
    line-height: 120%;
    font-weight: 700;
}
.floor-map-title-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.closed-mask {
    position: absolute;
    top: 1282px;
    left: 0;
    width: 1080px;
    height: 638px;
    color: #FFF;
    text-align: center;
    font-family: NanumSquare;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 160%; /* 76.8px */
    align-items: center;
    justify-content: center;
    display: flex;
    background: rgba(51, 51, 51, 0.90);
}