.form {
  background-color: transparent;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.form.disabled {
  filter: grayscale(0.8);
  pointer-events: none;
  opacity: 0.7;
}
.countdown-display {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1rem;
  font-family: var(--font-mono, monospace);
}
.form-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-title {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.form-paragraph {
  font-size: 0.9rem;
  color: #aaa;
  transition: opacity 0.3s ease;
}
.drop-container {
  background: transparent;
  backdrop-filter: blur(6px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  border: 2px dashed var(--border-color);
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  flex-grow: 1;
}
.drop-container:hover,
.drop-container.drag-over {
  background: rgba(39, 43, 49, 0.281);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.drop-title {
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}
#file-input {
  display: none;
}
#file-preview {
  margin-top: 1rem;
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.file-preview-item {
  color: var(--text-color);
  font-size: 0.9rem;
  padding: 1.5rem;
  background-color: #1a1a1a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px solid #333;
  position: relative;
}
.file-preview-item svg {
  color: var(--primary-color);
}
.file-name {
  word-break: break-all;
}

.upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  color: #000;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(0);
}
.upload-btn:not(.hidden) {
  transform: scale(1);
}
.upload-btn:hover {
  box-shadow: 0 0 15px var(--primary-color);
}
.upload-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.remove-file-btn {
  position: absolute;
  top: -10px;
  left: -10px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-file-btn:hover {
  background: var(--error-color, #d16969);
  transform: scale(1.1);
}

.remove-file-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .form-title {
    font-size: 1rem;
  }
  .form-paragraph {
    font-size: 0.8rem;
  }
  .drop-container {
    padding: 0.5rem;
  }
  .drop-title {
    font-size: 0.9rem;
  }
  .countdown-display {
    font-size: 1.5rem;
  }
}
