/* 교사초청 입시설명회 페이지 전용 스타일 */

/* 안내 배너 */
.teacher-visit-banner {
    position: relative;
    background: linear-gradient(135deg, #8e8e8e 0%, #b8b8b8 100%);
    padding: 0;
    overflow: hidden;
    min-height: 300px; /* 다른 페이지와 동일한 최소 높이 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-visit-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.teacher-visit-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.teacher-visit-banner__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 20px;
}

.teacher-visit-banner__content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.teacher-visit-banner__title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
}

.teacher-visit-banner__subtitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

.teacher-visit-banner__description {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 0;
}

.teacher-visit-banner__description p {
    margin-bottom: 6px;
}

/* 반응형 */
@media (max-width: 768px) {
    .teacher-visit-banner {
        min-height: 200px; /* 모바일에서 다른 페이지와 동일 */
    }

    .teacher-visit-banner__overlay {
        padding: 30px 20px;
    }

    .teacher-visit-banner__title {
        font-size: 20px;
    }

    .teacher-visit-banner__subtitle {
        font-size: 16px;
    }

    .teacher-visit-banner__description {
        font-size: 13px;
    }
}

/* 메인 콘텐츠 */
.teacher-visit-content {
    background: #f5f5f5;
    padding: 50px 20px;
    min-height: 600px;
}

.teacher-visit-content__container {
    max-width: 1400px;
    margin: 0 auto;
}

.teacher-visit-content__title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

/* 테이블 */
.application-table-wrapper {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.application-table {
    width: 100%;
    border-collapse: collapse;
}

.application-table thead {
    background: #f8f9fa;
}

.application-table th {
    padding: 18px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.application-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: 0.2s;
}

.application-table tbody tr:hover {
    background: #f8f9fa;
}

.application-table tbody tr:last-child {
    border-bottom: none;
}

.application-table td {
    padding: 18px 15px;
    text-align: center;
    font-size: 15px;
    color: #495057;
}

.application-table td:first-child {
    font-weight: bold;
    color: #333;
}

/* 상태 뱃지 */
.status-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    border: none;
    outline: none;
}

.status-badge--closed {
    background: #dc3545;
    cursor: default;
}

.status-badge--open {
    background: #6f42c1;
}

.status-badge--open:hover {
    background: #5a32a3;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(111, 66, 193, 0.3);
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    color: #495057;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 15px;
    color: #495057;
    transition: 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cancel {
    background: #6c757d;
    color: #fff;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-submit {
    background: #6f42c1;
    color: #fff;
}

.btn-submit:hover {
    background: #5a32a3;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(111, 66, 193, 0.3);
}

/* 교사 정보 입력 스타일 */
.teacher-info-item {
    margin-bottom: 12px;
}

.teacher-info-row {
    display: grid;
    grid-template-columns: auto 1fr 1.5fr;
    gap: 10px;
    align-items: center;
}

.teacher-info-row input[type="text"],
.teacher-info-row input[type="tel"] {
    width: 100%;
}

.teacher-info-row .teacher-delete-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* 교사 추가/삭제 버튼 스타일 */
.btn-teacher-add,
.btn-teacher-remove {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-teacher-add {
    background: #28a745;
    color: white;
}

.btn-teacher-add:hover {
    background: #218838;
}

.btn-teacher-remove {
    background: #dc3545;
    color: white;
}

.btn-teacher-remove:hover {
    background: #c82333;
}

/* 검색 가능한 셀렉트 */
.searchable-select {
    position: relative;
}

.searchable-select input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 14px;
    color: #495057;
    transition: 0.2s;
    box-sizing: border-box;
}

.searchable-select input[type="text"]:focus {
    outline: none;
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

/* 드롭다운 */
.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: -1px;
    display: none;
}

.searchable-select-dropdown.show {
    display: block;
}

/* 드롭다운 옵션 */
.searchable-select-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
    color: #495057;
    border-bottom: 1px solid #f0f0f0;
}

.searchable-select-option:last-child {
    border-bottom: none;
}

.searchable-select-option:hover,
.searchable-select-option.selected {
    background: #f8f9fa;
}

.searchable-select-option.no-results {
    color: #999;
    text-align: center;
    cursor: default;
}

.searchable-select-option.no-results:hover {
    background: #fff;
}

/* 스크롤바 스타일 */
.searchable-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.searchable-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.searchable-select-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.searchable-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 반응형 */
@media (max-width: 1200px) {
    .application-table {
        font-size: 12px;
    }

    .application-table th,
    .application-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 992px) {
    .application-table-wrapper {
        overflow-x: auto;
    }

    .application-table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .teacher-visit-content {
        padding: 30px 15px;
    }

    .teacher-visit-content__title {
        font-size: 20px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .teacher-info-row {
        grid-template-columns: auto 1fr;
        gap: 8px;
    }

    .teacher-info-row .teacher-delete-checkbox {
        grid-row: 1 / 3;
    }

    .searchable-select-dropdown {
        max-height: 200px;
    }

    .searchable-select-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .teacher-visit-banner__overlay {
        padding: 25px 15px;
    }

    .teacher-visit-banner__title {
        font-size: 18px;
    }

    .teacher-visit-banner__subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .teacher-visit-banner__description {
        font-size: 11px;
        line-height: 1.7;
    }

    .teacher-visit-content__title {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .status-badge {
        padding: 6px 15px;
        font-size: 11px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    .modal-title {
        font-size: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}