/* ========================================
   선생님 대시보드 CSS
   teacher-dashboard.html
   ======================================== */

/* 레이아웃 */
.page-layout {
    flex: 1;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    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;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* 대시보드 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: #fff;
    border: 2px solid #5d4037;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #5d4037;
}

.stat-label {
    font-size: 13px;
    color: #8d6e63;
    margin-top: 4px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.stat-unit {
    font-size: 16px;
    font-weight: 500;
}

.stat-change {
    font-size: 12px;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
}

.stat-change.positive {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stat-change.negative {
    background-color: #ffebee;
    color: #c62828;
}

.stat-card.highlight {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-color: #c2185b;
}

/* 강의 수익 테이블 */
.earnings-table-wrapper {
    overflow-x: auto;
}

.earnings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.earnings-table thead th {
    background: #efebe9;
    color: #5d4037;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #d7ccc8;
    white-space: nowrap;
}

.earnings-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0ebe7;
    color: #5d4037;
}

.earnings-table tbody tr:hover {
    background: #faf8f5;
}

.earnings-table tbody td.amount {
    font-weight: 600;
    color: #2e7d32;
}

.earnings-table tbody td.empty-message {
    text-align: center;
    padding: 32px 16px;
    color: #8d6e63;
}

/* 수수료 요약 */
.earnings-summary {
    margin-top: 16px;
    padding: 16px;
    background: #faf8f5;
    border-radius: 8px;
    border: 1px solid #efebe9;
}

.earnings-summary .summary-title {
    font-size: 14px;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 12px;
}

.earnings-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #5d4037;
}

.earnings-summary .summary-row.deduction {
    color: #8d6e63;
}

.earnings-summary .summary-row.deduction .summary-amount {
    color: #c62828;
}

.earnings-summary .summary-row.total {
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
    padding-top: 8px;
}

.earnings-summary .summary-row.total .summary-amount {
    color: #2e7d32;
    font-size: 16px;
}

.earnings-summary .summary-divider {
    height: 1px;
    background: #d7ccc8;
    margin: 8px 0;
}

.earnings-summary .summary-amount {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.earnings-summary .summary-note {
    margin-top: 10px;
    font-size: 12px;
    color: #8d6e63;
}

/* 라이브 강의 개설 배너 */
.live-banner {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-banner-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-banner-content p {
    font-size: 14px;
    opacity: 0.9;
}

.live-badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.live-badge-icon::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-live {
    background-color: #fff;
    color: #e53935;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-live:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 강의 개설 버튼 */
.btn-create-class {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
    transition: all 0.2s;
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-create-class:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.5);
}

.btn-create-class::before {
    content: "🎬";
    font-size: 16px;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
    }
    50% {
        box-shadow: 0 3px 15px rgba(229, 57, 53, 0.6);
    }
}

/* 섹션 카드 */
.section-card {
    background-color: #fff;
    border: 2px solid #5d4037;
    border-radius: 8px;
    margin-bottom: 24px;
}

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

.section-title {
    font-size: 16px;
    font-weight: 600;
}

.section-body {
    padding: 24px;
}

/* 학생 관리 헤더 */
.student-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-search input {
    padding: 8px 12px;
    border: 1px solid #d7ccc8;
    border-radius: 6px;
    font-size: 13px;
    width: 180px;
}

.student-search input:focus {
    outline: none;
    border-color: #5d4037;
}

/* 학생 통계 */
.student-stats {
    display: flex;
    gap: 24px;
    padding: 16px;
    background-color: #faf8f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.student-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.student-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #5d4037;
}

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

/* 찜한 학생 목록 */
.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.student-card {
    border: 1px solid #d7ccc8;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.student-card:hover {
    border-color: #5d4037;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.student-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #5d4037;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.student-info {
    flex: 1;
}

.student-name {
    font-weight: 600;
    font-size: 14px;
}

.student-email {
    font-size: 12px;
    color: #8d6e63;
}

.student-date {
    font-size: 11px;
    color: #a1887f;
    margin-top: 2px;
}

.student-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.student-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #e8f5e9;
    color: #2e7d32;
}

.student-badge.new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.student-badge.active {
    background-color: #fff3e0;
    color: #f57c00;
}

/* 학생 필터 탭 */
.student-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid #d7ccc8;
    border-radius: 20px;
    background: #fff;
    color: #5d4037;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #5d4037;
    background-color: #faf8f5;
}

.filter-tab.active {
    background-color: #5d4037;
    color: #fff;
    border-color: #5d4037;
}

.student-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.student-action-btn {
    padding: 4px 10px;
    border: 1px solid #d7ccc8;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.2s;
    color: #5d4037;
}

.student-action-btn:hover {
    background-color: #5d4037;
    border-color: #5d4037;
    color: #fff;
}

/* 1:1 과외 버튼 */
.student-action-btn.onetoone-btn {
    color: #7b1fa2;
    border-color: #ce93d8;
}

.student-action-btn.onetoone-btn:hover {
    background: #7b1fa2;
    border-color: #7b1fa2;
    color: #fff;
}

/* 대상 학생 표시 */
.target-student-info {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.target-student-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f3e5f9, #e8eaf6);
    border: 1px solid #ce93d8;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #6a1b9a;
}

.target-student-badge svg {
    flex-shrink: 0;
}

.target-student-name {
    font-weight: 600;
    color: #4a148c;
}

.target-student-label {
    color: #7b1fa2;
}

/* 예정된 강의 목록 */
.scheduled-classes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scheduled-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #d7ccc8;
    border-radius: 8px;
    transition: all 0.2s;
}

.scheduled-item.live-now {
    border-color: #e53935;
    background-color: #ffebee;
}

.scheduled-time {
    text-align: center;
    min-width: 80px;
}

.scheduled-date {
    font-size: 12px;
    color: #8d6e63;
}

.scheduled-hour {
    font-size: 20px;
    font-weight: 700;
}

.scheduled-item.live-now .scheduled-hour {
    color: #e53935;
}

.scheduled-info {
    flex: 1;
}

.scheduled-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.scheduled-meta {
    font-size: 13px;
    color: #8d6e63;
}

.scheduled-status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.scheduled-status.live {
    background-color: #e53935;
    color: #fff;
}

.scheduled-status.upcoming {
    background-color: #5d4037;
    color: #fff;
}

.scheduled-status.ended {
    background-color: #9e9e9e;
    color: #fff;
}

.scheduled-actions {
    display: flex;
    gap: 8px;
}

/* 빠른 메뉴 */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 파일 업로드 영역 */
.file-upload-area {
    border: 2px dashed #d7ccc8;
    border-radius: 8px;
    transition: all 0.2s;
}

.file-upload-area.dragover {
    border-color: #e53935;
    background-color: #ffebee;
}

.file-upload-placeholder {
    padding: 24px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #8d6e63;
}

.file-upload-placeholder:hover {
    background-color: #faf8f5;
}

.file-upload-placeholder span {
    font-size: 14px;
}

.file-upload-placeholder .file-hint {
    font-size: 12px;
    color: #a1887f;
}

.file-selected {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffebee;
}

.file-selected .file-name {
    flex: 1;
    font-size: 14px;
    color: #5d4037;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-selected .file-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #8d6e63;
    cursor: pointer;
    padding: 4px 8px;
}

.file-selected .file-remove:hover {
    color: #e53935;
}

.upload-progress {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #efebe9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #e53935;
    border-radius: 4px;
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    font-size: 13px;
    color: #5d4037;
    min-width: 40px;
    text-align: right;
}

/* 체크박스 스타일 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #5d4037;
}

/* OBS 가이드 섹션 */
.obs-guide-section {
    border-color: #4CAF50;
}

.obs-guide-header {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border-bottom: none;
}

.obs-guide-header .section-title {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.obs-guide-badge {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
}

.obs-guide-body {
    background: #f1f8e9;
}

.obs-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.obs-guide-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2E7D32;
}

.obs-guide-list {
    font-size: 13px;
    color: #5d4037;
    line-height: 1.8;
    padding-left: 20px;
}

.obs-info-box {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #C8E6C9;
}

.obs-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.obs-input-group label {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.obs-input-row {
    display: flex;
    gap: 8px;
}

.obs-input {
    flex: 1;
    padding: 10px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

.obs-btn {
    padding: 10px 14px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.obs-btn-copy {
    background: #4CAF50;
}

.obs-btn-toggle {
    background: #666;
}

.obs-tip-box {
    margin-top: 16px;
    padding: 12px 16px;
    background: #E8F5E9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.obs-tip-text {
    font-size: 13px;
    color: #2E7D32;
}

/* ========================================
   정산 계좌 등록 섹션
   ======================================== */
.payout-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.payout-badge.registered {
    background: #e8f5e9;
    color: #2e7d32;
}

.payout-badge:not(.registered) {
    background: #ffebee;
    color: #c62828;
}

.payout-info-box {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.payout-info-box p {
    margin: 0;
    font-size: 14px;
    color: #1565c0;
}

.payout-account-form {
    max-width: 400px;
}

.payout-account-form .form-group {
    margin-bottom: 16px;
}

.payout-account-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #5d4037;
}

.payout-account-form select,
.payout-account-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d7ccc8;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

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

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

/* 등록된 계좌 카드 */
.registered-account-card {
    background: #faf8f5;
    border: 2px solid #d7ccc8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.account-label {
    font-size: 14px;
    color: #8d6e63;
}

.account-value {
    font-size: 14px;
    font-weight: 500;
    color: #5d4037;
}

/* ========================================
   정산 현황 섹션
   ======================================== */
.payout-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* D+8 정산 시스템: 4열 그리드 */
.payout-summary-grid.settlement-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* 출금 가능 카드 강조 */
.payout-summary-card.withdrawable-card {
    border: 2px solid #2e7d32;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

/* 출금 버튼 스타일 */
.withdrawal-action .btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.withdrawal-action .btn-lg:disabled {
    background: #bdbdbd;
    border-color: #bdbdbd;
    cursor: not-allowed;
}

.withdrawal-info {
    transition: color 0.2s;
}

.withdrawal-info strong {
    font-weight: 700;
}

.payout-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #faf8f5;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.payout-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payout-summary-info {
    flex: 1;
}

.payout-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #3e2723;
}

.payout-summary-label {
    font-size: 13px;
    color: #8d6e63;
    margin-top: 2px;
}

/* 정산 내역 리스트 */
.payout-history-list {
    background: #faf8f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-height: 400px;
    overflow-y: auto;
}

.payout-history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.payout-history-item:last-child {
    border-bottom: none;
}

.payout-history-date {
    font-size: 13px;
    color: #8d6e63;
    min-width: 80px;
}

.payout-history-info {
    flex: 1;
}

.payout-history-amount {
    font-size: 16px;
    font-weight: 600;
    color: #3e2723;
}

.payout-history-meta {
    font-size: 12px;
    color: #8d6e63;
    margin-top: 2px;
}

.payout-history-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
}

.payout-history-status.status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.payout-history-status.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.payout-history-status.status-failed {
    background: #ffebee;
    color: #c62828;
}

.payout-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #8d6e63;
}

.payout-empty-state p {
    margin-top: 12px;
    font-size: 14px;
}

/* 예약 시간 변경 모달 */
.reschedule-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.reschedule-modal {
    background: #fff;
    border-radius: 12px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.reschedule-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #efebe9;
}

.reschedule-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #5d4037;
}

.reschedule-modal-header .modal-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #8d6e63;
    cursor: pointer;
    padding: 0 4px;
}

.reschedule-modal-body {
    padding: 20px;
}

.reschedule-lecture-title {
    font-size: 14px;
    color: #8d6e63;
    margin: 0 0 16px 0;
}

.reschedule-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 6px;
    margin-top: 12px;
}

.reschedule-form label:first-child {
    margin-top: 0;
}

.reschedule-form input[type="date"],
.reschedule-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7ccc8;
    border-radius: 8px;
    font-size: 14px;
    color: #5d4037;
    background: #fff;
    box-sizing: border-box;
}

.reschedule-time-row {
    display: flex;
    gap: 8px;
}

.reschedule-time-row select {
    flex: 1;
}

.reschedule-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #efebe9;
}

/* ========================================
   반응형 - 태블릿 (1024px 이하)
   ======================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .live-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .obs-guide-grid,
    .obs-info-grid {
        grid-template-columns: 1fr;
    }

    .page-layout {
        padding: 20px;
        gap: 20px;
    }

    .sidebar {
        width: 200px;
    }
}

/* ========================================
   반응형 - 모바일 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .sidebar {
        width: 100%;
    }

    /* 사이드바 가로 스크롤 */
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 8px;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-menu a {
        flex-shrink: 0;
        padding: 12px 16px;
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        font-size: 13px;
        white-space: nowrap;
    }

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

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

    /* 페이지 타이틀 */
    .page-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* 대시보드 그리드 */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

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

    .stat-label {
        font-size: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    /* 섹션 카드 */
    .section-card {
        margin-bottom: 16px;
    }

    .section-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .section-title {
        font-size: 15px;
    }

    .section-body {
        padding: 16px;
    }

    /* 수익 테이블 */
    .earnings-table thead th,
    .earnings-table tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* 라이브 배너 */
    .live-banner {
        padding: 20px;
    }

    .live-banner-content h3 {
        font-size: 17px;
    }

    .live-banner-content p {
        font-size: 13px;
    }

    .btn-live {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* 학생 관리 */
    .student-header-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .student-search {
        width: 100%;
    }

    .student-search input {
        width: 100%;
    }

    .student-stats {
        flex-wrap: wrap;
        gap: 16px;
        padding: 14px;
    }

    .student-stat-item {
        flex: 1 1 calc(50% - 8px);
    }

    .student-stat-value {
        font-size: 20px;
    }

    .student-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .student-card {
        padding: 14px;
    }

    .student-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .student-action-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* 예정된 강의 */
    .scheduled-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }

    .scheduled-time {
        min-width: 70px;
    }

    .scheduled-hour {
        font-size: 18px;
    }

    .scheduled-info {
        flex: 1 1 100%;
        order: 3;
    }

    .scheduled-status {
        padding: 5px 10px;
        font-size: 11px;
    }

    .scheduled-actions {
        width: 100%;
        order: 4;
        justify-content: flex-end;
    }

    /* 파일 업로드 */
    .file-upload-placeholder {
        padding: 20px;
    }

    /* OBS 가이드 */
    .obs-guide-list {
        font-size: 12px;
        padding-left: 16px;
    }

    .obs-info-box {
        padding: 14px;
    }

    .obs-input-row {
        flex-direction: column;
        gap: 8px;
    }

    .obs-btn {
        width: 100%;
        padding: 12px;
    }

    /* 정산 계좌 */
    .payout-account-form {
        max-width: none;
    }

    .registered-account-card {
        padding: 16px;
    }

    /* 정산 현황 */
    .payout-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payout-summary-grid.settlement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payout-summary-card {
        padding: 14px;
    }

    /* 출금 버튼 */
    .withdrawal-action .btn-lg {
        width: 100%;
        padding: 12px 20px;
    }

    .payout-summary-value {
        font-size: 18px;
    }

    .payout-history-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .payout-history-date {
        min-width: auto;
        order: 1;
    }

    .payout-history-status {
        order: 2;
    }

    .payout-history-info {
        width: 100%;
        order: 3;
    }
}

/* ========================================
   반응형 - 작은 모바일 (480px 이하)
   ======================================== */
@media (max-width: 480px) {
    .page-layout {
        padding: 12px;
    }

    /* 대시보드 그리드 1열 */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 14px;
    }

    .stat-icon {
        margin: 0;
        width: 48px;
        height: 48px;
    }

    .stat-content {
        flex: 1;
    }

    .stat-value {
        font-size: 22px;
    }

    .section-header {
        padding: 12px 14px;
    }

    .section-body {
        padding: 14px;
    }

    /* 사이드바 메뉴 */
    .sidebar-menu a {
        padding: 10px 14px;
        font-size: 12px;
    }

    /* 학생 통계 */
    .student-stats {
        gap: 12px;
        padding: 12px;
    }

    .student-stat-value {
        font-size: 18px;
    }

    .student-stat-label {
        font-size: 11px;
    }

    /* 필터 탭 */
    .student-filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 학생 카드 */
    .student-card {
        padding: 12px;
        gap: 10px;
    }

    .student-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .student-name {
        font-size: 13px;
    }

    .student-email {
        font-size: 11px;
    }

    /* 예정 강의 */
    .scheduled-time {
        min-width: auto;
    }

    .scheduled-date {
        font-size: 11px;
    }

    .scheduled-hour {
        font-size: 16px;
    }

    .scheduled-title {
        font-size: 14px;
    }

    .scheduled-meta {
        font-size: 12px;
    }

    /* 수익 테이블 작은 모바일 */
    .earnings-table thead th,
    .earnings-table tbody td {
        padding: 6px 8px;
        font-size: 11px;
    }

    /* 라이브 배너 */
    .live-banner {
        padding: 16px;
    }

    .live-banner-content h3 {
        font-size: 16px;
    }

    .btn-live {
        width: 100%;
        padding: 14px 20px;
    }

    .btn-create-class {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* 학생 선택 드롭다운 */
.student-select-group {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f6f4;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
}

.student-select-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 6px;
}

.student-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7ccc8;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

.student-select:focus {
    outline: none;
    border-color: #8d6e63;
    box-shadow: 0 0 0 2px rgba(141, 110, 99, 0.15);
}

.student-select-hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    margin-bottom: 0;
}
