.controls {
  margin: 10px 20px;
  text-align: center;
}

.controls label {
  margin-right: 8px;
  font-family: monospace;
}

.controls select {
  padding: 4px 8px;
  font-family: monospace;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

#drop_zone {
  padding: 35px;
  margin: 20px;
  text-align: center;
}

#drop_zone p {
  margin: 15px;
  padding: 5px;
}

.dropzone {
  background-color: #faebd7;
  border: 2px solid #ccc;
}

.dropzone.dragover {
  background-color: #eee;
  border-style: dashed;
}

#display_area {
  margin-top: 20px;
}

#files_table {
  width: 100%;
  text-align: left;
  font-family: monospace;
  font-size: medium;
  table-layout: fixed;
  border-spacing: 0;
  /* background-color: #f2f2f2; */
  /* padding: 10px; */
  /* margin: 10px; */
}

#files_table th,
#files_table td {
  word-break: break-all;
  vertical-align: top;
}

#files_table th {
  padding: 6px;
  font-size: larger;
}

#files_table th, td {
  padding: 4px;
}

#files_table tbody{
  border: 1px solid;
  margin: 10px;
}

#files_table tbody tr:nth-child(even) {
  background-color: #f2efe9;
}

#files_table tbody tr td:nth-child(1):empty::before {
  content: '-';
}

#files_table tbody tr td:nth-child(2) {
  text-align: right;
}

#files_table tbody tr td:nth-child(3) {
  text-align: center;
}

#files_table tbody tr:nth-child(odd) {
  background-color: #e5e0db;
}

.noneDisplay {
  display: none;
}
.hashThWidth {
  width: 55%;
}
.sizeThWidth {
  width: 10%;
  text-align: right;
}
.nameThWidth {
  width: 35%;
  text-align: center;
}
.trGreen{
  color: forestgreen;
}
.trRed{
  color: orangered;
}

.loader {
  display: none;
  align-items: center;
  justify-content: center;
  height: 10px;
  margin-top: 10px;
  gap: 4px;
}

.dot {
  width: 5px;
  height: 5px;
  background-color: #ff943c;
  animation: dot-pulse 1s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(2);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.footer {
  text-align: center;
  margin-top: 20px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: monospace;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.github-link:hover {
  background-color: #e8e8e8;
  border-color: #ccc;
}

.github-link svg {
  flex-shrink: 0;
}

/* 哈希值单元格样式 */
.hash-cell {
  cursor: pointer;
  position: relative;
}

.hash-cell::after {
  content: ' ⇄';
  font-size: 12px;
  color: #999;
  opacity: 0;
  transition: opacity 0.2s;
}

.hash-cell:hover::after {
  opacity: 1;
}

/* size 单元格样式 */
.size-cell {
  cursor: pointer;
  position: relative;
}

.size-cell::before {
  content: '⇄ ';
  font-size: 12px;
  color: #999;
  opacity: 0;
  transition: opacity 0.2s;
}

.size-cell:hover::before {
  opacity: 1;
}

/* 显示模式提示 */
.display-mode-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}

/* Toast 提示 */
#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

#toast.show {
  opacity: 1;
}