/**
 * FPGA Reservation System Styles
 *
 * @package isl_2025
 * @since 1.0.0
 */

/* ==========================================================================
   테이블 기본 스타일
   ========================================================================== */
#calendar table {
    border-collapse: collapse !important;
    font-size: 12px !important;
    display: flex !important;
    justify-content: center !important;
    width: min-content !important;
    margin: auto !important;
    border-top: none !important;
}

#calendar th,
#calendar td {
    border: 1px solid #ccc !important;
    text-align: center !important;
    padding: 5px !important;
}

#calendar th.time-slot {
    width: 50px !important;
    background-color: #f0f0f0 !important;
    font-weight: bold !important;
}

#calendar .time-slot.now-header {
    background-color: #ffe680 !important;
    font-weight: bold !important;
}

/* ==========================================================================
   주차 및 요일 스타일
   ========================================================================== */
.week_row {
    background-color: #f9f9f9;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.week_day {
    background-color: rgb(202, 201, 201);
    font-weight: bold;
    text-align: center;
    flex: 1;
    min-width: 80px;
    text-align: center;
    font-size: 1rem;
    user-select: none;
}

.week_day.highlight {
    background-color: #ffdd57;
    font-weight: bold;
}

.week_name {
    background-color: #f0f0f0;
    font-weight: bold;
    text-align: center;
    width: 120px;
    font-size: 14px;
    user-select: none;
}

/* ==========================================================================
   FPGA 링크 스타일
   ========================================================================== */
.fpga-link {
    color: #003876;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.fpga-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ==========================================================================
   슬롯 스타일
   ========================================================================== */
.slot {
    flex: 1;
    min-width: 38px;
    height: 30px;
    cursor: pointer;
    border-right: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.slot:hover {
    background-color: #ffaaaa !important;
}

.slot.selected {
    background-color: #6ca8ff;
}

.slot.reserved {
    background-color: #ffcccb !important;
    color: black;
    font-size: 12px;
    text-align: center;
    cursor: default;
}

.slot.now {
    background-color: #ffe680 !important;
    font-weight: bold;
}

/* ==========================================================================
   예약 캘린더 레이아웃
   ========================================================================== */
.reservation-calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 88%;
    margin: auto;
}

#calendar {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

/* ==========================================================================
   제목 및 안내 문구
   ========================================================================== */
#title_reserv {
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    margin-top: 60px;
}

#title_info {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

/* ==========================================================================
   예약 버튼 영역
   ========================================================================== */
.resercation_btn_area {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
}

#reservation-reason {
    margin: 0 30px 0 30px;
    flex: 1;
    height: 40px;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease-in-out;
    max-width: 500px;
}

#reservation-reason:focus {
    border-color: #003876;
    background-color: #f3fff3;
}

#res_btn {
    padding: 0;
    width: 120px;
    height: 40px;
    font-size: 16px;
    font-weight: bold;
    background-color: #003876;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#res_btn:hover {
    background-color: #002855;
}

#res_btn:active {
    transform: scale(0.95);
}
