/* Teacher Profile Modal */
.teacher-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.teacher-modal.-is-visible {
    display: flex;
}

.teacher-modal__wrapper {
    position: relative;
    background: white;
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 모달 헤더 */
.teacher-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: linear-gradient(135deg, #6c5ce7 0%, #5a4fd1 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.teacher-modal__header h3 {
    margin: 0;
    color: white;
}

.teacher-modal__close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.teacher-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 모달 바디 (스크롤 영역) */
.teacher-modal__body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 180px);
}

.teacher-modal__body::-webkit-scrollbar {
    width: 8px;
}

.teacher-modal__body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.teacher-modal__body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.teacher-modal__body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Career Input Group */
.career-input-group-become {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.career-input-group-become input {
    flex: 1;
}

.career-input-group-become button {
    flex-shrink: 0;
}

/* Career List Items */
.career-item-become {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.career-item-become:hover {
    background: #e9ecef;
}

.career-item-text-become {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.career-item-text-become i {
    color: #6c5ce7;
    font-size: 14px;
}

.career-item-delete-become {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.career-item-delete-become:hover {
    background: #dc2626;
}

.career-item-delete-become i {
    margin-right: 4px;
}

.career-empty-become {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
}

/* 모달 하단 (고정) */
.teacher-modal__footer {
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: center;
}

.teacher-modal__footer .button {
    max-width: 400px;
}

/* 프로모션 이미지 업로드 영역 */
.image-upload-container {
    position: relative;
    display: inline-block;
}

.image-preview {
    position: relative;
    width: 300px;
    height: 330px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.image-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 300px;
    height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: #6c5ce7;
    background: #f9fafb;
}

.image-upload-area.drag-over {
    border-color: #6c5ce7;
    background: #f0f0ff;
}

.upload-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #9ca3af;
}

.upload-placeholder p {
    margin: 10px 0 5px 0;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.upload-placeholder small {
    color: #6b7280;
    font-size: 12px;
}

/* Form inputs */
.teacher-modal__body .form-input,
.teacher-modal__body textarea,
.teacher-modal__body select,
.teacher-modal__body input[type="date"],
.teacher-modal__body input[type="text"],
.teacher-modal__body input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.teacher-modal__body .form-input:focus,
.teacher-modal__body textarea:focus,
.teacher-modal__body select:focus,
.teacher-modal__body input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.teacher-modal__body textarea {
    resize: vertical;
    min-height: 80px;
}

.teacher-modal__body label {
    display: block;
    margin-bottom: 8px;
}
