/* ========================================
   프로필 관리 페이지 CSS
   teacher-profile.html
   ======================================== */

/* 페이지 레이아웃 */
.page-layout {
    display: flex;
    min-height: calc(100vh - 140px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
}

/* 사이드바 */
.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-menu {
    background-color: #fff;
    border: 2px solid #5d4037;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-title {
    padding: 16px 20px;
    font-weight: 600;
    border-bottom: 1px solid #5d4037;
    background-color: #5d4037;
    color: #fff;
}

.sidebar-menu a {
    display: block;
    padding: 14px 20px;
    color: #5d4037;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.sidebar-menu a:last-child {
    border-bottom: none;
}

.sidebar-menu a:hover {
    background-color: #faf8f5;
}

.sidebar-menu a.active {
    background-color: #efebe9;
    font-weight: 600;
}

/* 메인 컨텐츠 */
.main-content {
    flex: 1;
    min-width: 0;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #5d4037;
}

/* 섹션 */
.section {
    background-color: #fff;
    border: 1px solid #d7ccc8;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #faf8f5;
    border-bottom: 1px solid #efebe9;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-body {
    padding: 24px;
}

/* 폼 요소 */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

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

.form-group .required {
    color: #e53935;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d7ccc8;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5d4037;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 12px;
    color: #8d6e63;
    margin-top: 6px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: #5d4037;
    color: #fff;
}

.btn-primary:hover {
    background-color: #4e342e;
}

.btn-secondary {
    background-color: #fff;
    color: #5d4037;
    border: 1px solid #5d4037;
}

.btn-secondary:hover {
    background-color: #faf8f5;
}

/* 헤더 네비게이션 */
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: #5d4037;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #8d6e63;
}

/* 푸터 */
.footer {
    background-color: #5d4037;
    color: #fff;
    text-align: center;
    padding: 24px;
    font-size: 13px;
}

/* 반응형 - 페이지 레이아웃 */
@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
        padding: 16px;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-menu {
        position: static;
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-menu a {
        padding: 8px 16px;
        border: 1px solid #d7ccc8;
        border-radius: 20px;
        font-size: 13px;
    }

    .sidebar-menu a.active {
        border-color: #5d4037;
    }
}

/* 프로필 카드 */
.profile-card {
    background-color: #fff;
    border: 2px solid #5d4037;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
}

.profile-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d7ccc8;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #5d4037;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo .photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #faf8f5;
    font-size: 48px;
}

.photo-edit-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(93, 64, 55, 0.9);
    color: #fff;
    text-align: center;
    padding: 6px;
    font-size: 11px;
    cursor: pointer;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-status {
    display: inline-block;
    padding: 4px 12px;
    background-color: #4caf50;
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.profile-status.pending {
    background-color: #ff9800;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: #8d6e63;
}

/* 정보 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #8d6e63;
}

.info-value {
    font-size: 14px;
}

/* 태그 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background-color: #faf8f5;
    border: 1px solid #5d4037;
    border-radius: 20px;
    font-size: 13px;
}

/* 수업료 설정 */
.price-setting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input input {
    width: 120px;
    padding: 12px 16px;
    border: 1px solid #5d4037;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
}

.price-input span {
    font-size: 14px;
    color: #8d6e63;
}

/* 시간표 */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.schedule-day {
    text-align: center;
}

.day-header {
    padding: 8px;
    background-color: #5d4037;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px 4px 0 0;
}

.day-slots {
    border: 1px solid #d7ccc8;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 8px;
    min-height: 100px;
}

.time-slot {
    padding: 4px 8px;
    background-color: #e8f5e9;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 4px;
}

.time-slot.unavailable {
    background-color: #ffebee;
}

/* 수정 버튼 */
.edit-btn {
    padding: 6px 16px;
    background-color: #fff;
    color: #5d4037;
    border: 1px solid #5d4037;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn:hover {
    background-color: #5d4037;
    color: #fff;
}

/* 반응형 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
