.diary-btn-container {
  text-decoration: none;
}

/* 헤더 스타일 */
.main-header {
  background: #fff;
  color: white;
  padding: 15px 0;
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.header-container {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.header-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 헤더 로고 컨테이너 */
.header-logo-container {
  cursor: pointer;
}

/* 헤더 버튼 공통 스타일 */
.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #333;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

.header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 알림 버튼 스타일 */
.notification-btn, .alarm-btn {
  background: #facc15;
  border: none;
  color: #1f2937;
  font-size: 16px;
  cursor: pointer;
  /* padding: 8px 24px; */
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.notification-btn:hover, .alarm-btn:hover {
  background: #fde047;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
}

/* 게시판 버튼 스타일 */
.board-btn {
  background: #007bff;
  color: white;
  border-color: #007bff;
}


.board-btn:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.biz_btn {
  background: #00c8ff;
  color: white;
  border-color: #00c8ff;
}

.biz_btn:hover {
  background: #60ddff;
  border-color: #60ddff;
}


/* 문의하기 버튼 스타일 */
.inquiry-btn {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.inquiry-btn:hover {
  background: #1e7e34;
  border-color: #1e7e34;
}

/* 관리자 페이지 버튼 스타일 */
.admin-btn {
  background: #ffc107;
  color: #212529;
  border-color: #ffc107;
}

.admin-btn:hover {
  background: #e0a800;
  border-color: #e0a800;
}

/* 로그인/회원가입 버튼 스타일 */
.login-btn {
  background: #17a2b8;
  color: white;
  border-color: #17a2b8;
}

.login-btn:hover {
  background: #138496;
  border-color: #138496;
}

.signup-btn {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.signup-btn:hover {
  background: #5a6268;
  border-color: #5a6268;
}

/* 로그아웃 버튼 스타일 */
.logout-btn {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.logout-btn:hover {
  background: #c82333;
  border-color: #c82333;
}

/* 알림 스타일 */
.notification-container {
  position: relative;
}

.notification-badge-hidden {
  display: none;
}

.notification-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1001;
  margin-top: 5px;
  border: 1px solid #e9ecef;
}

.notification-panel-hidden {
  display: none;
}

/* 메뉴 드롭다운 스타일 */
.menu-container {
  position: relative;
  display: inline-block;
}

#menuDropdown.menu-dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  width: 200px !important;
  background: white !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  z-index: 1001 !important;
  margin-top: 5px !important;
  border: 1px solid #e9ecef !important;
  display: block !important; /* 기본적으로 보이도록 설정 */
}

#menuDropdown.menu-dropdown.menu-dropdown-hidden {
  display: none !important; /* 숨김 클래스가 있을 때만 숨김 */
}

.menu-list {
  padding: 8px 0;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
  color: #333;
}

.menu-item:hover {
  background-color: #f8f9fa;
}

.menu-item i {
  width: 16px;
  margin-right: 12px;
  color: #6c757d;
}

.menu-item span {
  flex: 1;
}

.menu-item:first-child {
  border-radius: 8px 8px 0 0;
}

.menu-item:last-child {
  border-radius: 0 0 8px 8px;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.notification-header h3 {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.close-notification-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 0;
}

/* 알림 아이템 스타일 */
.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
  position: relative;
  cursor: pointer;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: #f0f8ff;
}

.notification-item.unread:hover {
  background: #e6f3ff;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
}

.notification-message {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  max-height: 55px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.notification-time {
  color: #999;
  font-size: 11px;
}

.no-notifications {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* 문의하기 모달 */
.inquiry-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* 미디어 쿼리 - 모바일과 데스크탑 대응 */
/* 데스크탑 (768px 이상): 햄버거 메뉴 숨기기 */
@media (min-width: 768px) {
  .menu-container {
    display: none !important;
  }
}

/* 모바일 (767px 이하): 헤더 버튼들 숨기기, 햄버거 메뉴만 표시 */
@media (max-width: 767px) {
  /* 개별 헤더 버튼들 숨기기 */
  .header-btn.board-btn,
  .header-btn.inquiry-btn,
  .header-btn.admin-btn,
  .header-btn.biz_btn,
  .diary-btn {
    display: none !important;
  }
  
  /* 햄버거 메뉴는 표시 */
  .menu-container {
    display: inline-block !important;
  }
  
  /* 헤더 레이아웃 조정 */
  .header-right {
    gap: 10px;
  }
  
  /* 메뉴 드롭다운 크기 조정 */
  #menuDropdown.menu-dropdown {
    width: 180px !important;
    right: -10px !important; /* 화면 끝에서 약간 떨어뜨리기 */
  }
  
  /* 로고 크기 조정 */
  .header-title {
    font-size: 20px !important;
  }
  
  .header-sub-title {
    font-size: 12px !important;
  }
}

.inquiry-modal-content {
  background: white;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.inquiry-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.inquiry-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inquiry-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.inquiry-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.inquiry-close:hover {
  background: #f0f0f0;
}

.inquiry-body {
  padding: 20px;
}

.inquiry-description {
  color: #6c757d;
  font-size: 14px;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.inquiry-content-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.inquiry-textarea {
  width: 100%;
  height: 200px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.inquiry-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.inquiry-char-count {
  text-align: right;
  margin-top: 5px;
  color: #6c757d;
  font-size: 12px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-cancel {
  padding: 10px 20px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-cancel:hover {
  background: #5a6268;
}

.btn-submit {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: #0056b3;
}

.btn-submit:disabled {
  background: #6c757d;
  cursor: not-allowed;
}


/* 비즈인포 스타일 */
.bizinfo-container {
  width: 100%;
}

.bizinfo-content-box {
  margin: 0 auto;
}

.bizinfo-contents {
  display: flex;
  height: 100%;
}

.bizinfo-content-1,
.bizinfo-content-2 {
  width: 50%;
  height: 100%;
}

.bizinfo-header {
  width: 100%;
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
}

.bizinfo-header-title {
  font-size: 30px;
  font-weight: 500;
  color: #000;
  margin-left: 20px;
}

.bizinfo-line {
  width: 90%;
  height: 4px;
  border-bottom: 4px solid #007bff;
  margin: 0 auto;
}


.bizinfo-content-title-box {
  display: flex;
  flex-direction: row;
  text-align: center;
  background-color: #75b8ff91;
  width: 90%;
  height: 35px;
  margin: 30px auto 20px auto;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.bizinfo-content-title-box-date {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  width: 20%;
  line-height: 35px;
}

.bizinfo-content-title-box-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  width: 80%;
  letter-spacing: 0.5em;
  line-height: 35px;
}

.bizinfo-contents-container {
  width: 100%;
}

.bizinfo-contents-container-items,
.bizinfo-contents-container-items2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 90%;
  height: 30px;
  margin: 0 auto 10px auto;
  border-radius: 6px;
}

.bizinfo-contents-container-items {
  background-color: #bfe1ff9e;
  border-left: 4px solid #007bff;
}

.bizinfo-contents-container-items2 {
  background-color: #e2f1ff9e;
  border-left: 4px solid #1285ff8f;
}

.bizinfo-contents-container-items-date {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  width: 15%;
  line-height: 30px;
  text-align: center;
}

.bizinfo-contents-container-items-date-line {
  font-size: 15px;
  font-weight: 500;
  color: #000;
  width: 5%;
  text-align: center;
}

.bizinfo-contents-container-items-title {
  font-size: 15px;
  font-weight: 500;
  color: #000;
  width: 80%;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 10px;
  cursor: pointer;
}

/* 지원사업 모달 스타일 */
.bizinfo-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
}

.bizinfo-modal.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.bizinfo-modal-content {
  background-color: #fff;
  margin: 1% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  height: 90%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.bizinfo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.bizinfo-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.bizinfo-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.bizinfo-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.bizinfo-modal-body {
  padding: 5px;
  max-height: 90%;
  overflow-y: auto;
}

/* 모달 내부의 기존 스타일 조정 */
.bizinfo-modal .bizinfo-container {
  margin: 0;
}

.bizinfo-modal .bizinfo-content-box {
  box-shadow: none;
  border: none;
}


.diary-btn {
  background-color:#10b981;
  color: white;
  border-color: #10b981;
}


/* 로딩 메시지 스타일 */
.loading-message {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* 데이터가 없을 때 메시지 */
.no-data-message {
  text-align: center;
  padding: 20px;
  color: #999;
  font-style: italic;
}

.bizinfo-contents-m {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bizinfo-content-title-box-m {
  display: flex;
  flex-direction: row;
  text-align: center;
  background-color: #75b8ff91;
  width: 98%;
  height: 35px;
  margin: 30px auto 20px auto;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}
.bizinfo-contents-m > .bizinfo-content-1, .bizinfo-contents-m > .bizinfo-content-2 {
  width: 98%;
}
.bizinfo-contents-container-m > .bizinfo-contents-container-items, .bizinfo-contents-container-m > .bizinfo-contents-container-items2 {
  width: 98%;
}


.pay-btn {
  background-color: #373737;
  color: white;
}


@media (max-width: 900px) {
  .header-btn {
    font-size: 8px;
  }

  .text-lg {
    font-size: 0.75rem;
  }

  #notificationBtn {
    height: 30px;
  }

  .notification-badge {
    font-size: 9px;
    width: 15px;
    height: 15px;
    top: -5px;
    right: -5px;
  }

  .header-sub-title {
    display: none;
  }

  .w-10 {
    width: 2rem;
  }

  .h-10 {
    height: 2rem;
  }
}


/* 반응형 디자인 */
@media (max-width: 768px) {
  .bizinfo-contents {
    flex-direction: column;
  }

  .bizinfo-content-1, .bizinfo-content-2 {
    width: 100%;
  }
  .bizinfo-content-title-box, .bizinfo-contents-container-items, .bizinfo-contents-container-items2 {
    width: 98%;
  }

  .bizinfo-modal-content {
    margin: 5% auto;
    width: 95%;
    height: 95%;
  }
  
  .diary-btn-container {
    display: none;
  }

  .notification-panel {
    right: -330%;
  }
}