/* ==========================================================================
   Group Board Tab Styles
   ========================================================================== */
.dm-tabs {
  width: 100%;
}

.dm-tab-list {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.dm-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.dm-tab:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

.dm-tab.active {
  color: var(--dm-primary);
  font-weight: 600;
  border-bottom-color: var(--dm-primary);
}

.dm-tab-panels {
  padding-top: 1rem;
}

.dm-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.dm-tab-panel.active {
  display: block;
}

/* ==========================================================================
   Group Board Notice & Post Styles
   ========================================================================== */
.board-notice-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.board-notice-item {
  background: var(--color-amber-bg);
  border: 1px solid var(--color-amber-border);
  border-left-width: 4px;
  border-left-color: var(--color-amber-accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

.board-notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.board-notice-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-amber-accent);
}

.board-notice-main-content {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.board-notice-title {
  font-weight: 600;
  color: var(--color-amber-text);
}

.board-notice-meta {
  font-size: 0.8rem;
  color: var(--color-amber-accent);
  margin-top: 0.25rem;
}

.board-post {
  border: 1px solid var(--dm-border, #ddd);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.board-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-post-title {
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}
.board-post-title:hover {
  color: var(--dm-primary);
}

.board-post-meta {
  color: var(--dm-text-secondary, #666);
  font-size: 12px;
  margin-top: 4px;
}

.board-post-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--dm-border, #eee);
}

/* ==========================================================================
   Group Board Comment Styles
   ========================================================================== */

/* 댓글 섹션 컨테이너 */
.board-comment-area {
  margin-top: 1.25rem;
  padding: 1rem 1rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--dm-surface-muted, #fafafa);
}

.board-comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dm-text-primary);
  margin-bottom: 0.75rem;
}

.board-comment-header .count {
  font-weight: 500;
  color: var(--dm-text-secondary);
  font-size: 0.9rem;
}

.board-comments {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.comment-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.board-comments .comment-item {
  flex-direction: column;
  align-items: stretch;
}
.comment-item:last-child {
  border-bottom: none;
}

/* 대댓글 UI */
.comment-item.is-reply {
  padding-left: 2.5rem;
  position: relative;
}

.comment-item.is-reply::before {
  content: 'ㄴ';
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  color: var(--gray-400);
  font-weight: bold;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gray-200);
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}
.comment-meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comment-meta-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.comment-meta strong {
  font-weight: 600;
  color: var(--dm-text-primary);
}
.comment-meta span {
  color: var(--dm-text-secondary);
  font-size: 0.8rem;
}

.comment-content {
  color: var(--dm-text-primary);
  line-height: 1.6;
  white-space: pre-wrap; /* Preserve line breaks */
  margin-top: 4px;
}

.comment-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

.comment-actions .btn-link {
  font-size: 0.8rem;
  color: var(--dm-text-secondary);
  padding: 0;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.comment-actions .btn-link:hover {
  text-decoration: underline;
  color: var(--dm-text-primary);
}
.comment-actions .btn-link.btn-danger:hover {
  color: var(--dm-error);
}

.comment-menu-btn {
  padding: 0 6px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: var(--dm-text-secondary);
  text-decoration: none;
}

.comment-menu-panel {
  position: absolute;
  right: 0;
  margin-top: 6px;
  padding: 5px 8px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
  min-width: 84px;
  align-items: center;
}

.comment-menu-panel .comment-menu-item {
  padding: 5px 8px;
  border: none;
  background: transparent;
  text-align: center;
  cursor: pointer;
  color: var(--dm-text-primary);
  text-decoration: none !important;
  width: 100%;
}
.comment-menu-panel .comment-menu-item:hover,
.comment-menu-panel .comment-menu-item:focus {
  background: var(--gray-100);
  text-decoration: none !important;
}

.comment-edit-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-edit-input {
  width: 100%;
  min-height: 80px;
  padding: 0.6rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  resize: vertical;
}

.comment-edit-actions {
  display: flex;
  gap: 8px;
}

/* 댓글 입력창 */
.board-comment-input {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.board-comment-input textarea {
  width: 100%;
  flex: 1;
  resize: vertical;
  min-height: 90px;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
}
.board-comment-input textarea:focus {
  outline: none;
  border-color: var(--dm-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.board-comment-input button {
  align-self: flex-start;
  min-width: 72px;
}

/* Quill Editor Customization */
#board-editor-inline {
  height: 400px;
  background: white;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.ql-toolbar {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: #f8f9fa;
}

.ql-container {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-family: 'Nanum Gothic', 'Pretendard', sans-serif; /* Default font */
  font-size: 15px; /* Default size */
}

/* Quill Font Sizes */
.ql-size-small {
  font-size: 0.75em;
}
.ql-size-large {
  font-size: 1.5em;
}
.ql-size-huge {
  font-size: 2.5em;
}

/* Font Families */
.ql-font-nanum-gothic {
  font-family: 'Nanum Gothic', sans-serif;
}
.ql-font-noto-sans-kr {
  font-family: 'Noto Sans KR', sans-serif;
}
.ql-font-nanum-myeongjo {
  font-family: 'Nanum Myeongjo', serif;
}
.ql-font-batang {
  font-family: 'Batang', serif;
}

/* Add these fonts to the font picker dropdown */
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="nanum-gothic"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="nanum-gothic"]::before {
  content: '나눔고딕';
  font-family: 'Nanum Gothic', sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="noto-sans-kr"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="noto-sans-kr"]::before {
  content: 'Noto Sans';
  font-family: 'Noto Sans KR', sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="nanum-myeongjo"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="nanum-myeongjo"]::before {
  content: '나눔명조';
  font-family: 'Nanum Myeongjo', serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="batang"]::before {
  content: '바탕';
  font-family: 'Batang', serif;
}

/* Image Responsive Styles */
.board-post-content img,
.ql-editor img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below image */
  margin: 10px 0; /* Add some spacing */
}

/* ==========================================================================
   Dark Mode Support (Enhanced Specificity)
   ========================================================================== */
html[data-theme="dark"] body .board-post {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Skeleton Loader */
html[data-theme="dark"] body .skeleton-line {
    background: #334155 !important;
}

.skeleton-line {
    background: #eee;
    border-radius: 4px;
}

.skeleton-line.full { height: 20px; width: 70%; margin-bottom: 8px; }
.skeleton-line.shorter { height: 14px; width: 40%; margin-bottom: 12px; }
.skeleton-line.long { height: 14px; width: 90%; }
.skeleton-line.medium { height: 14px; width: 80%; margin-top: 6px; }

/* Board Post Title */
html[data-theme="dark"] body .board-post-title {
  color: #f3f4f6 !important;
}

html[data-theme="dark"] body .board-post-title:hover {
  color: #818cf8 !important;
}

html[data-theme="dark"] body .board-post-meta,
html[data-theme="dark"] body .board-notice-meta {
  color: #9ca3af !important;
}

html[data-theme="dark"] body .board-post-detail {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body .board-comment-area {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body .board-comment-header {
  color: #f3f4f6 !important;
}

html[data-theme="dark"] body .board-comment-header .count {
  color: #9ca3af !important;
}

html[data-theme="dark"] body .board-comments {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body .comment-item {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body .comment-meta strong {
  color: #f3f4f6 !important;
}

html[data-theme="dark"] body .comment-content {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] body .comment-actions .btn-link {
  color: #9ca3af !important;
}

html[data-theme="dark"] body .comment-actions .btn-link:hover {
  color: #f3f4f6 !important;
}

html[data-theme="dark"] body .comment-menu-btn {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #9ca3af !important;
}

html[data-theme="dark"] body .comment-menu-panel {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body .comment-menu-panel .comment-menu-item {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] body .comment-menu-panel .comment-menu-item:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body .board-comment-input textarea {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f3f4f6 !important;
}

html[data-theme="dark"] body .board-comment-input textarea:focus {
  border-color: #6366f1 !important;
}

html[data-theme="dark"] body .comment-edit-input {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f3f4f6 !important;
}

/* Quill Editor Dark Mode */
html[data-theme="dark"] body .ql-toolbar {
  background: #334155 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body #board-editor-inline {
  background: #1e293b !important;
  color: #f3f4f6 !important;
}

html[data-theme="dark"] body .ql-container {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body .ql-stroke {
  stroke: #e2e8f0 !important;
}

html[data-theme="dark"] body .ql-fill {
  fill: #e2e8f0 !important;
}

html[data-theme="dark"] body .ql-picker {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] body .ql-picker-options {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body .ql-picker-item:hover {
  color: #818cf8 !important;
}

html[data-theme="dark"] body .ql-active .ql-stroke {
  stroke: #818cf8 !important;
}

html[data-theme="dark"] body .ql-active .ql-fill {
  fill: #818cf8 !important;
}

/* ==========================================================================
   게시판 버튼 다크 모드 지원
   ========================================================================== */

/* 게시판 버튼 기본 다크 모드 */
html[data-theme="dark"] body .board-header .btn,
html[data-theme="dark"] body .board-post-actions .btn,
html[data-theme="dark"] body .board-notice-header .btn {
  background: #334155 !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] body .board-header .btn:hover,
html[data-theme="dark"] body .board-post-actions .btn:hover,
html[data-theme="dark"] body .board-notice-header .btn:hover {
  background: #475569 !important;
}

/* Primary 버튼 (새 글쓰기, 등록) */
html[data-theme="dark"] body .board-header .btn-primary,
html[data-theme="dark"] body #board-new-post-btn,
html[data-theme="dark"] body .board-comment-input .btn-primary {
  background: #3b82f6 !important;
  color: white !important;
  border: none !important;
}

html[data-theme="dark"] body .board-header .btn-primary:hover,
html[data-theme="dark"] body #board-new-post-btn:hover,
html[data-theme="dark"] body .board-comment-input .btn-primary:hover {
  background: #60a5fa !important;
}

/* 게시판 입력 폼 다크 모드 */
html[data-theme="dark"] body #board-compose-view .form-control,
html[data-theme="dark"] body #board-title-inline,
html[data-theme="dark"] body #board-compose-view label {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f3f4f6 !important;
}

html[data-theme="dark"] body #board-compose-view label {
  background: transparent !important;
}

/* 게시글 본문 내용 다크 모드 */
html[data-theme="dark"] body .board-post-content {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] body .board-post-content img {
  border-radius: 8px;
}

/* ==========================================================================
   시스템 다크 모드 지원 (prefers-color-scheme)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body .board-header .btn,
  html:not([data-theme="light"]) body .board-post-actions .btn,
  html:not([data-theme="light"]) body .board-notice-header .btn {
    background: #334155 !important;
    color: #f3f4f6 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  html:not([data-theme="light"]) body .board-header .btn:hover,
  html:not([data-theme="light"]) body .board-post-actions .btn:hover,
  html:not([data-theme="light"]) body .board-notice-header .btn:hover {
    background: #475569 !important;
  }

  html:not([data-theme="light"]) body .board-header .btn-primary,
  html:not([data-theme="light"]) body #board-new-post-btn,
  html:not([data-theme="light"]) body .board-comment-input .btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
  }

  html:not([data-theme="light"]) body .board-header .btn-primary:hover,
  html:not([data-theme="light"]) body #board-new-post-btn:hover,
  html:not([data-theme="light"]) body .board-comment-input .btn-primary:hover {
    background: #60a5fa !important;
  }

  html:not([data-theme="light"]) body #board-compose-view .form-control,
  html:not([data-theme="light"]) body #board-title-inline {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f3f4f6 !important;
  }

  html:not([data-theme="light"]) body .board-post-content {
    color: #e2e8f0 !important;
  }
}

/* ==========================================================================
   그룹 상세 뷰 헤더 및 뒤로가기 버튼 다크 모드
   ========================================================================== */

/* 뒤로가기 버튼 */
html[data-theme="dark"] body #back-to-groups-list,
html[data-theme="dark"] body .view-header .btn-secondary {
  background: #334155 !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] body #back-to-groups-list:hover,
html[data-theme="dark"] body .view-header .btn-secondary:hover {
  background: #475569 !important;
}

/* 댓글 영역 추가 강화 */
html[data-theme="dark"] body .board-comment-area,
html[data-theme="dark"] body .board-comment-area * {
  background-color: #1e293b !important;
}

html[data-theme="dark"] body .board-comment-area .board-comment-input {
  background-color: transparent !important;
}

html[data-theme="dark"] body .board-comment-area textarea,
html[data-theme="dark"] body .board-comment-area textarea::placeholder {
  background-color: #111827 !important;
  color: #9ca3af !important;
}

html[data-theme="dark"] body .board-comment-area textarea {
  color: #f3f4f6 !important;
}

/* 댓글 헤더 및 카운트 */
html[data-theme="dark"] body .board-comment-header,
html[data-theme="dark"] body .board-comment-header span,
html[data-theme="dark"] body .board-comment-header .count {
  color: #f3f4f6 !important;
  background-color: transparent !important;
}

/* 댓글 아이템 */
html[data-theme="dark"] body .board-comments .comment-item,
html[data-theme="dark"] body .board-comments .comment-item * {
  background-color: transparent !important;
}

html[data-theme="dark"] body .board-comments .comment-meta span,
html[data-theme="dark"] body .comment-meta .comment-meta-left span {
  color: #9ca3af !important;
}

/* 시스템 다크 모드 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body #back-to-groups-list,
  html:not([data-theme="light"]) body .view-header .btn-secondary {
    background: #334155 !important;
    color: #f3f4f6 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  html:not([data-theme="light"]) body #back-to-groups-list:hover,
  html:not([data-theme="light"]) body .view-header .btn-secondary:hover {
    background: #475569 !important;
  }

  html:not([data-theme="light"]) body .board-comment-area,
  html:not([data-theme="light"]) body .board-comment-area * {
    background-color: #1e293b !important;
  }

  html:not([data-theme="light"]) body .board-comment-area .board-comment-input {
    background-color: transparent !important;
  }

  html:not([data-theme="light"]) body .board-comment-area textarea {
    background-color: #111827 !important;
    color: #f3f4f6 !important;
  }

  html:not([data-theme="light"]) body .board-comment-header,
  html:not([data-theme="light"]) body .board-comment-header span,
  html:not([data-theme="light"]) body .board-comment-header .count {
    color: #f3f4f6 !important;
    background-color: transparent !important;
  }

  html:not([data-theme="light"]) body .board-comments .comment-item,
  html:not([data-theme="light"]) body .board-comments .comment-item * {
    background-color: transparent !important;
  }
}

/* ==========================================================================
   댓글 수정 버튼 다크 모드
   ========================================================================== */

/* 댓글 수정 영역 */
html[data-theme="dark"] body .comment-edit-area,
html[data-theme="dark"] body .comment-edit-input {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f3f4f6 !important;
}

/* 저장 버튼 */
html[data-theme="dark"] body .comment-edit-actions .btn:first-child,
html[data-theme="dark"] body [data-action="save-comment-edit"] {
  background: #3b82f6 !important;
  color: white !important;
  border: none !important;
}

html[data-theme="dark"] body .comment-edit-actions .btn:first-child:hover,
html[data-theme="dark"] body [data-action="save-comment-edit"]:hover {
  background: #60a5fa !important;
}

/* 취소 버튼 */
html[data-theme="dark"] body .comment-edit-actions .btn-secondary,
html[data-theme="dark"] body [data-action="cancel-comment-edit"] {
  background: #334155 !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] body .comment-edit-actions .btn-secondary:hover,
html[data-theme="dark"] body [data-action="cancel-comment-edit"]:hover {
  background: #475569 !important;
}

/* 시스템 다크 모드 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body .comment-edit-area,
  html:not([data-theme="light"]) body .comment-edit-input {
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f3f4f6 !important;
  }

  html:not([data-theme="light"]) body .comment-edit-actions .btn:first-child,
  html:not([data-theme="light"]) body [data-action="save-comment-edit"] {
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
  }

  html:not([data-theme="light"]) body .comment-edit-actions .btn-secondary,
  html:not([data-theme="light"]) body [data-action="cancel-comment-edit"] {
    background: #334155 !important;
    color: #f3f4f6 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}

/* ==========================================================================
   공지사항 다크 모드 (노란 배경 제거)
   ========================================================================== */

/* 공지사항 다크 모드 - 배경 투명, 테두리만 유지 */
html[data-theme="dark"] body .board-notice-item {
  background: transparent !important;
  border: 1px solid #f59e0b !important;
  border-left-width: 4px !important;
  border-left-color: #f59e0b !important;
}

html[data-theme="dark"] body .board-notice-item:hover {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: #fbbf24 !important;
}

html[data-theme="dark"] body .board-notice-title {
  color: #fbbf24 !important;
}

html[data-theme="dark"] body .board-notice-meta {
  color: #9ca3af !important;
}

/* 공지 내부 상세 내용도 다크 모드 적용 */
html[data-theme="dark"] body .board-notice-item .board-post-detail {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body .board-notice-item .board-post-content {
  color: #e2e8f0 !important;
}

/* 시스템 다크 모드 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body .board-notice-item {
    background: transparent !important;
    border: 1px solid #f59e0b !important;
    border-left-width: 4px !important;
    border-left-color: #f59e0b !important;
  }

  html:not([data-theme="light"]) body .board-notice-item:hover {
    background: rgba(245, 158, 11, 0.1) !important;
  }

  html:not([data-theme="light"]) body .board-notice-title {
    color: #fbbf24 !important;
  }

  html:not([data-theme="light"]) body .board-notice-meta {
    color: #9ca3af !important;
  }

  html:not([data-theme="light"]) body .board-notice-item .board-post-content {
    color: #e2e8f0 !important;
  }
}

/* ==========================================================================
   게시글 수정 폼 다크 모드
   ========================================================================== */

/* Quill 에디터 배경 강화 */
html[data-theme="dark"] body #board-compose-view .ql-container,
html[data-theme="dark"] body #board-compose-view .ql-editor,
html[data-theme="dark"] body .ql-editor {
  background-color: #1e293b !important;
  color: #f3f4f6 !important;
}

html[data-theme="dark"] body #board-compose-view .ql-toolbar {
  background-color: #334155 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 수정 완료 버튼 */
html[data-theme="dark"] body #board-save-post-btn-inline {
  background: #3b82f6 !important;
  color: white !important;
  border: none !important;
}

html[data-theme="dark"] body #board-save-post-btn-inline:hover {
  background: #60a5fa !important;
}

/* 취소 버튼 */
html[data-theme="dark"] body #board-cancel-btn-inline {
  background: #334155 !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] body #board-cancel-btn-inline:hover {
  background: #475569 !important;
}

/* 시스템 다크 모드 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body #board-compose-view .ql-container,
  html:not([data-theme="light"]) body #board-compose-view .ql-editor,
  html:not([data-theme="light"]) body .ql-editor {
    background-color: #1e293b !important;
    color: #f3f4f6 !important;
  }

  html:not([data-theme="light"]) body #board-compose-view .ql-toolbar {
    background-color: #334155 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  html:not([data-theme="light"]) body #board-save-post-btn-inline {
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
  }

  html:not([data-theme="light"]) body #board-cancel-btn-inline {
    background: #334155 !important;
    color: #f3f4f6 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}

/* ==========================================================================
   Quill 툴바 아이콘 다크 모드 가시성
   ========================================================================== */

/* 툴바 아이콘 SVG - 밝은 색상으로 */
html[data-theme="dark"] body .ql-toolbar .ql-stroke {
  stroke: #e2e8f0 !important;
}

html[data-theme="dark"] body .ql-toolbar .ql-fill {
  fill: #e2e8f0 !important;
}

html[data-theme="dark"] body .ql-toolbar .ql-picker-label {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] body .ql-toolbar .ql-picker-label .ql-stroke {
  stroke: #e2e8f0 !important;
}

html[data-theme="dark"] body .ql-toolbar button:hover .ql-stroke,
html[data-theme="dark"] body .ql-toolbar .ql-picker-label:hover .ql-stroke {
  stroke: #60a5fa !important;
}

html[data-theme="dark"] body .ql-toolbar button:hover .ql-fill,
html[data-theme="dark"] body .ql-toolbar .ql-picker-label:hover .ql-fill {
  fill: #60a5fa !important;
}

html[data-theme="dark"] body .ql-toolbar button:hover,
html[data-theme="dark"] body .ql-toolbar .ql-picker-label:hover {
  color: #60a5fa !important;
}

/* 시스템 다크 모드 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body .ql-toolbar .ql-stroke {
    stroke: #e2e8f0 !important;
  }

  html:not([data-theme="light"]) body .ql-toolbar .ql-fill {
    fill: #e2e8f0 !important;
  }

  html:not([data-theme="light"]) body .ql-toolbar .ql-picker-label {
    color: #e2e8f0 !important;
  }

  html:not([data-theme="light"]) body .ql-toolbar .ql-picker-label .ql-stroke {
    stroke: #e2e8f0 !important;
  }
}

/* ==========================================================================
   Quill 에디터 Placeholder 및 드롭다운 다크 모드
   ========================================================================== */

/* Placeholder 텍스트 */
html[data-theme="dark"] body .ql-editor.ql-blank::before {
  color: #9ca3af !important;
}

/* 드롭다운 메뉴 배경 */
html[data-theme="dark"] body .ql-picker-options {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] body .ql-picker-item {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] body .ql-picker-item:hover {
  background-color: #334155 !important;
  color: #60a5fa !important;
}

html[data-theme="dark"] body .ql-picker-item.ql-selected {
  color: #60a5fa !important;
}

/* 시스템 다크 모드 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body .ql-editor.ql-blank::before {
    color: #9ca3af !important;
  }

  html:not([data-theme="light"]) body .ql-picker-options {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  html:not([data-theme="light"]) body .ql-picker-item {
    color: #e2e8f0 !important;
  }

  html:not([data-theme="light"]) body .ql-picker-item:hover {
    background-color: #334155 !important;
    color: #60a5fa !important;
  }
}
