/* 관리자 대시보드 스타일 */

/* 대시보드 레이아웃 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* PDF 뷰어 모달 스타일 */
#pdfViewerModal .modal-content {
    background: #fff;
    margin: 2% auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#pdfViewerModal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
}

#pdfViewerModal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

#pdfViewerModal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    padding: 15px 20px;
    text-align: right;
}

/* PDF 로딩 스피너 (재정의) */
#pdfViewerModal .pdf-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* PDF 뷰 버튼 스타일 */
.action-btn.pdf-view-btn {
    background: transparent;
    color: #dc3545;
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s;
}

.action-btn.pdf-view-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* 그리드 뷰에서 PDF 버튼 */
.content-grid .pdf-view-btn svg {
    width: 14px;
    height: 14px;
}

.content-grid .item-actions {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

/* 리스트 뷰에서 PDF 버튼 */
.list-table .pdf-view-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}

.list-table .pdf-view-btn:hover {
    background: #fff3e0;
    border-radius: 3px;
}

/* 모달에서 버튼 스타일 추가 */
.btn.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn.btn-info:hover {
    background: #138496;
}

.dashboard-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 대시보드 전용 새로고침 버튼 */
.dashboard-header .btn-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.dashboard-header .btn-refresh:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 통계 카드 그리드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.users {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon.files {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-icon.logins {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-icon.prints {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    transition: opacity 0.3s;
}

.stat-sub {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* 차트 섹션 */
.chart-section, .activity-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.chart-date, .activity-count {
    font-size: 13px;
    color: #666;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 12px;
}

.chart-container {
    height: 200px;
    position: relative;
}

.chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-graph {
    display: flex;
    height: 100%;
    align-items: flex-end;
    gap: 20px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    padding: 10px 0;
    width: 30px;
}

.chart-bars {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    height: 180px;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #4CAF50, #2196F3);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.chart-bar:hover {
    transform: scaleY(1.05);
    filter: brightness(1.1);
}

.bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.bar-label {
    font-size: 11px;
    color: #666;
}

.bar-day {
    font-size: 10px;
    color: #999;
}

/* 활동 테이블 */
.activity-table-wrapper {
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.activity-table th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.activity-table tbody tr:hover {
    background: #f8f9fa;
}

.activity-table tbody tr:last-child {
    border-bottom: none;
}

.activity-table td {
    padding: 14px 12px;
    font-size: 14px;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px !important;
}

.user-cell .user-name {
    font-weight: 600;
    color: #333;
}

.action-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.action-login {
    background: #e3f2fd;
    color: #1976d2;
}

.action-logout {
    background: #fce4ec;
    color: #c2185b;
}

.action-create {
    background: #e8f5e9;
    color: #388e3c;
}

.action-update {
    background: #fff3e0;
    color: #f57c00;
}

.action-delete {
    background: #ffebee;
    color: #d32f2f;
}

.action-view {
    background: #f3e5f5;
    color: #7b1fa2;
}

.action-download {
    background: #e0f2f1;
    color: #00796b;
}

.action-upload {
    background: #e1f5fe;
    color: #0277bd;
}

.action-default {
    background: #f5f5f5;
    color: #666;
}

.academy-cell {
    color: #666;
}

.time-cell .time-ago {
    color: #999;
    font-size: 13px;
}

/* 페이지네이션 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.items-per-page {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.items-per-page:hover,
.items-per-page:focus {
    border-color: #4CAF50;
    outline: none;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not([disabled]) {
    background: #f5f5f5;
    border-color: #4CAF50;
}

.page-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.page-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.page-prev,
.page-btn.page-next {
    padding: 0 8px;
}

.page-dots {
    padding: 0 5px;
    color: #999;
    font-size: 12px;
    user-select: none;
}

.page-info {
    font-size: 13px;
    color: #666;
}

/* 테이블 행 번호 */
.row-number {
    display: inline-block;
    min-width: 25px;
    color: #999;
    font-size: 12px;
    margin-right: 8px;
}

.timestamp {
    font-size: 11px;
    color: #bbb;
    font-style: italic;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
    
    .activity-table {
        font-size: 12px;
    }
    
    .activity-table th,
    .activity-table td {
        padding: 8px;
    }
}

/* ==================== 학원 현황 페이지 ==================== */
#academy-view {
    padding: 20px;
}

#academy-view .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

#academy-view .view-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

/* 요약 통계 카드 */
.academy-summary-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.summary-card .card-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.summary-card.total .card-icon { background: #e8eaf6; }
.summary-card.trial .card-icon { background: #e3f2fd; }
.summary-card.essential .card-icon { background: #e8f5e9; }
.summary-card.members .card-icon { background: #fff3e0; }
.summary-card.active .card-icon { background: #e0f7fa; }

.summary-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.summary-card .card-label {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* 검색 및 필터 */
.academy-filters {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.academy-filters .filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.academy-filters .search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.academy-filters .search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.academy-filters .search-box input {
    width: 100%;
    padding: 10px 10px 10px 38px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.academy-filters .search-box input:focus {
    border-color: #0078d4;
    outline: none;
}

.academy-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.academy-filters .filter-group label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.academy-filters .filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.academy-filters .filter-info {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

/* 학원 테이블 */
.academy-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

#academy-view .academy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#academy-view .academy-table th,
#academy-view .academy-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#academy-view .academy-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

#academy-view .academy-table th.sortable {
    cursor: pointer;
    user-select: none;
}

#academy-view .academy-table th.sortable:hover {
    background: #e9ecef;
}

#academy-view .academy-table th.sorted {
    background: #e3f2fd;
    color: #1565c0;
}

#academy-view .academy-table th .sort-icon {
    font-size: 11px;
    margin-left: 4px;
}

#academy-view .academy-table tr:hover {
    background: #f8f9fa;
}

/* 테이블 셀 스타일 */
.academy-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.academy-name {
    font-weight: 600;
    color: #333;
}

.memo-icon {
    cursor: help;
    font-size: 12px;
}

.owner-name {
    font-weight: 500;
    color: #333;
}

.owner-username {
    color: #888;
    font-size: 12px;
    margin-left: 4px;
}

.students-cell {
    white-space: nowrap;
}

.student-count {
    font-weight: 600;
    color: #333;
}

.student-separator {
    color: #999;
    margin: 0 2px;
}

.student-limit {
    color: #666;
    font-size: 13px;
}

.usage-bar-container {
    width: 60px;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}

.usage-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.usage-bar.usage-low {
    background: #4caf50;
}

.usage-bar.usage-medium {
    background: #ff9800;
}

.usage-bar.usage-high {
    background: #f44336;
}

.activity-period {
    color: #999;
    font-size: 11px;
    margin-left: 2px;
}

.action-cell {
    white-space: nowrap;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #e0e0e0;
}

/* 페이지네이션 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pagination-info {
    font-size: 13px;
    color: #666;
}

#academy-view .pagination {
    display: flex;
    gap: 5px;
}

#academy-view .page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

#academy-view .page-btn:hover:not([disabled]) {
    border-color: #0078d4;
    color: #0078d4;
}

#academy-view .page-btn.active {
    background: #0078d4;
    border-color: #0078d4;
    color: white;
}

#academy-view .page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

#academy-view .page-dots {
    display: flex;
    align-items: center;
    padding: 0 5px;
    color: #999;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.page-size-selector label {
    font-size: 13px;
    color: #666;
}

.page-size-selector select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    min-width: 70px;
}

/* 페이지네이션 정보 */
.pagination-info {
    white-space: nowrap;
    min-width: 100px;
}

/* 버튼 스타일 */
#academy-view .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

#academy-view .btn-secondary {
    background: #f5f5f5;
    color: #333;
}

#academy-view .btn-secondary:hover {
    background: #e0e0e0;
}

#academy-view .btn-success {
    background: #4caf50;
    color: white;
}

#academy-view .btn-success:hover {
    background: #43a047;
}

#academy-view .btn-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

#academy-view .btn-refresh:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* 반응형 */
@media (max-width: 1400px) {
    .academy-summary-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .academy-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .academy-filters .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .academy-filters .search-box {
        min-width: auto;
    }
    
    .academy-filters .filter-group {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .academy-summary-cards {
        grid-template-columns: 1fr;
    }
    
    #academy-view .view-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .academy-table-container {
        overflow-x: auto;
    }
    
    #academy-view .academy-table {
        min-width: 900px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* 기존 academy-stats-section 스타일 (대시보드용 - 제거됨) */
.academy-stats-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.academy-stats-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.academy-stats-section .section-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* 요약 통계 */
.academy-summary {
    display: flex;
    gap: 15px;
    align-items: center;
}

.academy-summary .summary-item {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.academy-summary .summary-item.trial {
    background: #e3f2fd;
    color: #1565c0;
}

.academy-summary .summary-item.essential {
    background: #e8f5e9;
    color: #2e7d32;
}

.academy-summary .summary-item.members {
    background: #fff3e0;
    color: #e65100;
}

.academy-summary .summary-item.total {
    background: #f5f5f5;
    color: #616161;
}

.academy-summary .summary-item strong {
    font-weight: 700;
}

/* 학원 테이블 */
.academy-table-wrapper {
    overflow-x: auto;
}

.academy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.academy-table th,
.academy-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.academy-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.academy-table tr:hover {
    background: #f8f9fa;
}

/* 학원명 셀 */
.academy-name-cell .academy-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.academy-name-cell .academy-name {
    font-weight: 600;
    color: #333;
}

.academy-name-cell .academy-memo {
    cursor: help;
    font-size: 12px;
}

/* 원장 셀 */
.owner-cell .owner-name {
    font-weight: 500;
    color: #333;
}

.owner-cell .owner-username {
    color: #888;
    font-size: 12px;
    margin-left: 4px;
}

/* 계정 타입 배지 */
.account-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.account-type-badge.type-trial {
    background: #e3f2fd;
    color: #1565c0;
}

.account-type-badge.type-essential {
    background: #e8f5e9;
    color: #2e7d32;
}

.account-type-badge.type-members {
    background: #fff3e0;
    color: #e65100;
}

/* 학생 수 셀 */
.students-cell .student-usage {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.students-cell .student-count {
    font-weight: 500;
    font-size: 13px;
}

.students-cell .usage-bar {
    width: 80px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.students-cell .usage-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

.students-cell .usage-low .usage-fill {
    background: #4caf50;
}

.students-cell .usage-medium .usage-fill {
    background: #ff9800;
}

.students-cell .usage-high .usage-fill {
    background: #f44336;
}

/* 파일 접근/활동 셀 */
.file-access-cell .file-count,
.activity-cell .activity-count {
    font-weight: 500;
    color: #333;
}

.activity-cell .activity-period {
    color: #999;
    font-size: 11px;
    margin-left: 2px;
}

/* 상태 배지 */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.status-inactive {
    background: #ffebee;
    color: #c62828;
}

/* 로그인 셀 */
.login-cell .last-login {
    color: #666;
    font-size: 13px;
}

/* 데이터 없음 */
.academy-table .no-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

/* 반응형 - 학원 통계 */
@media (max-width: 1200px) {
    .academy-table {
        font-size: 13px;
    }
    
    .academy-table th,
    .academy-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .academy-stats-section .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .academy-summary {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .academy-summary .summary-item {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .academy-table-wrapper {
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    .academy-table {
        font-size: 12px;
        min-width: 800px;
    }
}

/* ==================== 학생 학습현황 모달 ==================== */
#studentProgressModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#studentProgressModal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#studentProgressModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 12px 12px 0 0;
}

#studentProgressModal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

#studentProgressModal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#studentProgressModal .modal-close:hover {
    color: #fff;
}

#studentProgressModal .modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

/* 학습현황 요약 */
.student-progress-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.student-progress-summary .summary-item {
    font-size: 14px;
    color: #666;
}

.student-progress-summary .summary-item strong {
    color: #333;
    font-weight: 600;
}

/* 학생 카드 목록 */
.student-progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.student-progress-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.student-progress-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: #fafafa;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.student-code {
    font-size: 13px;
    color: #888;
}

.student-stats {
    display: flex;
    gap: 12px;
}

.student-stats .stat-item {
    font-size: 13px;
    color: #555;
    padding: 5px 12px;
    background: #f0f4f8;
    border-radius: 15px;
}

.student-stats .stat-item strong {
    color: #2196F3;
}

/* 로딩 프로그레스바 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.progress-bar-wrapper {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #64B5F6);
    border-radius: 3px;
    animation: progressAnimation 1.5s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; margin-left: 0%; }
    50% { width: 40%; margin-left: 30%; }
    100% { width: 0%; margin-left: 100%; }
}

.loading-text {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* 모달 페이지네이션 */
.modal-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal-page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
}

.modal-page-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #2196F3;
    color: #2196F3;
}

.modal-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-page-numbers {
    display: flex;
    gap: 5px;
}

.modal-page-num {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
}

.modal-page-num:hover {
    background: #f5f5f5;
    border-color: #2196F3;
}

.modal-page-num.active {
    background: #2196F3;
    border-color: #2196F3;
    color: #fff;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* 로딩 */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 에러 메시지 */
.error-message {
    text-align: center;
    padding: 40px;
    color: #c62828;
    background: #ffebee;
    border-radius: 8px;
}

/* 테이블 행 클릭 커서 */
#academyTableBody tr[data-id] {
    cursor: pointer;
}

#academyTableBody tr[data-id]:hover {
    background: #e3f2fd !important;
}

/* 반응형 - 학습현황 모달 */
@media (max-width: 768px) {
    #studentProgressModal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .student-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .student-stats {
        width: 100%;
        flex-wrap: wrap;
    }
}