/* ==================== common.css ==================== */
/* 모든 화면에서 공통으로 사용하는 컴포넌트 스타일 */

/* ========== 체크박스 아이템 (공통) ========== */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 6px;
}

.checkbox-item:hover {
    background: var(--surface-muted);
    border-color: var(--primary);
}

.checkbox-item.selected,
.checkbox-item.active {
    background: var(--primary);
    border-color: var(--primary-dark);
    color: white;
}

.checkbox-item.selected label,
.checkbox-item.active label {
    color: white;
}

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

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

/* ========== 학생 목록 아이템 (공통) ========== */
/* 학생 리스트 스타일은 lists.css로 이동되었습니다. */

/* ========== 사이드바 섹션 (공통) ========== */
.sidebar-section {
    margin-bottom: 18px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--menu-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== 학생 리스트 컨테이너 (공통) ========== */
/* 학생 리스트 스타일은 lists.css로 이동되었습니다. */

/* ========== 사이드바 버튼 (공통) ========== */
.sidebar-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 18px;
}

.btn-s {
    padding: 8px 6px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

.btn-s.edit {
    background: #E8E2F5;
    color: var(--primary);
}

.btn-s.edit:hover {
    background: #DDD5ED;
}

.btn-s.delete {
    background: #FFE8EA;
    color: #DC5F6F;
}

.btn-s.delete:hover {
    background: #FFD5D9;
}

/* ========== 메인 콘텐츠 레이아웃 (공통) ========== */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    gap: 16px;
    max-height: 100vh;
}

.calendar-section {
    flex: 1;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.items-section {
    width: 260px;
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

/* ========== 헤더 (공통) ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--subtle);
}

.school-title {
    font-size: 22px;
    color: var(--primary);
    font-weight: 600;
}

.exam-badge {
    font-size: 14px;
    color: var(--text);
    padding: 6px 12px;
    background: var(--surface-muted);
    border-radius: 6px;
}

/* ========== 작업 영역 컨테이너 (공통) ========== */
.calendar-container {
    margin-top: 16px;
}

/* ========== 우측 섹션 헤더 (공통) ========== */
.items-header {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--subtle);
}

.items-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--subtle);
}

/* ========== 빈 상태 (공통) ========== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text);
}

.empty-state h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
}

/* ========== 액션 버튼 영역 (공통) ========== */
.items-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--subtle);
}

.action-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.print {
    background: var(--primary);
    color: white;
}

.action-btn.print:hover {
    background: var(--primary-dark);
}

/* ========== 정보 행 (공통) ========== */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

/* ========== 정보 그리드 (공통) ========== */
/* 정보 카드 스타일은 components/cards.css로 이동되었습니다. */