/* 대시보드 기본 스타일 */
.dashboard-section {
    margin-bottom: 30px;
  }

  .dashboard-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: relative;
  }

  /* 대시보드 탭 메뉴 */
  .dashboard-tabs {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .categorySwiper {
    overflow: hidden;
    padding: 5px 0;
    margin: 0 70px; /* 좌우 여백 추가 */
  }

  .swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
  }

  /* 모바일에서 첫 번째 항목에 왼쪽 마진 추가하여 중앙 정렬 효과 */


  .category-tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    margin-right: 5px;
    font-size: 14px;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-align: center;
  }

  .category-tab.active {
    background-color: var(--main-color, #009ee2); /* 기존 사이트 메인 컬러 사용 */
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 158, 226, 0.3);
  }

  /* 스와이퍼 버튼 */
  .dashboard-tabs .swiper-btn-wrap {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .dashboard-tabs .swiper-button-next {
    right: 0;
  }

  .dashboard-tabs .swiper-button-prev {
    left: 0;
  }

  /* 뷰 모드 전환 버튼 */
  .view-mode-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
  }

  .view-mode-btn {
    width: 30px;
    height: 30px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-left: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
  }

  .view-mode-btn.active {
    background-color: #edf2fd;
    color: var(--main-color, #009ee2);
  }

  /* 대시보드 콘텐츠 영역 */
  .dashboard-content {
    min-height: 200px;
  }

  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
  }

  /* 그리드 뷰 스타일 */
  .grid-view {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }

  .grid-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
  }

  .grid-item:hover {
    background-color: #f4f8ff;
    border-color: #e0e8ff;
  }

  /* 그리드 뷰 스타일 - 항목 상단 글씨(middle-category) 수정 */
.grid-item .middle-category {
  font-size: 14px;  /* 12px에서 14px로 증가 */
  color: var(--main-color, #009ee2);
  margin-bottom: 6px;
  font-weight: 600;  /* 볼드 추가 */
}

/* 그리드 뷰 스타일 - 항목 이름 확대 */
.grid-item .item-name {
  font-size: 16px;  /* 14px에서 16px로 증가 */
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 그리드 뷰 스타일 - 값 글씨 크기 증가 */
.grid-item .item-value {
  font-size: 18px;  /* 16px에서 18px로 증가 */
  font-weight: 600;
  color: var(--main-color, #009ee2);
  text-align: right;
}

/* 리스트 뷰 스타일 - 항목 이름 확대 */
.list-item .item-name {
  font-size: 16px;  /* 14px에서 16px로 증가 */
  color: #333;
}

/* 리스트 뷰 스타일 - 값 글씨 크기 증가 */
.list-item .item-value {
  font-size: 18px;  /* 15px에서 18px로 증가 */
  font-weight: 600;
  color: var(--main-color, #009ee2);
  margin-left: 10px;
}

/* 메인 카테고리 헤더 글씨 크기 조정 */
.middle-category-title {
  font-size: 16px;  /* 14px에서 16px로 증가 */
  margin: 0;
  font-weight: 600;  /* 볼드 강화 */
}

  .middle-category-header {
    padding: 10px 15px;
    background-color: #f5f5f5;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  .toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
  }

  .middle-category-header.collapsed .toggle-icon {
    transform: rotate(-180deg);
  }

  .middle-category-items {
    border-top: 1px solid #eee;
  }

  .list-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
  }

  .list-item:hover {
    background-color: #f9f9f9;
  }

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

  .list-item .item-info {
    flex: 1;
  }

  .tab-content.active .grid-view:has(.grid-item:first-child:nth-last-child(-n+2)) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* 항목 크기 유지하며 가운데 정렬 */
  .tab-content.active .grid-view:has(.grid-item:first-child:nth-last-child(-n+2)) .grid-item {
    /* 기존 그리드 크기를 유지하기 위한 설정 */
    width: calc(33.333% - 20px); /* 3개 열일 때의 크기와 동일하게 */
    min-width: 250px; /* 최소 너비 설정 */
    margin: 0 10px 10px;
  }
  /* 반응형 설정 */
  @media (min-width: 576px) {
    .grid-view {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 992px) {
    .grid-view {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  /* 일반 탭에 hover 시 스타일 (선택사항, 없으면 생략 가능) */
.category-tab:hover {
    background-color: #eaeaea;
    color: #333;
  }

  /* 선택된 탭(active)에는 hover 시 스타일 변경 금지 */
  .category-tab.active:hover {
    background-color: var(--main-color, #009ee2);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 158, 226, 0.3);
    cursor: default;
  }
