/* reservation_new.css - 신규 전용 예약 페이지용 스타일 */

/* 푸터 하단 고정을 위한 레이아웃 */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 14px;
    /* 메인 페이지와 동일하게 설정 */
    line-height: 1.6;
}

section.section-padding {
    flex: 1 0 auto;
    /* 콘텐츠가 부족해도 하단으로 밀어냄 */
}

footer.footer-area {
    flex-shrink: 0;
}

/* 탭 스타일 조정 */
.res-tabs {
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.res-tabs .nav-link {
    border: none;
    color: #666;
    padding: 12px 20px;
    font-weight: 700;
    white-space: nowrap;
    font-size: 17px;
    /* 탭 폰트 크기 확대 */
}

.res-tabs .nav-link.active {
    background: #222;
    color: #fff !important;
    border-radius: 0;
}

@media (max-width: 767px) {
    .res-tabs .nav-link {
        padding: 10px 10px;
        font-size: 14px;
    }
}

/* 캘린더 본체 */
.res-calendar-wrap {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.res-calendar-table {
    width: 100%;
    table-layout: fixed;
}

.res-calendar-table th,
.res-calendar-table td {
    border: 1px solid #f1f1f1;
    height: 90px;
    vertical-align: top;
    padding: 5px;
}

.res-calendar-table th {
    height: auto;
    background: #fdfdfd;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    color: #888;
}

/* 캘린더 내부 배지 */
.date-num {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.res-badge {
    display: block;
    width: 100%;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 20px;
    text-align: center;
    margin-top: 2px;
    font-weight: 700;
}

.res-badge.available {
    background-color: #28a745;
    color: #fff;
}

.res-badge.fully-booked {
    background-color: #f8d7da;
    color: #721c24;
}

/* 사이드바 */
.res-sidebar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.res-sidebar-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.time-slot-list {
    list-style: none;
    padding: 0;
}

.time-slot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #f1f1f1;
    margin-bottom: 6px;
    border-radius: 6px;
}

.time-slot-item:hover {
    background: #fafafa;
}

.time-slot-item.booked {
    background: #f9f9f9;
    opacity: 0.6;
}

.btn-res-apply {
    width: 100%;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    background-color: #00b4d9;
    color: #fff;
    border: none;
    padding: 15px;
}

.btn-res-apply:hover {
    background-color: #21cff3;
}

/* 모바일 대응 고도화 */
@media (max-width: 991px) {
    .res-calendar-wrap {
        margin-bottom: 25px;
        padding: 15px;
    }

    .res-sidebar {
        margin-top: 10px;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .res-calendar-table td {
        height: 70px;
        /* 모바일에서 캘린더 높이 축소 */
        padding: 3px;
    }

    .date-num {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .res-badge {
        font-size: 11px;
        padding: 4px 6px;
    }

    .res-tabs .nav-link {
        padding: 10px 10px;
        font-size: 16px;
        letter-spacing: -0.5px;
    }

    .res-sidebar-header {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .btn-res-apply {
        padding: 12px;
        font-size: 18px;
    }

    /* 상단 여백 보정 */
    body {
        padding-top: 70px !important;
    }

    section.section-padding {
        padding: 20px 0 !important;
    }
}

@media (max-width: 480px) {
    .res-calendar-table td {
        height: 60px;
    }

    .res-tabs .nav-link {
        padding: 8px 6px;
        font-size: 15px;
    }
}

/* 예약 확인 탭 플랫 디자인 (입체감 제거) */
.check-section-title {
    display: none;
}

.search-box-wrapper {
    background: #fdfdfd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    /* 단순한 테두리 */
}

.search-input-group .form-control {
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 10px 15px;
    font-size: 15px;
}

.search-input-group .form-control:focus {
    border-color: #00b4d9;
    box-shadow: none;
    /* 그림자 제거 */
    outline: none;
}

.btn-search-submit {
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 700;
    background: #00b4d9;
    border: none;
    color: #fff;
}

.btn-search-submit:hover {
    background: #0098b8;
    transform: none;
    /* 입체 효과 제거 */
    box-shadow: none;
}

.my-res-table {
    width: 100%;
    border-collapse: collapse;
    /* 떨어진 간격 제거 */
}

.my-res-table thead th {
    border-bottom: 2px solid #333;
    font-size: 14px;
    color: #333;
    padding: 12px 10px;
    text-align: left;
}

.my-res-item-row {
    background: #fff;
    border-bottom: 1px solid #eee;
    /* 하단 라인만 표시 */
}

.my-res-item-row:hover {
    background: #f9f9f9;
    /* 배경색만 살짝 변경 */
    transform: none;
    box-shadow: none;
}

.my-res-item-row td {
    padding: 15px 10px;
    border: none;
    vertical-align: middle;
}

.my-res-item-row td .res-time-slot {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    /* 튀지 않는 색상 */
}

.my-res-item-row td:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

.my-res-item-row td:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #ddd;
}

.btn-cancel-res {
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 10px;
    border: 1px solid #dc3545;
    background: transparent;
    color: #dc3545 !important;
}

.btn-cancel-res:hover {
    background-color: #dc3545;
    color: #fff !important;
}

/* 조회 테이블 모바일 반응형 */
@media (max-width: 767px) {
    .my-res-table thead {
        display: none;
        /* 헤더 숨기기 */
    }

    .my-res-item-row {
        display: block;
        padding: 15px;
        margin-bottom: 10px;
        border: 1px solid #eee;
        border-radius: 8px;
    }

    .my-res-item-row td {
        display: block;
        width: 100%;
        padding: 5px 0;
        text-align: left !important;
        border: none;
    }

    .my-res-item-row td::before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        margin-right: 10px;
        color: #888;
        font-size: 14px;
    }

    .btn-cancel-res {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
    }
}

/* 모달 모바일 보정 */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 15px;
    }

    .form-group label {
        font-size: 13px;
    }
}

.res-empty-state {
    padding: 60px 0;
    text-align: center;
    color: #888;
    font-size: 15px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    margin-top: 20px;
}