/* Compact Calendar CSS for ILT System */
/* 컴팩트하고 가독성 좋은 캘린더 디자인 */

/* 날짜 네비게이션 */
.date_view_box {
    padding: 10px 0;
    margin-bottom: 15px;
    text-align: center;
}

.date_view {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.date_view .date {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    min-width: 140px;
}

.date_view .btn_area button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.date_view .btn_area button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.date_view .prev, .date_view .next {
    width: 36px;
    height: 36px;
    position: relative;
}

.date_view .prev:after, .date_view .next:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%);
}

.date_view .prev:after {
    transform: translate(-25%, -50%) rotate(135deg);
}

.date_view .next:after {
    transform: translate(-75%, -50%) rotate(-45deg);
}

.date_view .today {
    font-size: 15px;
    color: #2962ff;
    font-weight: 500;
}

/* 캘린더 래퍼 */
.calendar_wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 캘린더 테이블 */
.cldTbl table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* 캘린더 헤더 */
.cldTbl thead th {
    padding: 12px 5px;
    font-weight: 600;
    font-size: 15px;
    color: #555;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.cldTbl thead th:first-child {
    color: #d32f2f;
}

.cldTbl thead th:last-child {
    color: #1976d2;
}

/* 캘린더 셀 */
.cldTbl tbody td {
    height: 90px;
    padding: 6px;
    border: 1px solid #e9ecef;
    vertical-align: top;
    position: relative;
    background: #fff;
    transition: background-color 0.2s;
}

.cldTbl tbody td:hover {
    background-color: #f8f9fa;
}

/* 날짜 번호 */
.cldTbl td em {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

/* 주말 색상 */
.cldTbl td:first-child em {
    color: #d32f2f;
}

.cldTbl td:last-child em {
    color: #1976d2;
}

/* 오늘 날짜 강조 */
.cldTbl td.today {
    background-color: #fff3e0;
}

.cldTbl td.today em {
    background: #ff6f00;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
}

/* 일정 아이템 */
.calLink {
    margin: 2px 0;
    padding: 3px 5px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: all 0.2s;
}

.calLink:hover {
    transform: translateX(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.calLink button, .calLink a {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
    width: 100%;
    display: block;
    text-decoration: none;
}

/* 일정 색상 최적화 */
.calLink {
    opacity: 0.9;
}

.calLink:hover {
    opacity: 1;
}

/* 공휴일 스타일 */
.calLink span {
    font-weight: 500;
}

/* 시험 일정 스타일 */
.exam-period {
    font-weight: 600;
    margin-top: 3px;
}

.exam-period span {
    color: #fff;
    font-size: 12px;
}

/* 원서접수 기간 */
.exam-application {
    background-color: #4CAF50 !important;
}

/* 시험일 */
.exam-day {
    background-color: #2196F3 !important;
}

/* 원서접수 기간의 셀 배경 */
.selectDay.exam-reception-period {
    background-color: #E8F5E9 !important;
}

/* 시험일의 셀 배경 */
.selectDay.exam-day-cell {
    background-color: #E3F2FD !important;
}

/* 버튼 스타일 */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn_blue {
    background: #2962ff;
    color: #fff;
}

.btn_blue:hover {
    background: #0039cb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .cldTbl tbody td {
        height: 70px;
        padding: 4px;
    }
    
    .cldTbl td em {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 14px;
    }
    
    .calLink {
        font-size: 11px;
        padding: 2px 4px;
    }
}

/* 프린트 스타일 */
@media print {
    .date_view_box, .btn {
        display: none;
    }
    
    .calendar_wrap {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .cldTbl td {
        height: 60px;
    }
    
    .calLink {
        font-size: 9px;
    }
}