/* ========================================
   DASHBOARD.CSS - 대시보드 전용 스타일
   ======================================== */

/* ========================================
   1. STAT CARDS
   통계 카드 스타일
   ======================================== */

.stat-card-compact {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: auto;
    min-height: 100px;
}

.stat-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-card-compact .stat-title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0 0 10px 0;
    text-align: left;
}

.stat-card-compact h3 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    color: #5ccae0 !important;
}

/* 모든 stat-card-compact 변형에 대해 동일한 색상 적용 */
.stat-card-compact.primary h3,
.stat-card-compact.success h3,
.stat-card-compact.info h3,
.stat-card-compact.warning h3 {
    color: #5ccae0 !important;
}

/* ========================================
   2. TABLE CARDS
   테이블 카드 스타일
   ======================================== */

.table-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: auto !important;
    min-height: 100px !important;
}

.table-card h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.table-responsive {
    max-height: none !important;
    overflow-y: visible !important;
}

/* ========================================
   3. PROGRESS BARS
   프로그레스 바 스타일
   ======================================== */

.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: #5ccae0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   4. ICONS
   아이콘 스타일
   ======================================== */

.icon-small {
    font-size: 8px;
}

.icon-large {
    font-size: 48px;
}

.icon-status-badge {
    font-size: 8px;
}

/* ========================================
   5. BADGES
   배지 스타일
   ======================================== */

.badge-work-id {
    background-color: #cdcdcd;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* ========================================
   5. SPACING
   간격 조정
   ======================================== */

/* Dashboard에서 .mb-4의 마진 줄이기 */
.mb-4 {
    margin-bottom: 0.5rem !important;
}

/* ========================================
   6. TABLE TEXT OVERFLOW
   테이블 텍스트 말줄임 처리
   ======================================== */

/* 작품별 득표 순위 테이블의 작품명 열 - 한줄 말줄임 처리 */
#rankings-table tbody td:nth-child(3) {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 지역별 통계 테이블의 지역명 열 - 한줄 말줄임 처리 */
.table tbody td:nth-child(2) {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   7. CHARTS
   차트 컨테이너 스타일
   ======================================== */

.chart-container-small {
    max-height: 200px;
}

.chart-container-medium {
    max-height: 250px;
}

.chart-scrollable {
    max-height: 150px;
    overflow-y: auto;
}

/* ========================================
   7. FORMS
   폼 요소 스타일
   ======================================== */

.form-hidden {
    display: none;
}

/* ========================================
   8. RESPONSIVE
   반응형 디자인
   ======================================== */

@media (max-width: 768px) {
    .stat-card-compact h3 {
        font-size: 28px;
    }

    .stat-card-compact .stat-title {
        font-size: 12px;
    }

    .table-card {
        height: auto;
    }

    .table-responsive {
        max-height: 400px;
    }

    .chart-container-small,
    .chart-container-medium {
        max-height: 200px;
    }
}
