*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #2b2b2b;
  color: #e0e0e0;
  font-family: Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar {
  position: fixed;
  top: 0;
  right: 0;
  padding: 1rem 1.5rem;
  z-index: 100;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

* {
  scrollbar-width: none; /* Firefox */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.nav-link {
  font-size: 14px;
  color: #888;
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  transition: color 0.15s;
}

.nav-link:hover {
  color: #e0e0e0;
}

.upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  padding: 1rem;
}

.label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

h1 {
  font-size: 22px;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}

.drop-zone {
  width: 100%;
  border: 1.5px dashed #555;
  border-radius: 12px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  background-color: #333;
}

.drop-zone:hover {
  background-color: #3a3a3a;
  border-color: #777;
}

.drop-zone.dragover {
  background-color: #3a3a3a;
  border-color: #aaa;
}

.icon {
  font-size: 36px;
  color: #888;
  line-height: 1;
}

.primary-text {
  font-size: 15px;
  font-weight: 500;
  color: #ddd;
}

.secondary-text {
  font-size: 13px;
  color: #888;
}

.hint {
  font-size: 12px;
  color: #555;
  margin-top: 0.25rem;
}

.file-info {
  display: none;
  width: 100%;
  align-items: center;
  gap: 12px;
  background-color: #333;
  border: 0.5px solid #444;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.file-info.visible {
  display: flex;
}

.file-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-details #file-name {
  font-size: 14px;
  font-weight: 500;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-details #file-size {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.clear-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.clear-btn:hover {
  color: #bbb;
}

.error-msg {
  font-size: 13px;
  color: #e07070;
  min-height: 1rem;
}

.upload-btn {
  padding: 0.65rem 2rem;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 0.5px solid #555;
  background-color: #333;
  color: #e0e0e0;
  cursor: not-allowed;
  opacity: 0.4;
  transition: opacity 0.15s, background-color 0.15s;
}

.upload-btn:enabled {
  cursor: pointer;
  opacity: 1;
}

.upload-btn:enabled:hover {
  background-color: #3a3a3a;
  border-color: #888;
}