/**
 * 대시보드 스타일 - 모던 SaaS 디자인
 * 레퍼런스: Youcare, Commercehq, JetAdmin 스타일
 */

/* ============================================
   Dashboard Shell (스코프 분리)
   ============================================ */

.dashboard-shell {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  min-height: auto !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.app-main .dashboard-shell {
  width: 100% !important;
  display: block !important;
}

/* ============================================
   Dashboard Header
   ============================================ */

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header:empty {
  display: none;
}

/* ============================================
   Upcoming Schedules
   ============================================ */

.dashboard-upcoming-schedules {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.dashboard-upcoming-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.dashboard-upcoming-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

.dashboard-upcoming-link {
  font-size: 0.75rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.dashboard-upcoming-link:hover {
  color: #2563eb;
}

.dashboard-upcoming-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dashboard-upcoming-list::-webkit-scrollbar {
  height: 4px;
}

.dashboard-upcoming-list::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 2px;
}

.dashboard-upcoming-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.dashboard-upcoming-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  min-width: 200px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dashboard-upcoming-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

.dashboard-upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #3b82f6;
  color: white;
  border-radius: 8px;
  flex-shrink: 0;
  text-align: center;
}

.dashboard-upcoming-date-day {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.dashboard-upcoming-date-month {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.9;
}

.dashboard-upcoming-content {
  flex: 1;
  min-width: 0;
}

.dashboard-upcoming-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-upcoming-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.dashboard-upcoming-time {
  font-weight: 500;
}

.dashboard-upcoming-separator {
  color: #d1d5db;
}

.dashboard-upcoming-employee,
.dashboard-upcoming-type {
  font-weight: 500;
}

.dashboard-upcoming-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.dashboard-upcoming-badge-today {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-upcoming-badge-tomorrow {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dashboard-greeting {
  flex: 1;
  min-width: 280px;
}

.dashboard-greeting-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-greeting-subtitle {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.dashboard-header-action {
  flex-shrink: 0;
}

.dashboard-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #3b82f6;
  color: white;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dashboard-action-btn:hover {
  background: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.dashboard-action-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

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

.dashboard-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard-quick-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dashboard-quick-stat-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.dashboard-quick-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-quick-stat-blue .dashboard-quick-stat-icon {
  background: #dbeafe;
  color: #2563eb;
}

.dashboard-quick-stat-orange .dashboard-quick-stat-icon {
  background: #fed7aa;
  color: #ea580c;
}

.dashboard-quick-stat-green .dashboard-quick-stat-icon {
  background: #d1fae5;
  color: #059669;
}

.dashboard-quick-stat-purple .dashboard-quick-stat-icon {
  background: #f3e8ff;
  color: #9333ea;
}

.dashboard-quick-stat-cyan .dashboard-quick-stat-icon {
  background: #cffafe;
  color: #0891b2;
}

.dashboard-quick-stat-teal .dashboard-quick-stat-icon {
  background: #ccfbf1;
  color: #0d9488;
}

.dashboard-quick-stat-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.dashboard-quick-stat-content {
  flex: 1;
  min-width: 0;
}

.dashboard-quick-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.dashboard-quick-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dashboard-quick-stat-sub {
  font-size: 0.6875rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ============================================
   Main Grid
   ============================================ */

.dashboard-main-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.dashboard-card-large {
  grid-column: span 6;
}

.dashboard-card-list {
  grid-column: span 6;
}

.dashboard-card-regular {
  grid-column: span 3;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-card-inline {
  grid-column: span 4;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 1400px) {
  .dashboard-card-large {
    grid-column: span 12;
  }
  
  .dashboard-card-list {
    grid-column: span 12;
  }
  
  .dashboard-card-regular {
    grid-column: span 6;
  }
  
  .dashboard-card-inline {
    grid-column: span 6;
  }
}

@media (max-width: 1200px) {
  .dashboard-card-regular {
    grid-column: span 6;
  }
  
  .dashboard-card-inline {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-card-large,
  .dashboard-card-list,
  .dashboard-card-regular,
  .dashboard-card-inline {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-card-large,
  .dashboard-card-list,
  .dashboard-card-regular,
  .dashboard-card-inline {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .dashboard-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-card-large,
  .dashboard-card-list {
    grid-column: span 1;
  }
}

/* ============================================
   Dashboard Card
   ============================================ */

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.dashboard-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

.dashboard-card-link {
  font-size: 0.875rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dashboard-card-link:hover {
  color: #2563eb;
}

.dashboard-card-link::after {
  content: '→';
  font-size: 0.875rem;
  transition: transform 0.2s;
}

.dashboard-card-link:hover::after {
  transform: translateX(2px);
}

.dashboard-card-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.dashboard-card-body {
  flex: 1;
}

/* Chart Card */
.dashboard-card-chart {
  min-height: 280px;
}

/* ============================================
   Progress Section
   ============================================ */

.dashboard-progress-section {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.dashboard-progress-circle-wrapper {
  flex-shrink: 0;
}

.dashboard-progress-circle {
  position: relative;
  width: 100px;
  height: 100px;
}

.dashboard-progress-svg {
  width: 100%;
  height: 100%;
  /* transform: rotate(-90deg); - 인라인 스타일로 이동 */
}

.dashboard-progress-bg {
  fill: none !important;
  stroke: #f3f4f6 !important;
  stroke-width: 10 !important;
}

.dashboard-progress-fill {
  fill: none !important;
  stroke: #3b82f6 !important;
  stroke-width: 10 !important;
  stroke-linecap: round !important;
  /* stroke-dasharray와 stroke-dashoffset은 인라인 스타일로 설정 */
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard-progress-svg circle.dashboard-progress-fill {
  fill: none !important;
  stroke: #3b82f6 !important;
  stroke-width: 10 !important;
  stroke-linecap: round !important;
}

.dashboard-progress-svg circle.dashboard-progress-fill-orange {
  fill: none !important;
  stroke: #f59e0b !important;
  stroke-width: 10 !important;
  stroke-linecap: round !important;
}

.dashboard-progress-fill-orange {
  fill: none !important;
  stroke: #f59e0b !important;
  stroke-width: 8 !important;
  stroke-linecap: round !important;
}

.dashboard-progress-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.dashboard-progress-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-progress-text {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  font-weight: 500;
}

.dashboard-progress-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-progress-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-progress-detail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-progress-dot-blue {
  background: #3b82f6;
}

.dashboard-progress-dot-green {
  background: #10b981;
}

.dashboard-progress-dot-orange {
  background: #f59e0b;
}

.dashboard-progress-dot-gray {
  background: #6b7280;
}

.dashboard-progress-detail-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-progress-detail-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.dashboard-progress-detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

/* ============================================
   Circular Chart (Legacy)
   ============================================ */

.dashboard-chart-wrapper {
  flex-shrink: 0;
  position: relative;
}

.dashboard-circular-chart {
  position: relative;
  width: 140px;
  height: 140px;
}

.dashboard-chart-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dashboard-chart-bg {
  fill: none;
  stroke: #f3f4f6;
  stroke-width: 10;
}

.dashboard-chart-bar {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-chart-bar-orange {
  stroke: #f59e0b;
}

.dashboard-chart-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.dashboard-chart-percent {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-chart-label {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.375rem;
  font-weight: 500;
}

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

.dashboard-stats-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.dashboard-stat-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.dashboard-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-stat-dot-blue {
  background: #3b82f6;
}

.dashboard-stat-dot-green {
  background: #10b981;
}

.dashboard-stat-dot-orange {
  background: #f59e0b;
}

.dashboard-stat-dot-gray {
  background: #6b7280;
}

.dashboard-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.dashboard-stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

/* ============================================
   Metrics
   ============================================ */

.dashboard-metric {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dashboard-metric-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.dashboard-metric-value-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
}

.dashboard-metric-trend.trend-up {
  color: #059669;
  background: #d1fae5;
}

.dashboard-metric-trend.trend-down {
  color: #dc2626;
  background: #fee2e2;
}

.dashboard-metric-trend svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

.dashboard-metric-row {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.dashboard-metric-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.dashboard-metric-label-small {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.dashboard-metric-value-small {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

/* ============================================
   Metric Large
   ============================================ */

.dashboard-metric-large {
  text-align: center;
  padding: 1rem 0;
  min-height: auto;
  flex-shrink: 0;
}

.dashboard-metric-large-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.dashboard-metric-large-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.dashboard-metric-large-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
}

.dashboard-metric-large-trend.trend-up {
  color: #059669;
  background: #d1fae5;
}

.dashboard-metric-large-trend.trend-down {
  color: #dc2626;
  background: #fee2e2;
}

.dashboard-metric-large-trend svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.dashboard-metric-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 1.5rem 0;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.dashboard-metric-item {
  text-align: center;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  min-width: 0;
  flex: 1;
}

.dashboard-metric-item-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-metric-item-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  word-break: break-word;
}

/* ============================================
   Stat Grid
   ============================================ */

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.dashboard-stat-item-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.dashboard-stat-item-card:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

/* 이번달 통계 - 2x2 그리드 (아이콘 위, 텍스트 아래) */
.dashboard-stat-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .dashboard-stat-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-stat-item-card-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0.875rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;
  text-align: center;
}

.dashboard-stat-item-card-vertical:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateY(-2px);
}

.dashboard-stat-item-icon-vertical {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-stat-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.dashboard-stat-icon-orange {
  background: #fed7aa;
  color: #ea580c;
}

.dashboard-stat-icon-green {
  background: #d1fae5;
  color: #059669;
}

.dashboard-stat-icon-purple {
  background: #f3e8ff;
  color: #9333ea;
}

.dashboard-stat-item-icon-vertical svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.dashboard-stat-item-info-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.dashboard-stat-item-label-vertical {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-stat-item-value-vertical {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dashboard-stat-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-stat-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.dashboard-stat-icon-orange {
  background: #fed7aa;
  color: #ea580c;
}

.dashboard-stat-icon-green {
  background: #d1fae5;
  color: #059669;
}

.dashboard-stat-icon-purple {
  background: #f3e8ff;
  color: #9333ea;
}

.dashboard-stat-item-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.dashboard-stat-item-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dashboard-stat-item-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-stat-item-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  word-break: break-word;
}

/* ============================================
   Other List
   ============================================ */

.dashboard-other-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
}

/* ============================================
   Resource Status
   ============================================ */

.dashboard-resource-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.dashboard-resource-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.dashboard-resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-resource-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.dashboard-resource-icon-green {
  background: #d1fae5;
  color: #059669;
}

.dashboard-resource-icon-orange {
  background: #fed7aa;
  color: #ea580c;
}

.dashboard-resource-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.dashboard-resource-content {
  flex: 1;
  min-width: 0;
}

.dashboard-resource-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.dashboard-resource-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

/* ============================================
   Resource List (직원별 리소스 현황)
   ============================================ */

.dashboard-resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
}

.dashboard-resource-list-item {
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.dashboard-resource-list-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.dashboard-resource-list-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-resource-list-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.dashboard-resource-list-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-resource-list-detail {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dashboard-resource-list-detail-label {
  color: #6b7280;
  font-weight: 500;
}

.dashboard-resource-list-detail-value {
  color: #111827;
  font-weight: 600;
}

.dashboard-resource-list-detail-value.dashboard-resource-negative {
  color: #dc2626;
}

.dashboard-resource-list-separator {
  color: #d1d5db;
}

.dashboard-resource-list-progress {
  margin-top: 0.75rem;
}

.dashboard-resource-list-progress-bar {
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.dashboard-resource-list-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.dashboard-other-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.dashboard-other-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateX(4px);
}

.dashboard-other-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-other-icon-purple {
  background: #f3e8ff;
  color: #9333ea;
}

.dashboard-other-icon-cyan {
  background: #cffafe;
  color: #0891b2;
}

.dashboard-other-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.dashboard-other-content {
  flex: 1;
  min-width: 0;
}

.dashboard-other-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.dashboard-other-value {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.dashboard-other-arrow {
  font-size: 1.25rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dashboard-other-item:hover .dashboard-other-arrow {
  transform: translateX(4px);
  color: #6b7280;
}

/* ============================================
   Resource Status
   ============================================ */

.dashboard-resource-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.dashboard-resource-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.dashboard-resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-resource-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.dashboard-resource-icon-green {
  background: #d1fae5;
  color: #059669;
}

.dashboard-resource-icon-orange {
  background: #fed7aa;
  color: #ea580c;
}

.dashboard-resource-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.dashboard-resource-content {
  flex: 1;
  min-width: 0;
}

.dashboard-resource-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.dashboard-resource-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

/* ============================================
   List
   ============================================ */

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.dashboard-list-item {
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.dashboard-list-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateX(2px);
}

.dashboard-list-content {
  margin-bottom: 0.75rem;
}

.dashboard-list-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.dashboard-list-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.dashboard-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-list-meta {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

/* ============================================
   Badge
   ============================================ */

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.dashboard-badge-primary {
  background: #dbeafe;
  color: #2563eb;
}

.dashboard-badge-success {
  background: #d1fae5;
  color: #059669;
}

.dashboard-badge-info {
  background: #dbeafe;
  color: #0284c7;
}

.dashboard-badge-warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-badge-danger {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-badge-purple {
  background: #e9d5ff;
  color: #9333ea;
}

.dashboard-badge-gray {
  background: #f3f4f6;
  color: #6b7280;
}

.dashboard-badge-secondary {
  background: #e5e7eb;
  color: #4b5563;
}

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

.dashboard-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #9ca3af;
}

.dashboard-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
}

.dashboard-empty p,
.dashboard-empty-text {
  font-size: 0.875rem;
  margin: 0;
}

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

@media (max-width: 768px) {
  .dashboard-greeting-title {
    font-size: 1.5rem;
  }
  
  .dashboard-card-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .dashboard-circular-chart {
    width: 120px;
    height: 120px;
  }
  
  .dashboard-chart-percent {
    font-size: 1.75rem;
  }
  
  .dashboard-metric-value {
    font-size: 1.5rem;
  }
  
  .dashboard-metric-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .dashboard-progress-section {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .dashboard-progress-circle {
    width: 90px;
    height: 90px;
  }
  
  .dashboard-progress-number {
    font-size: 1.25rem;
  }
  
  .dashboard-metric-large-value {
    font-size: 1.5rem;
  }
  
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stat-item-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .dashboard-stat-item-info {
    width: 100%;
  }
}

/* ============================================
   기존 스타일 유지 (하위 호환성)
   ============================================ */

/* Bento Grid 컨테이너 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

/* 통계 카드 그리드 (4개) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Welcome 배너 */
.dashboard-welcome-banner {
  background: linear-gradient(204deg, rgba(132,231,198,1) 0%, rgba(0,113,227,1) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dashboard-welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dashboard-welcome-text {
  flex: 1;
  min-width: 200px;
}

.dashboard-welcome-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
}

.dashboard-welcome-description {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.dashboard-welcome-highlight {
  font-weight: 700;
  text-decoration: underline;
}

.dashboard-welcome-action {
  flex-shrink: 0;
}

.btn-white-transparent {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-white-transparent:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.btn-white-transparent svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.dashboard-welcome-decoration {
  position: absolute;
  right: -2.5rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(4rem);
  z-index: 1;
}

/* 통계 카드 */
.stats-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stats-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stats-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0;
}

.stats-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-50);
  color: var(--color-primary-600);
  flex-shrink: 0;
}

.stats-card-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.stats-card-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.stats-card-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-sub);
  font-weight: var(--font-weight-normal);
}

.stats-card-label-small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stats-card-trend {
  font-size: var(--font-size-xs);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-card-trend-up {
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stats-card-trend-down {
  color: #ef4444;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stats-card-trend-neutral {
  color: var(--color-text-sub);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stats-card-trend-label {
  color: var(--color-text-sub);
  font-size: 0.75rem;
}

.stats-card-progress {
  margin-top: 1rem;
}

.stats-card-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--color-bg-secondary);
  border-radius: 9999px;
  overflow: hidden;
}

.stats-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6 0%, #0d9488 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.stats-card-resource {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stats-card-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-card-badge-overload {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.stats-card-badge-warning {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.stats-card-badge-normal {
  background-color: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.stats-card-badge-label {
  font-size: 0.625rem;
  color: var(--color-text-sub);
}

.stats-card-settlement {
  margin-top: 1rem;
}

.stats-card-settlement-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-sub);
}

.stats-card-settlement-amount {
  font-weight: 700;
  color: var(--color-text);
}

/* 아이콘 색상 변형 */
.stats-card-icon-blue {
  background-color: #dbeafe;
  color: #2563eb;
}

.stats-card-icon-teal {
  background-color: #ccfbf1;
  color: #14b8a6;
}

.stats-card-icon-indigo {
  background-color: #e0e7ff;
  color: #6366f1;
}

.stats-card-icon-orange {
  background-color: #fed7aa;
  color: #ea580c;
}

.stats-card-icon-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}

.stats-card-icon-pink {
  background-color: #fce7f3;
  color: #ec4899;
}

.stats-card-icon-green {
  background-color: #dcfce7;
  color: #16a34a;
}

.stats-card-icon-yellow {
  background-color: #fef9c3;
  color: #ca8a04;
}

.stats-card-icon-cyan {
  background-color: #cffafe;
  color: #0891b2;
}

/* 링크 카드 */
.stats-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.stats-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* 섹션 스타일 */
.dashboard-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-section-title svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  color: var(--color-primary);
}

/* 컨텐츠 카드 - Bento Grid */
.dashboard-card-full {
  grid-column: 1 / -1;
}

.dashboard-card-half {
  grid-column: span 6;
}

.dashboard-card-third {
  grid-column: span 4;
}

.dashboard-card-two-thirds {
  grid-column: span 8;
}

/* 진행률 카드 스타일 */
.dashboard-progress-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.dashboard-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-progress-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.dashboard-progress-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.dashboard-progress-chart {
  flex-shrink: 0;
}

/* 원형 진행률 차트 */
.circular-progress {
  position: relative;
  width: 150px;
  height: 150px;
}

.circular-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 8;
}

.circular-progress-bar {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.5s ease;
}

.circular-progress-bar-orange {
  stroke: #f59e0b;
}

.circular-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circular-progress-percent {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.circular-progress-label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-sub);
  margin-top: 0.25rem;
}

.dashboard-progress-stats {
  flex: 1;
}

.dashboard-progress-stats-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.dashboard-progress-stats-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.dashboard-progress-stats-period {
  font-size: 0.75rem;
  color: var(--color-text-sub);
}

.dashboard-progress-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-progress-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.dashboard-progress-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.dashboard-progress-stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

/* 요약 카드 스타일 */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.dashboard-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-summary-item:last-child {
  border-bottom: none;
}

.dashboard-summary-label {
  font-size: 0.875rem;
  color: var(--color-text-sub);
}

.dashboard-summary-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.dashboard-summary-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.dashboard-summary-trend.trend-up {
  color: #10b981;
}

.dashboard-summary-trend.trend-down {
  color: #ef4444;
}

/* 반응형 */
@media (max-width: 1400px) {
  .dashboard-card-half {
    grid-column: span 12;
  }
  
  .dashboard-card-third {
    grid-column: span 6;
  }
  
  .dashboard-card-two-thirds {
    grid-column: span 12;
  }
  
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dashboard-card,
  .dashboard-card-half,
  .dashboard-card-third,
  .dashboard-card-two-thirds {
    grid-column: span 1;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-card-value {
    font-size: 1.75rem;
  }
  
  .dashboard-progress-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .circular-progress {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  
  .circular-progress-percent {
    font-size: 1.5rem;
  }
  
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
}
