@font-face {
    font-family: 'SeoulNotice';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'SeoulNotice';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'SeoulNotice';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'SeoulNotice';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-Heavy.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

body {
  font-family: 'SeoulNotice', 'gg sans', 'Noto Sans KR', 'Segoe UI', Arial, sans-serif;
  background: #313338;
  color: #dbdee1;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
h1 {
  text-align: center;
  color: #ffffff;
  font-size: 2.5em;
  font-weight: 900;
  margin: 32px 0 0 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  letter-spacing: -1px;
}
#kanban-board {
  display: flex;
  gap: 24px;
  padding: 32px;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-x: auto;
}
.kanban-column {
  background: #2b2d31;
  border-radius: 8px;
  min-width: 260px;
  max-width: 320px;
  padding: 16px;
  flex: 1 1 0;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.kanban-column.drag-over {
  background-color: #383a40;
  box-shadow: inset 0 0 0 2px #5865F2; /* 블러플 색상 테두리 강조 */
}
.kanban-column h2.column-title {
  font-family: 'SeoulNotice', 'gg sans', sans-serif;
  font-weight: 800;
  font-size: 1.25em;
  margin: 0 0 16px 0;
  padding: 12px;
  background: rgba(88, 101, 242, 0.15); /* 블러플 색상 배경 */
  border-radius: 6px;
  border-bottom: 2px solid #5865F2;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.kanban-thread {
  background: #1e1f22;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
  font-weight: 500;
  color: #dbdee1;
}
.kanban-thread:hover,
.kanban-thread:focus-visible {
  background: #3f4147;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.kanban-thread.dragging {
  opacity: 0.5;
  transform: scale(0.95);
  cursor: grabbing;
}
.thread-title {
  font-family: 'SeoulNotice', 'gg sans', sans-serif;
  font-weight: 700;
  font-size: 1.05em;
  margin-bottom: 6px;
  word-break: break-word;
  line-height: 1.3;
  color: #ffffff;
}
.thread-tag {
  display: inline-block;
  font-size: 0.75em;
  background: #2b2d31;
  padding: 4px 8px;
  border-radius: 12px;
  color: #b5bac1;
  margin-bottom: 8px;
  border: 1px solid #3f4147;
}
.thread-date {
  font-size: 0.8em;
  color: #949ba4;
  font-weight: 400;
}
.thread-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.thread-messages-count {
  font-size: 0.8em;
  color: #949ba4;
}
#thread-detail {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #313338;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 32px;
  width: 440px;
  max-width: 90vw;
  z-index: 100;
  text-align: center;
  color: #dbdee1;
}
#thread-detail h3.detail-title {
  font-family: 'SeoulNotice', 'gg sans', sans-serif;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
#thread-detail .close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.2em;
  cursor: pointer;
  color: #b5bac1;
  transition: color 0.2s;
}
#thread-detail .close-btn:hover,
#thread-detail .close-btn:focus-visible {
  color: #dbdee1;
}
#thread-detail p {
  margin: 6px 0;
  color: #949ba4;
  font-size: 0.95em;
}
#thread-messages {
  margin-top: 20px;
  padding: 16px;
  background: #2b2d31;
  border-radius: 8px;
  border: 1px solid #1e1f22;
  text-align: left;
  overflow-y: auto;
  max-height: 50vh;
}
.message-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
  font-size: 0.95em;
  word-break: break-word;
}
.message-item:last-child {
  margin-bottom: 0;
}
.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #1e1f22;
}
.message-content-wrapper {
  flex: 1;
  min-width: 0;
}
.message-author {
  font-weight: 600;
  color: #f2f3f5;
  margin-bottom: 2px;
}
.message-attachment {
  margin-top: 8px;
}
.message-attachment img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  object-fit: contain;
}
.message-attachment a {
  display: inline-block;
  color: #00a8fc;
  text-decoration: none;
  font-size: 0.9em;
  background: #1e1f22;
  padding: 6px 12px;
  border-radius: 4px;
}
.message-attachment a:hover {
  text-decoration: underline;
}
.refresh-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background-color: #5865F2;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background-color 0.2s;
  z-index: 50;
}
.refresh-btn:hover {
  background-color: #4752C4;
}
.tag-emoji {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  display: inline-block;
  margin-top: -3px;
}
.message-input-container {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid #1e1f22;
  padding-top: 16px;
}
.message-input {
  flex: 1;
  background: #1e1f22;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  color: #dbdee1;
  font-family: 'gg sans', 'Noto Sans KR', sans-serif;
  font-size: 0.95em;
  outline: none;
}
.message-input:focus {
  box-shadow: 0 0 0 2px #5865F2; /* 블러플 색상 포커스 링 */
}
.message-send-btn {
  background-color: #5865F2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.message-send-btn:hover:not(:disabled) {
  background-color: #4752C4;
}
.message-send-btn:disabled {
  background-color: #4f545c;
  cursor: not-allowed;
}
