/* ===============================================
   페이지 타이틀 - 노션 스타일
   =============================================== */
.notion-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notion-page-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--notion-text-default, #37352f);
}

.notion-page-emoji {
  font-size: 24px;
  line-height: 1;
}

/* ===============================================
   CSS 변수 정의 (테마 시스템)
   =============================================== */

:root {
  /* 컬러 시스템 */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #6b7280;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  
  /* 배경색 */
  --white: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --light-bg: #f1f5f9;
  
  /* 텍스트 색상 */
  --text-color: #1f2937;
  --text-secondary: #6b7280;
  
  /* 경계선 */
  --border-color: #e5e7eb;
  --border-primary: #d1d5db;
}

/* 다크 테마 변수 */
[data-theme='dark'] {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #9ca3af;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  --white: #1f2937;
  --bg-primary: #1f2937;
  --bg-secondary: #374151;
  --light-bg: #374151;
  
  --text-color: #f9fafb;
  --text-secondary: #d1d5db;
  
  --border-color: #4b5563;
  --border-primary: #6b7280;
}

/* ===============================================
   기본 버튼 시스템
   =============================================== */

/* 기본 버튼 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--white);
  color: var(--text-color);
  outline: none;
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  /* 기존 hover 효과 제거 - 스티치 효과만 유지 */
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 버튼 변형 - 검은색 우선 적용 */
.btn-primary {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: white !important;
}

.btn-primary:hover:not(:disabled) {
  /* 기존 hover 색상 변화 제거 - 스티치 효과만 유지 */
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-color);
}

.btn-outline:hover:not(:disabled) {
  /* 기존 hover 색상 변화 제거 - 스티치 효과만 유지 */
}

.btn-secondary {
  background-color: var(--light-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

.btn-secondary:hover:not(:disabled) {
  /* 기존 hover 색상 변화 제거 - 스티치 효과만 유지 */
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: var(--white);
}

.btn-danger:hover:not(:disabled) {
  /* 기존 hover 색상 변화 제거 - 스티치 효과만 유지 */
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: var(--white);
}

.btn-success:hover:not(:disabled) {
  /* 기존 hover 색상 변화 제거 - 스티치 효과만 유지 */
}

/* 버튼 크기 */
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

/* 버튼 아이콘 */
.btn i {
  font-size: 0.9em;
}

.btn-sm i {
  font-size: 0.85em;
}

/* 텍스트 선택 스타일 */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: inherit;
}

::-moz-selection {
  background: rgba(37, 99, 235, 0.2);
  color: inherit;
}

/* 기본 outline 제거 (접근성을 위해 대체 스타일 제공) */
*:focus {
  outline: none;
}

/* 키보드 사용자를 위한 focus 스타일 */
*:focus-visible:not(.chart-filter) {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* ===============================================
   현대적 CSS Grid 기반 대시보드 레이아웃
   =============================================== */

/* 전체 대시보드 컨테이너 - CSS Grid */
.dashboard-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: 'sidebar-left main-content';
  min-height: 100vh;
  background-color: #ffffff;
  gap: 0;
  width: 100%;
  overflow-x: hidden;
}

/* 우측 사이드바가 없는 페이지용 컨테이너 */
.dashboard-container.no-right-sidebar {
  grid-template-columns: 240px 1fr;
  grid-template-areas: 'sidebar-left main-content';
}

/* 우측 사이드바가 없는 페이지에서 메인 콘텐츠 최대 활용 */
.dashboard-container.no-right-sidebar .main-content {
  width: 100%;
  max-width: none;
  padding-right: 0;
}

.dashboard-container.no-right-sidebar .page-content {
  width: 100%;
  max-width: none;
  padding: 20px 24px;
}

.dashboard-container.no-right-sidebar .dashboard-content {
  width: 100%;
  max-width: none;
  padding: 20px 24px;
}

/* 사이드바 미니멀 스타일 */
.sidebar {
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-primary);
  box-shadow: none;
  transition: all 0.3s ease;
}

/* 사이드바 전체 outline 제거 */
.sidebar *,
.sidebar *:focus,
.sidebar *:active,
.sidebar *:focus-visible,
.sidebar button,
.sidebar button:focus,
.sidebar button:active,
.sidebar button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* 그리드 영역 정의 */
.left-sidebar {
  grid-area: sidebar-left;
  width: 240px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
}

.left-sidebar.collapsed {
  width: 70px;
  min-width: 70px;
}

.main-content {
  grid-area: main-content;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background-color: #ffffff;
}


.sidebar-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--text-color);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.sidebar-header h1 a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.sidebar-header h1:hover {
  background: linear-gradient(
    45deg,
    #7c3aed,
    #2563eb,
    #0891b2,
    #3b82f6,
    #f59e0b,
    #ef4444,
    #ec4899,
    #7c3aed
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aurora-flow 2s linear infinite;
}


/* 사이드바 네비게이션 */
.sidebar-nav {
  flex: 1;
  padding: 12px 0 16px 0;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 2px;
}

.nav-item > a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-size: 14px;
}

.nav-item > a:hover,
.nav-item > a:focus {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

/* 새 디자인에서는 hover 배경색 제거 */
.sidebar.new-design .nav-item > a:hover,
.sidebar.new-design .nav-item > a:focus {
  background-color: transparent !important;
  color: #191D23 !important;
}

.nav-item.active > a {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
}

/* 새 디자인 사이드바에서는 기존 활성 스타일 제거 */
.sidebar.new-design .nav-item.active > a {
  background-color: transparent !important;
  color: #191D23 !important;
}

/* 기존 파란색 선 제거 - 새 디자인에서는 사용하지 않음 */
.nav-item.active > a::before {
  display: none;
}

/* 새 디자인에서는 ::before 요소 허용 */
.sidebar.new-design .nav-item.active > a::before,
.sidebar.new-design .nav-item.active > .nav-link::before {
  display: block !important;
}

.nav-item i {
  width: 18px;
  margin-right: 12px;
  font-size: 16px;
}

.submenu-toggle {
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 12px;
  width: 16px;
  height: 16px;
  background-image: url('../svg/small-arrow.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
}

/* Font Awesome 아이콘 숨기기 */
.submenu-toggle::before {
  display: none;
}

.nav-item.expanded .submenu-toggle {
  transform: rotate(90deg);
}

/* 서브메뉴 */
.submenu {
  display: none;
  background-color: rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-item.expanded .submenu,
.nav-item.active .submenu {
  display: block;
}

/* 아코디언 애니메이션을 위한 maxHeight 지원 */
.nav-item.has-submenu .submenu {
  max-height: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  overflow: hidden;
}

.nav-item.has-submenu.expanded .submenu {
  max-height: 500px; /* 충분히 큰 값 */
  opacity: 1;
  display: block;
}

/* 기본 상태에서도 활성 서브메뉴 표시 */
.nav-item.has-submenu.active .submenu {
  display: block;
  max-height: 500px;
  opacity: 1;
}

.submenu li a {
  padding: 8px 20px 8px 50px;
  display: block;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.submenu li a:hover,
.submenu li a:focus {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.submenu li.active a {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.1);
  font-weight: 500;
}

/* 네비게이션 구분선 */
.nav-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 20%,
    rgba(0, 0, 0, 0.12) 50%,
    rgba(0, 0, 0, 0.08) 80%,
    transparent 100%
  );
  margin: 16px 20px;
  list-style: none;
  border-radius: 0.5px;
  position: relative;
}

.nav-divider::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 80%,
    transparent 100%
  );
  border-radius: 0.5px;
}

/* 사이드바 푸터 */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

/* 대시보드 헤더 */
.dashboard-header {
  background-color: var(--white);
  padding: 14px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-color);
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  background-color: var(--light-bg);
}

/* 웹/태블릿에서 토글버튼 숨기기 (768px 이상) */
@media (min-width: 768px) {
  .sidebar-toggle {
    display: none !important;
  }
}

.dashboard-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* ===============================================
   메인 대시보드 콘텐츠 - CSS Grid 시스템
   =============================================== */

/* 대시보드 콘텐츠 - 메인 컨테이너 */
.dashboard-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

/* 데스크탑에서만 2열 레이아웃 유지 */
@media (min-width: 1201px) {
  .dashboard-content {
    grid-template-columns: 1fr 320px !important;
  }
}

/* 좌측 메인 대시보드 영역 */
.main-dashboard-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  width: 100%;
}

/* 우측 정보 위젯 영역 */
.right-info-widgets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
}

/* 차트 그리드 - dashboard.html 전용 */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  width: 100%;
  overflow: hidden;
}

/* 태블릿 사이즈에서 우측 위젯들을 아래로 이동 */
@media (max-width: 1200px) {
  .dashboard-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .main-dashboard-area {
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .right-info-widgets {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, 1fr) !important;
    gap: 1.5rem;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 1.5rem !important;
    clear: both !important;
  }
  
  .right-info-widgets .info-widget,
  .right-info-widgets .dashboard-widget {
    position: relative !important;
    z-index: 2 !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: none !important;
    min-height: 250px !important;
    height: auto !important;
  }
}

@media (max-width: 992px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }

  /* 통계 카드 - 태블릿/모바일에서 flexbox로 변경 */
  .dashboard-stats-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* 보이는 카드들이 균등하게 공간 차지 */
  .dashboard-stats-grid .stat-card {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 0;
  }

  /* 신규 입찰 카드만 숨김 */
  .stat-card-bid {
    display: none !important;
  }

  .right-info-widgets {
    grid-template-columns: 1fr !important;
  }

  .right-info-widgets .info-widget,
  .right-info-widgets .dashboard-widget {
    width: 100% !important;
    min-width: unset !important;
    max-width: none !important;
    min-height: 250px !important;
    height: auto !important;
  }

  /* 실시간 입찰현황 박스 높이 조정 */
  .bid-realtime-list {
    height: auto !important;
    max-height: 200px !important;
    min-height: 150px !important;
  }

  /* 회사정보 박스 높이 조정 */
  .info-widget.company-info {
    min-height: 250px !important;
    height: auto !important;
  }

  /* 차트 카드들도 동일한 높이로 조정 */
  .chart-card {
    min-height: 250px !important;
    height: auto !important;
  }

  /* 광고 위젯 - 태블릿/모바일에서 숨김 */
  .info-widget.ads {
    display: none !important;
  }

  /* 공유 메모 위젯 높이 조정 */
  .info-widget.shared-memo {
    min-height: 250px !important;
    height: auto !important;
  }
}

/* ===============================================
   미니멀 박스 디자인 시스템
   =============================================== */

/* 미니멀 박스 기본 클래스 */
.minimal-box {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  padding: 24px;
  transition: all 0.3s ease;
}

.minimal-box:hover {
  border-color: #d0d0d0;
  box-shadow: none;
  transform: none;
}

/* 대시보드 위젯 미니멀 스타일 */
.dashboard-widget {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  z-index: auto;
}

.dashboard-widget:hover {
  border-color: #d0d0d0;
  box-shadow: none;
  transform: none;
}

/* 위젯 헤더 공통 스타일 */
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.widget-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header .view-all-btn {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.widget-header .view-all-btn:hover {
  /* 기존 hover 효과 제거 - 스티치 효과만 유지 */
}

/* ===============================================
   통계 카드 위젯 시스템
   =============================================== */

/* 통계 그리드 컨테이너 - my-stats.html 전용 */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem;
  width: 100%;
}

/* 대시보드 통계 그리드 - dashboard.html 전용 */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1200px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem;
  }

  .dashboard-stats-grid .stat-card {
    padding: 12px 8px;
    min-height: 80px;
    gap: 8px;
  }

  .dashboard-stats-grid .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .dashboard-stats-grid .stat-details h3 {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .dashboard-stats-grid .stat-number {
    font-size: 18px;
  }
}

/* 초소형 모바일 화면 (480px 이하) */
@media (max-width: 480px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem;
  }

  .dashboard-stats-grid .stat-card {
    padding: 8px 6px;
    min-height: 70px;
    gap: 6px;
  }

  .dashboard-stats-grid .stat-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .dashboard-stats-grid .stat-details h3 {
    font-size: 9px;
    margin-bottom: 3px;
    line-height: 1.2;
  }

  .dashboard-stats-grid .stat-number {
    font-size: 16px;
    line-height: 1;
  }
}

/* 통계 카드 미니멀 스타일 */
.stat-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  min-height: 110px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.stat-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* 통계 카드 그리드 배치 - 제거 (자동 배치 사용) */

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
}

.stat-icon-replacement {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 통계 카드 이모지 스타일 - 노션 디자인 */
.stat-emoji {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: rgba(55, 53, 47, 0.04);
  border-radius: 8px;
}

/* 위젯 헤더 이모지 스타일 */
.widget-emoji {
  font-size: 1em;
  margin-right: 4px;
}

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

.stat-icon.green {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-icon.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-details h3 {
  font-size: 12px;
  color: var(--secondary-color);
  margin-bottom: 6px;
  font-weight: 500;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 2px;
}

.stat-change {
  font-size: 12px;
  font-weight: 500;
}

.stat-change.positive {
  color: var(--success-color);
}

.stat-change.negative {
  color: var(--danger-color);
}

/* ===============================================
   차트 위젯 시스템
   =============================================== */

/* 차트 그리드 컨테이너 - 삭제 (위에 이미 정의됨) */

/* 차트 카드 미니멀 스타일 */
.chart-card,
.card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  padding: 24px;
  transition: all 0.3s ease;
  min-height: 350px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.chart-card:hover,
.card:hover {
  border-color: #d0d0d0;
  box-shadow: none;
  transform: none;
}

/* 차트 카드 그리드 배치 - 자동 배치 사용 */

.chart-filter {
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--white);
  color: var(--text-color);
  font-size: 13px;
  cursor: pointer;
}

.chart-filter:focus,
.chart-filter:active,
.chart-filter:focus-visible {
  outline: none !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: none !important;
}

.chart-container {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 위젯 공통 스타일 */
.widget {
  background-color: var(--white);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.widget h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.widget-header h3 {
  margin: 0;
}

/* 회사 정보 위젯 */
.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  width: 28px;
  height: 28px;
  background-color: #f7f7f7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00affa;
  font-size: 14px;
}

.info-item .label {
  font-size: 11px;
  color: var(--secondary-color);
  margin-bottom: 2px;
}

.info-item .value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
}

/* 클릭 가능한 정보 아이템 */
.info-item.clickable {
  cursor: pointer;
  position: relative;
}

.info-item.clickable:hover {
  background-color: rgba(55, 53, 47, 0.04);
  border-radius: 6px;
}

/* 정보 구분선 */
.info-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 12px 0;
}

/* 광고 위젯 */
.widget.ads {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

/* 광고 캐러셀 컨테이너 */
.ad-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ad-banner {
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #f3f4f6;
}

/* 슬라이드 트랙 */
.ad-slide-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

/* 개별 슬라이드 */
.ad-slide {
  flex-shrink: 0;
  width: 100%; /* 기본값 (JS에서 동적으로 재설정됨) */
  height: 100%;
  min-height: 180px;
  position: relative;
}

.ad-banner .ad-placeholder {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ad-placeholder:hover {
  background: #f9fafb;
  transform: scale(1.02);
}

.ad-placeholder i {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.ad-placeholder span {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
}

.ad-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
}

/* 광고 인디케이터 */
.ad-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.ad-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, border-radius 0.3s ease;
  padding: 0;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.ad-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.ad-indicator.active {
  background: #ffffff;
  width: 24px;
  border-radius: 4px;
}

/* 광고 네비게이션 버튼 */
.ad-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.ad-nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.ad-nav-btn i {
  font-size: 16px;
}

.ad-nav-prev {
  left: 12px;
}

.ad-nav-next {
  right: 12px;
}

/* 호버 시 버튼 표시 */
.ad-carousel-container:hover .ad-nav-btn {
  opacity: 1;
}

.ad-nav-btn {
  opacity: 0.7;
}

.ad-carousel-container:hover .ad-nav-btn {
  opacity: 1;
}

/* 공유 메모 위젯 */
.memo-list {
  margin-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.memo-item {
  padding: 10px;
  background-color: var(--light-bg);
  border-radius: 6px;
  margin-bottom: 8px;
}

.memo-item:last-child {
  margin-bottom: 0;
}

.memo-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.memo-author {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-color);
}

.memo-time {
  font-size: 10px;
  color: var(--secondary-color);
}

.memo-content {
  font-size: 12px;
  color: var(--text-color);
  line-height: 1.4;
}

/* 최근 활동 */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: start;
  gap: 10px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 14px;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
}

.activity-details p {
  margin-bottom: 2px;
  color: var(--text-color);
  font-size: 12px;
  line-height: 1.4;
}

.activity-time {
  font-size: 10px;
  color: var(--secondary-color);
}

/* ===============================================
   현대적 반응형 그리드 시스템
   =============================================== */

/* 대형 데스크탑 (1440px 이상) */
@media (min-width: 1440px) {
  .dashboard-content {
    padding: 24px 32px;
  }
}


/* 태블릿 (768px ~ 1023px) - 2열 레이아웃 */
@media (min-width: 768px) and (max-width: 1023px) {
  .dashboard-container {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'sidebar-left main-content';
  }
  
  .dashboard-container.no-right-sidebar {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'sidebar-left main-content';
  }

  .left-sidebar {
    width: 200px;
    min-width: 200px;
  }

  .dashboard-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
    grid-template-areas:
      'schedule schedule'
      'stats-1 stats-2'
      'stats-3 chart-1'
      'chart-2 chart-2';
  }

  .stat-card {
    padding: 20px;
    min-height: 100px;
  }

  .chart-card {
    min-height: 300px;
  }
}

/* 모바일 (767px 이하) - 1열 레이아웃 */
@media (max-width: 767px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    grid-template-areas: 'main-content';
  }
  
  .dashboard-container.no-right-sidebar {
    grid-template-columns: 1fr;
    grid-template-areas: 'main-content';
  }

  .left-sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    z-index: 1000;
    height: 100vh;
    width: 240px;
    min-width: 240px;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
  }

  .left-sidebar.active {
    left: 0;
  }

  .dashboard-header {
    padding: 12px 16px;
  }

  .dashboard-header h2 {
    font-size: 18px;
  }

  .sidebar-toggle {
    display: block;
    font-size: 16px;
    padding: 8px;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    grid-template-areas:
      'schedule'
      'stats-1'
      'stats-2'
      'stats-3'
      'chart-1'
      'chart-2';
  }

  .stat-card {
    padding: 20px;
    min-height: 90px;
    gap: 16px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .stat-number {
    font-size: 22px;
  }

  .chart-card {
    min-height: 280px;
    padding: 20px;
  }

  .chart-container {
    height: 200px;
  }

  .today-schedule-section {
    min-height: 150px;
  }

  .schedule-header {
    padding: 16px 20px;
  }

  .schedule-content {
    padding: 16px 20px;
  }
}

/* 소형 모바일 (480px 이하) - 최적화된 1열 레이아웃 */
@media (max-width: 480px) {
  .left-sidebar {
    width: 280px;
    left: -280px;
  }

  .dashboard-header {
    padding: 10px 12px;
  }

  .dashboard-header h2 {
    font-size: 16px;
  }

  .dashboard-content {
    padding: 12px;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
    min-height: 80px;
    gap: 12px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-details h3 {
    font-size: 12px;
  }

  .chart-card {
    min-height: 250px;
    padding: 16px;
  }

  .chart-container {
    height: 180px;
  }

  .widget-header h3 {
    font-size: 14px;
  }

  .schedule-header {
    padding: 12px 16px;
  }

  .schedule-content {
    padding: 12px 16px;
  }
}

/* ===============================================
   데스크탑 페이지 콘텐츠 최대 활용 시스템
   =============================================== */

/* 데스크탑 (1024px 이상) - 페이지 콘텐츠 최대 폭 활용 */
@media (min-width: 1024px) {
  /* 대시보드 헤더 최대 폭 활용 */
  .dashboard-header {
    max-width: none !important;
    width: 100% !important;
    padding: 16px 24px !important;
  }

  /* 메인 콘텐츠 최대 폭 활용 */
  .main-content {
    max-width: none !important;
    width: 100% !important;
  }

  /* 대시보드 콘텐츠 최대 폭 활용 (기본) */
  .dashboard-content {
    max-width: none !important;
    width: 100% !important;
    padding: 20px 24px !important;
  }

  /* 페이지 콘텐츠 최대 폭 활용 (테이블 페이지용) */
  .page-content {
    max-width: none !important;
    width: 100% !important;
    padding: 20px 24px !important;
    overflow-x: visible !important;
  }

  /* 우측 사이드바가 없는 페이지에서 더 넓은 활용 */
  .dashboard-container.no-right-sidebar .main-content {
    width: 100% !important;
    max-width: none !important;
  }

  .dashboard-container.no-right-sidebar .page-content,
  .dashboard-container.no-right-sidebar .dashboard-content {
    width: 100% !important;
    max-width: none !important;
    padding: 20px 32px !important;
  }

  /* 테이블과 폼 요소들의 전체 너비 활용 */
  .dashboard-container.no-right-sidebar .data-table-container,
  .dashboard-container.no-right-sidebar .table-container,
  .dashboard-container.no-right-sidebar .action-bar {
    width: 100% !important;
    max-width: none !important;
  }

  .dashboard-container.no-right-sidebar .data-table {
    width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
  }
}

/* 대형 데스크탑 (1440px 이상) - 추가 패딩 */
@media (min-width: 1440px) {
  .dashboard-header {
    padding: 20px 32px !important;
  }

  .dashboard-content {
    padding: 24px 32px !important;
  }

  .page-content {
    padding: 24px 32px !important;
  }
}

/* 초대형 데스크탑 (1920px 이상) - 최대 패딩 */
@media (min-width: 1920px) {
  .dashboard-header {
    padding: 24px 40px !important;
  }

  .dashboard-content {
    padding: 28px 40px !important;
  }

  .page-content {
    padding: 28px 40px !important;
  }
}

/* ===============================================
   미니멀 디자인 그림자 완전 제거
   =============================================== */

/* 모든 그림자 효과 완전 제거 (최고 우선순위) */
* {
  box-shadow: none !important;
}

/* 호버, 포커스, 액티브 상태에서도 그림자 없음 */
*:hover,
*:focus,
*:active {
  box-shadow: none !important;
  transform: none !important;
}

/* ===============================================
   테이블 반응형 처리 시스템
   =============================================== */

/* 미니멀 테이블 컨테이너 */
.table-container {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  margin: 16px 0;
  padding: 0;
}

.table-responsive {
  min-width: 600px; /* 최소 테이블 너비 */
  width: 100%;
}

/* 테이블 가로 스크롤 스타일링 */
.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 테이블 내부 데이터 잘림 방지 */
.table-container table {
  white-space: nowrap;
}

.table-container td,
.table-container th {
  padding: 12px 16px;
  min-width: 100px; /* 셀 최소 너비 */
}

/* 모바일에서 테이블 최적화 */
@media (max-width: 767px) {
  .table-container {
    margin: 12px -16px; /* 화면 가장자리까지 확장 */
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .table-container td,
  .table-container th {
    padding: 8px 12px;
    min-width: 80px;
    font-size: 14px;
  }
}

/* Grid 시스템 보조 클래스 */
.grid-full-width {
  grid-column: 1 / -1; /* 전체 너비 차지 */
}

.grid-span-2 {
  grid-column: span 2; /* 2열 차지 */
}

.grid-span-3 {
  grid-column: span 3; /* 3열 차지 */
}

/* 위젯 높이 균등화 */
.equal-height-row {
  display: grid;
  grid-template-rows: 1fr; /* 모든 아이템 동일 높이 */
}

/* 접근성 개선 */
.dashboard-widget:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 스켈레톤 로딩 애니메이션 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===============================================
   오늘의 일정 위젯
   =============================================== */

/* Today와 정산 지표 그리드 */
.top-widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

/* 1920px 미만에서는 1열로 배치 */
@media (max-width: 1919px) {
  .top-widgets-grid {
    grid-template-columns: 1fr;
  }
}

/* 오늘의 일정 섹션 미니멀 스타일 */
.today-schedule-section {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 200px;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
}

/* 정산 지표 섹션 스타일 */
.settlement-metrics-section {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 200px;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.settlement-metrics-section:hover {
  border-color: #d0d0d0;
}

.settlement-metrics-section .widget-header {
  flex-shrink: 0;
}

.settlement-content {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 0;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.settlement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-height: 80px;
}

.settlement-divider {
  width: 1px;
  height: 80px;
  background-color: var(--border-color);
  margin: 0;
  flex-shrink: 0;
  align-self: stretch;
}

.settlement-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
}

.settlement-icon i,
.settlement-icon svg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.settlement-icon.upcoming {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.settlement-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.settlement-label {
  font-size: 13px;
  color: var(--secondary-color);
  margin: 0 0 6px 0;
  font-weight: 500;
}

.settlement-value-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.settlement-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.settlement-change {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.settlement-change svg.settlement-arrow-icon {
  flex-shrink: 0;
  stroke: currentColor;
}

.settlement-change.positive {
  color: var(--success-color);
}

.settlement-change.negative {
  color: var(--danger-color);
}

/* 모바일에서는 세로로 배치 */
@media (max-width: 768px) {
  .settlement-content {
    flex-direction: column;
    gap: 20px;
  }

  .settlement-divider {
    width: 100%;
    height: 1px;
  }
}


/* 정보 위젯 기본 스타일 */
.info-widget {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: auto;
}

.info-widget:hover {
  border-color: #d0d0d0;
  box-shadow: none;
  transform: none;
}

/* 회사 정보 위젯 특별 스타일 */
.info-widget.company-info {
  min-height: auto;
}

.info-widget.company-info .company-info-content {
  font-size: 13px;
}

.info-widget.company-info .info-item {
  margin-bottom: 10px;
}

/* 광고 위젯 특별 스타일 */
.info-widget.ads {
  padding: 0;
  overflow: hidden;
  min-height: auto;
}

.info-widget.ads .widget-header {
  padding: 16px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-widget.ads .ad-banner {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

/* 공유 메모 위젯 특별 스타일 */
.info-widget.shared-memo .memo-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.info-widget.shared-memo .no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  color: #9ca3af;
}

.info-widget.shared-memo .no-data i {
  font-size: 36px;
  margin-bottom: 10px;
  color: #d1d5db;
}

.info-widget.shared-memo .no-data p {
  margin: 0;
  font-size: 13px;
}

.today-schedule-section:hover {
  border-color: #d0d0d0;
  box-shadow: none;
  transform: none;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.schedule-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-header h3 i {
  color: #3b82f6;
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.view-all-btn:hover {
  /* 기존 hover 색상 변화 제거 - 스티치 효과만 유지 */
}

.schedule-content {
  padding: 20px 24px;
}

.no-schedule {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.no-schedule i {
  font-size: 48px;
  margin-bottom: 12px;
  color: #d1d5db;
}

.no-schedule p {
  margin: 0;
  font-size: 14px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f8fafc;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.schedule-item:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.schedule-item:last-child {
  margin-bottom: 0;
}


.schedule-time {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  min-width: 120px;
}

.schedule-details {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-details h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.schedule-details p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.schedule-type {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.schedule-type.general {
  background: #ddd6fe;
  color: #7c3aed;
}

.schedule-type.tour {
  background: #dbeafe;
  color: #1e40af;
}

.schedule-type.meeting {
  background: #fef3c7;
  color: #92400e;
}

.schedule-type.contract {
  background: #fee2e2;
  color: #991b1b;
}

/* 일정 상세 모달 스타일 */
.day-events-list {
  max-height: 400px;
  overflow-y: auto;
}

.event-detail-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #f8fafc;
  border-radius: 8px;
}


.event-time {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  min-width: 120px;
  flex-shrink: 0;
}

.event-info {
  flex: 1;
}

.event-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.event-type {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
}

.event-location {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.event-location i {
  color: #9ca3af;
  margin-right: 4px;
}

.event-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

/* 실시간 입찰 리스트 */
.bid-realtime-list {
  height: 300px;
  overflow-y: auto;
}

.bid-realtime-list .no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  text-align: center;
  padding: 40px 20px;
}

.bid-realtime-list .no-data p {
  margin: 0;
  font-size: 14px;
}

.bid-realtime-list .no-data i {
  font-size: 48px;
  margin-bottom: 16px;
}

.bid-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.bid-item:hover {
  background-color: #f9fafb;
}

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

.bid-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.bid-type-icon.rental {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.bid-type-icon.warehouse {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.bid-type-icon.meeting {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.bid-info {
  flex: 1;
  min-width: 0;
}

.bid-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bid-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #6b7280;
}

.bid-time {
  text-align: right;
  min-width: 60px;
}

.time-remaining {
  font-size: 16px;
  font-weight: 600;
  color: #2563eb;
  display: block;
}

.time-label {
  font-size: 11px;
  color: #9ca3af;
}

/* ===============================================
   광고 영역 스타일 (사용자 대시보드)
   =============================================== */

/* 광고 링크 스타일 */
.ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
}

.ad-link:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 광고 이미지 스타일 */
.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ad-link:hover .ad-image {
  transform: scale(1.05);
}

/* 광고 제목 스타일 - 숨김 처리 */
.ad-title {
  display: none;
}

/* 광고 에러 상태 */
.ad-error {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  text-align: center;
  padding: 20px;
}

.ad-error i {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.ad-error span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

/* 반응형 광고 스타일 */
@media (max-width: 768px) {
  .ad-title {
    font-size: 13px;
    padding: 16px 12px 10px;
  }

  .ad-placeholder i {
    font-size: 24px;
  }

  .ad-placeholder span {
    font-size: 12px;
  }
}

/* 광고 로딩 애니메이션 */
.ad-loading {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 전체보기 버튼 화살표 스타일 */
.view-all-arrow {
  width: 16px;
  height: 16px;
  margin-left: 0px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* 다크 테마에서 SVG 색상 반전 */
[data-theme='dark'] .view-all-arrow {
  filter: brightness(0) invert(1);
}

.view-all-btn:hover .view-all-arrow {
  transform: translateX(2px);
}

/* ===============================================
   새 사이드바 디자인 시스템
   =============================================== */

/* 새 디자인 사이드바 컨테이너 */
.sidebar.new-design {
  padding: 24px;
  background: white;
  border-radius: 4px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
  border: none;
  box-shadow: none;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
}

/* 상단 영역 */
.sidebar.new-design .sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 0px;
  width: 100%;
  flex-shrink: 0;
}

/* 하단 영역 */
.sidebar.new-design .sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  flex-shrink: 0;
  margin-top: 24px;
}

/* 브랜드 헤더 */
.sidebar.new-design .sidebar-brand {
  align-self: stretch;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  display: flex;
  margin-bottom: 20px;
}

/* 로고 컨테이너 */
.sidebar.new-design .sidebar-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
}

.sidebar.new-design .sidebar-brand .logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar.new-design .sidebar-brand .logo-svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.sidebar.new-design .sidebar-brand .logo-text {
  display: flex;
  align-items: center;
}

.sidebar.new-design .sidebar-brand .logo-text a {
  color: #252C32;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 기존 h1 스타일 (하위 호환성) */
.sidebar.new-design .sidebar-brand h1 {
  flex: 1 1 0;
  height: 33px;
  color: black;
  font-size: 24px;
  font-weight: 800;
  word-wrap: break-word;
  margin: 0;
}

.sidebar.new-design .sidebar-brand h1 a {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Syncle 로고 오로라 효과 */
.sidebar.new-design .sidebar-brand .logo-text a:hover,
.sidebar.new-design .sidebar-brand h1 a:hover {
  background: linear-gradient(90deg, #8A2BE2, #FF1493, #00BFFF, #00FF7F, #FFD700, #FF6347, #8A2BE2);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aurora-flow 3s ease-in-out infinite;
}

@keyframes aurora-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* New Chat 버튼 */
.sidebar.new-design .new-chat-section {
  align-self: stretch;
  display: flex;
  margin-bottom: 16px;
  width: 100%;
}

.sidebar.new-design .new-chat-btn {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  background: var(--notion-accent-blue, #2383e2);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.sidebar.new-design .new-chat-btn .plus-icon {
  width: 16px;
  height: 16px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar.new-design .new-chat-btn span {
  color: white;
  font-size: 16px;
  font-weight: 600;
  word-wrap: break-word;
}

.sidebar.new-design .new-chat-btn .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar.new-design .new-chat-btn .nav-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

/* New Chat 버튼은 스티치 효과 없이 실제 크기로 표시 */

.sidebar.new-design .new-chat-btn:hover {
  background: #1a73d1;
}

/* 메인 네비게이션 섹션 */
.sidebar.new-design .main-nav-section {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  display: flex;
  margin-bottom: 16px;
}

.sidebar.new-design .nav-section-header {
  align-self: stretch;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  word-wrap: break-word;
}

/* 메인 네비게이션 */
.sidebar.new-design .main-nav {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  display: flex;
}

/* 네비게이션 아이템 */
.sidebar.new-design .nav-item {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
  margin-bottom: 8px;
}

.sidebar.new-design .nav-item:last-child {
  margin-bottom: 0;
}

.sidebar.new-design .nav-link {
  align-self: stretch;
  padding: 8px 12px;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  display: flex;
  border-radius: 4px;
  text-decoration: none;
  color: #191D23;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 16px;
  position: relative;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* nav-icon 스타일 */
.sidebar.new-design .nav-link .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.65;
}

.sidebar.new-design .nav-link .nav-icon svg {
  width: 16px;
  height: 16px;
}

/* 텍스트 라벨 스타일 */
.sidebar.new-design .nav-link > span:not(.nav-icon):not(.dropdown-arrow) {
  flex: 1;
  color: #191D23;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* hover 상태 - 배경색 변경 */
.sidebar.new-design .nav-link:hover {
  background-color: rgba(55, 53, 47, 0.08) !important;
}

.sidebar.new-design .nav-link:hover .nav-icon {
  opacity: 1;
}

/* 활성 상태 hover - 높은 특이성으로 오버라이드 */
.sidebar.new-design .nav-item.active > .nav-link:hover {
  background-color: rgba(55, 53, 47, 0.08) !important;
}

/* 활성 상태 - 단일 링크 (hover가 아닐 때만 transparent) */
.sidebar.new-design .nav-item.active > .nav-link:not(.dropdown-trigger):not(:hover) {
  background-color: transparent !important;
}

.sidebar.new-design .nav-item.active > .nav-link:not(.dropdown-trigger) .nav-icon {
  opacity: 1;
}

.sidebar.new-design .nav-item.active > .nav-link:not(.dropdown-trigger) > span:not(.nav-icon) {
  font-weight: 600;
}

/* 활성 상태 - 드롭다운 트리거 */
.sidebar.new-design .dropdown-item.expanded > .dropdown-trigger {
  background-color: rgba(55, 53, 47, 0.08) !important;
}

.sidebar.new-design .nav-item.active .nav-link span {
  color: #191D23;
}

.sidebar.new-design .nav-item.active .nav-link .nav-icon {
  opacity: 1;
}

/* 드롭다운 트리거 */
.sidebar.new-design .dropdown-trigger {
  padding: 8px 12px;
}

/* 드롭다운 화살표 - 인라인 SVG 사용 */
.sidebar.new-design .dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.sidebar.new-design .dropdown-arrow svg {
  width: 12px;
  height: 12px;
}

.sidebar.new-design .dropdown-item.expanded .dropdown-arrow {
  transform: rotate(90deg);
  opacity: 0.7;
}

/* 드롭다운 메뉴 */
.sidebar.new-design .dropdown-menu {
  align-self: stretch;
  padding: 8px;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 8px;
  display: none;
}

.sidebar.new-design .dropdown-menu.open {
  display: flex;
}

.sidebar.new-design .dropdown-content {
  align-self: stretch;
  padding-left: 28px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  display: flex;
  position: relative;
}

/* .dropdown-link 스타일은 sidebar.css에서 관리 */

/* 오른쪽 화살표 (회의실용) */
.sidebar.new-design .right-arrow::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url('../svg/small-arrow.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 확장된 드롭다운의 화살표 회전 */
.sidebar.new-design .dropdown-item.expanded .dropdown-arrow::after {
  transform: rotate(-90deg);
}

/* 구분선 */
.sidebar.new-design .sidebar-divider {
  width: 100%;
  height: 1px;
  background: #D0D5DD;
  margin: 0;
  flex-shrink: 0;
}

/* 프로필 섹션 - 강화된 스타일 리셋 */
.sidebar.new-design .sidebar-bottom {
  padding: 0 !important;
  margin: 0 !important;
  gap: 16px !important;
}

/* 사이드바 하단의 모든 하위 요소들 리셋 */
.sidebar.new-design .sidebar-bottom * {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* 프로필 섹션만 예외적으로 gap 허용 */
.sidebar.new-design .profile-section,
.sidebar.new-design .profile-info,
.sidebar.new-design .profile-details {
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar.new-design .profile-section {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px !important;
  display: flex !important;
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  height: auto !important;
}

.sidebar.new-design .profile-header {
  align-self: stretch;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  word-wrap: break-word;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.sidebar.new-design .profile-info {
  align-self: stretch;
  justify-content: flex-start;
  align-items: center;
  gap: 8px !important;
  display: flex;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar.new-design .profile-avatar {
  width: 42px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar.new-design .profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.sidebar.new-design .profile-details {
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px !important;
  display: flex;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar.new-design .profile-name {
  color: #191D23;
  font-size: 14px;
  font-weight: 600;
  word-wrap: break-word;
  line-height: 20px;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar.new-design .profile-email {
  color: #A0ABBB;
  font-size: 14px;
  font-weight: 600;
  word-wrap: break-word;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* 구분선 */
.sidebar.new-design .sidebar-divider {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 1px !important;
}

/* 로그아웃 버튼 */
.sidebar.new-design .logout-section {
  align-self: stretch;
  display: flex;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar.new-design .logout-btn {
  align-self: stretch;
  width: 100%;
  padding: 6px 8px;
  background: #F7F8F9;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  display: flex;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 28px;
  position: relative;
}

.sidebar.new-design .logout-btn span {
  color: #191D23;
  font-size: 14px;
  font-weight: 600;
  word-wrap: break-word;
}

.sidebar.new-design .logout-btn .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar.new-design .logout-btn .nav-icon svg {
  width: 16px;
  height: 16px;
  stroke: #191D23;
}

.sidebar.new-design .logout-btn:hover {
  background: #F7F8F9;
}


/* 반응형 처리 - sidebar.css에서 통합 관리 */
/* mobile-open 클래스로 사이드바 표시/숨김 처리 (sidebar.css 참조) */

/* ===============================================
   Magic Card 효과 시스템
   =============================================== */

/* Magic Card 컨테이너 */
.magic-card-container {
  position: relative;
  padding: 0;
}

/* Magic Card 그리드 - 세로 리스트 레이아웃 */
.magic-card-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Magic Card 개별 아이템 */
.magic-card-item {
  position: relative;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  transition: all 0.3s ease;
  overflow: visible;
  cursor: default;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 라이트 모드 스타일 */
[data-theme='light'] .magic-card-item,
:root .magic-card-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* 마지막 아이템은 하단 테두리 제거 */
.magic-card-item:last-child {
  border-bottom: none;
}

/* 클릭 가능한 아이템 */
.magic-card-item.clickable {
  cursor: pointer;
}

/* Magic Card 아이템 hover 효과 */
.magic-card-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: none;
}

[data-theme='light'] .magic-card-item:hover,
:root .magic-card-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Spotlight 효과를 위한 오버레이 */
.magic-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.05),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

[data-theme='light'] .magic-card-item::before,
:root .magic-card-item::before {
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 0, 0, 0.03),
    transparent 40%
  );
}

.magic-card-item:hover::before {
  opacity: 1;
}

/* Magic Card 라벨 스타일 */
.magic-card-item .label {
  font-size: 11px;
  color: var(--secondary-color);
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

/* Magic Card 값 스타일 */
.magic-card-item .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.5;
  word-break: break-word;
}

/* 클릭 가능한 아이템의 값 스타일 */
.magic-card-item.clickable .value {
  color: var(--text-color);
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .magic-card-container {
    padding: 0;
  }

  .magic-card-item {
    padding: 8px 0;
  }

  .magic-card-item .label {
    font-size: 10px;
  }

  .magic-card-item .value {
    font-size: 13px;
  }
}

/* ===============================================
   예약 알림 배지 스타일
   =============================================== */

.booking-badge,
span.booking-badge,
.nav-link .booking-badge,
.nav-item .booking-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  margin-left: 8px !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  border-radius: 10px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  animation: pulse-badge 2s ease-in-out infinite !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* 배지 펄스 애니메이션 */
@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0);
  }
}

/* 다크 테마 */
[data-theme='dark'] .booking-badge {
  background-color: #ef4444;
  color: #ffffff;
}

/* 사이드바 메뉴 아이템에서의 배지 위치 조정 */
.nav-item .booking-badge,
.menu-item .booking-badge {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

/* 링크 내부 배지는 상대 위치 */
a .booking-badge {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  margin-left: 8px;
}

/* 반응형 - 모바일에서 배지 크기 조정 */
@media (max-width: 768px) {
  .booking-badge {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    padding: 0 5px;
  }
}


