/* Dashboard CSS */

/* CSS 변수 정의 */
:root {
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --info-color: #06b6d4;
  --warning-color: #f59e0b;
  --success-color: #10b981;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* 모던 카드 스타일 */
.modern-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modern-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 모던 일정 카드 스타일 */
.modern-schedule-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.modern-schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--info-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-schedule-card:hover::before {
  opacity: 1;
}

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

/* 왼쪽 영역 */
.schedule-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 200px;
}

.schedule-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--info-color), var(--primary-color));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.schedule-info {
  text-align: left;
}

.schedule-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--info-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.schedule-label {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.schedule-range {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.schedule-range i {
  color: var(--info-color);
}

.schedule-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.stat-label {
  color: var(--gray-500);
}

.stat-value {
  color: var(--gray-700);
  font-weight: 600;
}

/* 오른쪽 영역 */
.schedule-right {
  flex: 1;
  min-height: 80px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-section {
  height: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.section-title-wrapper {
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
}

.section-title.small {
  font-size: 0.95rem; /* Bootstrap small보다 조금 더 크게 */
}

.section-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  margin-left: 0.5rem;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.schedule-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

.schedule-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.schedule-item-icon .fa-calendar-day {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.schedule-item-icon .fa-user-clock {
  background: linear-gradient(135deg, var(--warning-color), #fbbf24);
  color: white;
}

.schedule-item-content {
  flex: 1;
}

.schedule-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.schedule-item-datetime {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}

.schedule-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80px;
  color: var(--gray-400);
  gap: 0.5rem;
}

.schedule-empty i {
  font-size: 1.5rem;
}

.schedule-empty span {
  font-size: 0.9rem;
}

/* 바로가기 카드 스타일 */
.quick-actions-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.quick-actions-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--info-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-actions-card:hover::before {
  opacity: 1;
}

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

.quick-actions-header {
  padding: 1rem 1.5rem 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-actions-header h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
}

.quick-actions-body {
  padding: 1.5rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s ease;
  font-weight: 600;
  min-height: 80px;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  text-decoration: none;
}

.quick-action-btn i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

.quick-action-btn:hover i {
  color: white;
}

.quick-action-btn span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* 데모 버튼 스타일 */
.demo-btn {
  background: linear-gradient(135deg, var(--warning-color), #fbbf24);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.demo-btn:hover {
  background: linear-gradient(135deg, #d97706, var(--warning-color));
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* 반응형 개선 */
@media (max-width: 768px) {
  .modern-schedule-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .schedule-left {
    min-width: auto;
    justify-content: center;
  }
  
  .schedule-count {
    font-size: 2rem;
  }
  
  .schedule-item {
    padding: 0.5rem;
  }
  
  .schedule-item-title {
    font-size: 0.85rem;
  }
  
  .schedule-item-datetime {
    font-size: 0.75rem;
  }
  
  .quick-actions-header {
    padding: 0.75rem 1rem 0.25rem;
  }
  
  .quick-actions-body {
    padding: 1rem 0.5rem;
  }
  
  .quick-action-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    min-height: 70px;
  }
  
  .quick-action-btn i {
    font-size: 1.2rem;
  }
}
