/* 강의시간표 공통 스타일 */

/* 탭 */
.sch-tab-wrap {
    margin-bottom: 16px;
    border-bottom: 2px solid #336699;
}
.sch-tab {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #336699;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 4px 4px 0 0;
    margin-right: 0;
}
.sch-tab.active {
    background: #336699;
    color: #fff;
    border: 2px solid #336699;
    border-bottom: 2px solid #336699;
    margin-bottom: -2px;
}

/* 검색 폼 */
.sch-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    background: #f4f7fb;
    border: 1px solid #dce3ec;
    border-radius: 6px;
    padding: 14px 18px;
}
.sch-search-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sch-search label {
    font-size: 13px;
    font-weight: bold;
    color: #444;
    white-space: nowrap;
}
.sch-search select {
    height: 32px;
    padding: 0 28px 0 8px;
    font-size: 13px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 10px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.sch-btn-search {
    height: 32px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background: #336699;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.sch-btn-search:hover {
    background: #265080;
}

/* 시간표 테이블 */
.sch-table-wrap {
    overflow-x: auto;
}
.sch-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 13px;
}
.sch-table thead tr {
    background: #f0f4f8;
}
.sch-table th {
    border: 1px solid #ccc;
    padding: 8px;
    min-width: 100px;
    white-space: nowrap;
    text-align: center;
}
.sch-table th.col-day {
    min-width: 80px;
}
.sch-table th .period-time {
    font-weight: normal;
    font-size: 11px;
}
.sch-table td.day-cell {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    background: #fafafa;
    white-space: nowrap;
    font-weight: bold;
}
.sch-table td.day-cell .day-date {
    font-weight: normal;
    font-size: 12px;
}
.sch-table td.lec-cell {
    border: 1px solid #ccc;
    padding: 6px;
    vertical-align: middle;
    text-align: center;
    min-width: 100px;
}
.sch-table td.lec-cell a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
}
.sch-table td.lec-cell .lec-subject {
    font-weight: bold;
}
.sch-table td.lec-cell .lec-professor {
    color: #666;
}
.sch-no-data {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 15px;
}

/* 바로가기 버튼 */
.sch-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.sch-link-btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}
.sch-link-btn.btn-course   { background: #1a3a6b; color: #fff; }
.sch-link-btn.btn-ecampus  { background: #2e6da4; color: #fff; }
.sch-link-btn.btn-excel    { background: #2a8a7e; color: #fff; }
.sch-link-btn.btn-syllabus { background: #7aab7a; color: #fff; }
.sch-link-btn:hover { opacity: 0.85; }

/* 로딩 오버레이 */
#sch-dynamic-wrap {
    position: relative;
    min-height: 120px;
}
#sch-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.78);
    z-index: 10;
    align-items: center;
    justify-content: center;
}
#sch-loading.active {
    display: flex;
}
.sch-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #dce3ec;
    border-top-color: #336699;
    border-radius: 50%;
    animation: sch-spin 0.75s linear infinite;
}
@keyframes sch-spin {
    to { transform: rotate(360deg); }
}

/* 주차 네비게이션 */
.sch-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    background: #f0f4f8;
    border: 1px solid #dce3ec;
    border-radius: 6px;
    padding: 10px 16px;
}
.sch-week-title {
    font-size: 16px;
    font-weight: bold;
    color: #336699;
}
.sch-week-arrow {
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    color: #336699;
    text-decoration: none;
    line-height: 1;
    padding: 0 10px;
    border-radius: 4px;
    transition: background 0.15s;
}
.sch-week-arrow:hover {
    background: #336699;
    color: #fff;
}
.sch-week-arrow.disabled {
    color: #bbb;
    cursor: default;
}
