/* 기본 스타일 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #000000;
  transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: 24px;
}

/* 다크 모드 토글 스위치 */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2196F3;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* 메모장 스타일 */
#memo {
  width: 100%;
  height: 300px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  background-color: inherit;
  color: inherit;
}
#char-count {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}
#warning-message {
  margin-top: 10px;
  padding: 10px;
  background-color: #ffebee;
  color: #c62828;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}
#warning-message.hidden {
  display: none;
}
#warning-message.visible {
  display: block;
}

/* 파일 업로드 영역 */
#drop-zone {
  width: 100%;
  height: 150px;
  border: 2px dashed #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  background-color: #fafafa;
  transition: background-color 0.3s, border-color 0.3s;
}
#drop-zone:hover {
  background-color: #f0f0f0;
}
#drop-zone.highlight {
  border-color: #2196F3;
  background-color: #e0f7ff;
}
/* 다크 모드 적용: 파일 업로드 영역 */
body.dark-mode #drop-zone {
  background-color: #333;
  border-color: #666;
  color: #ddd;
}
body.dark-mode #drop-zone.highlight {
  background-color: #444;
  border-color: #88c;
}

/* 업로드된 파일 리스트 */
#file-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 8px 12px;
  margin-top: 8px;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s;
}
.file-item:hover {
  background-color: #e9e9e9;
}
body.dark-mode .file-item {
  background: #444;
  color: #ddd;
}
body.dark-mode .file-item:hover {
  background: #555;
}
/* 업로드 중인 항목은 회색 처리 및 진행률 표시 */
.file-item.uploading {
  background: #ddd;
  font-style: italic;
}
.file-item span {
  flex: 1;
  cursor: pointer;
}
.file-item button {
  background: transparent;
  border: none;
  color: #d00;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
}
.file-item button:hover {
  color: #a00;
}

/* 다크 모드 업로드 중 항목 */
body.dark-mode .file-item.uploading {
  background: #555;
  opacity: 0.7;
  font-style: normal;
}
