@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;
}
.view-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.view-btn {
  background: #2b2d31;
  color: #dbdee1;
  border: 1px solid #3f4147;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.95em;
  font-family: 'SeoulNotice', 'gg sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn:hover {
  background: #3f4147;
}
.view-btn.active {
  background: #5865F2;
  color: white;
  border-color: #5865F2;
}
#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.single-column-view {
  max-width: none;
  min-width: 0;
  flex: 3; /* 보관됨 기둥보다 더 넓은 공간을 차지하도록 설정 */
}
.grid-3-threads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}
.grid-3-threads .kanban-thread {
  margin-bottom: 0; /* 그리드 간격을 사용하므로 카드 하단 마진 제거 */
}
@media (max-width: 1200px) {
  .grid-3-threads {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-3-threads {
    grid-template-columns: 1fr;
  }
}
.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;
}
.kanban-thread.urgent {
  outline: 2px solid #ed4245; /* 디스코드 빨간색 */
  animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(237, 66, 69, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(237, 66, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 66, 69, 0); }
}
.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-tags-container {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.thread-tag {
  display: inline-block;
  font-size: 0.75em;
  background: #2b2d31;
  padding: 4px 8px;
  border-radius: 12px;
  color: #b5bac1;
  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: 900px;
  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;
}
.detail-content-layout {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  text-align: left;
  height: 60vh;
}
.detail-left-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.detail-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.meta-info-box {
  background: #1e1f22;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 0.95em;
}
.meta-info-box b {
  color: #f2f3f5;
}
.meta-summary-text {
  white-space: pre-wrap;
  word-break: break-word;
}
.edit-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
  color: #b5bac1;
  margin-left: 6px;
  vertical-align: middle;
  transition: color 0.2s;
  display: inline-block;
}
.edit-icon:hover {
  color: #dbdee1;
}

/* 모달(Modal) 스타일 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}
.custom-modal {
  background: #313338;
  border-radius: 8px;
  padding: 24px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: #dbdee1;
}
.custom-modal h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #f2f3f5;
}
.custom-modal label {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  color: #b5bac1;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.custom-modal-input {
  width: 100%;
  box-sizing: border-box;
  background: #1e1f22;
  border: none;
  border-radius: 4px;
  padding: 10px 12px;
  color: #dbdee1;
  margin-bottom: 16px;
  font-family: 'gg sans', 'Noto Sans KR', sans-serif;
  font-size: 1em;
  outline: none;
  resize: vertical;
  min-height: 44px;
}
.custom-modal-input:focus {
  box-shadow: 0 0 0 2px #5865F2;
}
.custom-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.custom-modal-actions button {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: background-color 0.2s;
}
.btn-cancel {
  background: transparent;
  color: #dbdee1;
}
.btn-cancel:hover {
  text-decoration: underline;
}
.btn-save {
  background: #5865F2;
  color: white;
}
.btn-save:hover {
  background: #4752C4;
}
.assignee-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  margin-right: 6px;
  color: #fff;
}
.assignee-badge.main {
  background-color: #23a559;
}
.assignee-badge.sub {
  background-color: #80848e;
}
.chat-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
#thread-messages {
  flex: 1;
  padding: 16px;
  background: #2b2d31;
  border-radius: 8px;
  border: 1px solid #1e1f22;
  text-align: left;
  overflow-y: auto;
}
.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-content {
  white-space: pre-wrap;
}
.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;
}
.daily-log-section {
  background: #2b2d31;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  border-left: 4px solid #23a559;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.daily-log-section h4 {
  margin: 0 0 12px 0;
  color: #f2f3f5;
  font-size: 1.05em;
}
.daily-log-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.daily-log-item {
  background: #1e1f22;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9em;
  line-height: 1.4;
}
.log-date {
  color: #949ba4;
  font-weight: bold;
  flex-shrink: 0;
}
.log-content {
  flex: 1;
  word-break: break-word;
  color: #dbdee1;
  white-space: pre-wrap;
}
.log-actions {
  display: flex;
  gap: 4px;
}
.log-action-btn {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.log-action-btn:hover {
  opacity: 1;
}
.daily-log-input-group {
  display: flex;
  gap: 8px;
}
#new-daily-log-input {
  flex: 1;
  background: #1e1f22;
  border: 1px solid #3f4147;
  color: #dbdee1;
  padding: 8px 12px;
  border-radius: 4px;
  outline: none;
  font-family: 'gg sans', 'Noto Sans KR', sans-serif;
  resize: none;
  min-height: 40px;
  max-height: 120px;
}
.daily-log-input-group button {
  background: #23a559;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: bold;
}
.daily-log-input-group button:hover {
  background: #1d8749;
}
.no-logs {
  color: #949ba4;
  font-style: italic;
  text-align: center;
  margin-top: 20px;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
#refresh-icon {
  display: inline-block;
}
#refresh-icon.spinning {
  animation: spin 1s linear infinite;
}
.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;
  resize: none;
  min-height: 44px;
  max-height: 120px;
}
.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;
}
