/* ==================== settings.css ==================== */
/* 설정 화면 전용 스타일 */
/* 공통 스타일은 common.css에 있음 */

/* ========== 설정 메뉴 ========== */
.settings-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.settings-menu-item:hover {
    background: var(--hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.settings-menu-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    border-color: var(--primary);
}

.settings-menu-item span:first-child {
    font-size: 18px;
}

/* ========== 설정 패널 ========== */
.setting-panel {
    display: none;
}

.setting-panel.active {
    display: block;
}

/* ========== 학교 카테고리 ========== */
.school-category-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.school-category-section:last-child {
    border-bottom: none;
}

.school-category-column {
    display: flex;
    flex-direction: column;
}

.category-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.school-list-container {
    background: var(--surface);
    border-radius: 8px;
    padding: 12px;
    min-height: 100px;
}

/* ========== 학교 아이템 ========== */
.school-item-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 6px;
}

.school-item-setting:hover {
    border-color: var(--primary);
    background: var(--hover);
    transform: translateX(2px);
}

.school-item-setting input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.school-item-setting label {
    flex: 1;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* ========== 버튼 스타일 ========== */
.btn-primary {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--hover);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    flex: 1;
}

/* ========== 수업료 입력 ========== */
.tuition-group {
    margin-bottom: 20px;
}

#settingTuition input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    transition: all 0.2s;
}

#settingTuition input[type="number"]:hover {
    border-color: var(--primary);
    background-color: var(--hover);
}

#settingTuition input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* ========== 수업료 이력 ========== */
.tuition-history-item {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.tuition-history-item:hover {
    border-color: var(--primary);
    background: var(--hover);
    transform: translateX(2px);
}

.tuition-history-item.selected {
    border-color: var(--primary);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.tuition-history-year {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 8px;
}

.tuition-history-details {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.tuition-history-details div {
    display: flex;
    justify-content: space-between;
}

.tuition-history-details span:first-child {
    color: var(--text);
    font-weight: 500;
}

.tuition-history-details span:last-child {
    font-weight: 600;
    color: var(--primary);
}

.tuition-history-grid {
    margin-top: 8px;
}

.tuition-grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.tuition-grid-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    gap: 8px;
}

.tuition-grid-values span:nth-child(odd) {
    flex: 1;
    text-align: center;
}

.tuition-grid-values span:nth-child(even) {
    color: var(--border);
    font-weight: 400;
}

/* ========== 휴무일 관리 ========== */
.holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
}

.holiday-item:hover {
    border-color: var(--primary);
    background: var(--hover);
    transform: translateX(2px);
}

.holiday-info {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.holiday-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Consolas', 'Monaco', monospace;
    min-width: 70px;
}

.holiday-name {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.btn-delete-sm {
    padding: 4px 8px;
    border: none;
    background: #FFE8EA;
    color: #DC5F6F;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-delete-sm:hover {
    background: #FFD5D9;
    transform: scale(1.05);
}