/* =====================
   대시보드 스타일
   ===================== */

#dashboard-container {
    width: 100%;
    height: 100%;
    display: none;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* =====================
   Dashboard Cards
   ===================== */

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dashboard-card.wide {
    grid-column: span 2;
}

.dashboard-card.full {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-icon.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.card-icon.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-icon.purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-icon.red {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
}

.card-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.card-value {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* =====================
   Stats
   ===================== */

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.stat-label {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.stat-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stat-badge.green {
    background: #e8f5e9;
    color: #2e7d32;
}

.stat-badge.red {
    background: #ffebee;
    color: #c62828;
}

.stat-badge.orange {
    background: #fff3e0;
    color: #e65100;
}

.stat-badge.blue {
    background: #e3f2fd;
    color: #1565c0;
}

.stat-badge.gray {
    background: #f5f5f5;
    color: #616161;
}

/* =====================
   Progress Bar
   ===================== */

.progress-container {
    margin-top: 16px;
}

.progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* =====================
   Charts
   ===================== */

.chart-container {
    position: relative;
    height: 200px;
    margin-top: 10px;
}

.chart-container.tall {
    height: 250px;
}

/* =====================
   Mini Matrix
   ===================== */

.matrix-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.matrix-mini-cell {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.matrix-mini-cell.q1 {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
}

.matrix-mini-cell.q2 {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.matrix-mini-cell.q3 {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.matrix-mini-cell.q4 {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.matrix-mini-count {
    font-size: 24px;
    font-weight: 700;
}

.matrix-mini-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* =====================
   Recent Tasks
   ===================== */

.recent-tasks {
    max-height: 200px;
    overflow-y: auto;
}

.recent-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-task-item:last-child {
    border-bottom: none;
}

.recent-task-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.recent-task-status.completed {
    background: #4caf50;
}

.recent-task-status.pending {
    background: #ff9800;
}

.recent-task-status.overdue {
    background: #f44336;
}

.recent-task-title {
    flex: 1;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-task-date {
    font-size: 11px;
    color: #999;
}

/* =====================
   Empty State
   ===================== */

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* =====================
   Responsive
   ===================== */

@media (max-width: 768px) {
    #dashboard-container {
        padding: 10px;
    }

    .dashboard-grid {
        gap: 12px;
    }

    .dashboard-card {
        padding: 12px;
    }

    .dashboard-card.wide {
        grid-column: span 1;
    }

    .card-value {
        font-size: 28px;
    }

    .chart-container {
        height: 160px;
    }

    .chart-container.tall {
        height: 200px;
    }

    .matrix-mini-count {
        font-size: 20px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}