#tool-container {
  background: var(--card);
  padding: 2rem;
  border-radius: 10px;
}

.tool-section {
  margin-bottom: 1.5rem;
}

.suite-wrapper {
  text-align: center;
}

.suite-title {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.suite-card {
  display: block;
  padding: 20px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s ease;
}

.suite-card:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ===== Global Spinner ===== */

.spinner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  width: 100%;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Dark mode border fix */
@media (prefers-color-scheme: dark) {
  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================= */
/* PRO Upload Dropzone */
/* ============================= */

.upload-box {
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
  background: var(--bg);
  margin-bottom: 1rem;
}

.upload-box:hover {
  background: rgba(11,108,255,0.05);
  transform: translateY(-2px);
}

.upload-box.dragover {
  background: rgba(11,108,255,0.1);
  border-color: var(--primary);
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.upload-text {
  font-weight: 600;
  margin-bottom: 6px;
}

.upload-subtext {
  font-size: 0.9rem;
  opacity: 0.7;
}

.file-list {
  margin-top: 10px;
  text-align: left;
  font-size: 0.9rem;
}

.file-item {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
  .file-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* ============================= */
/* Action Button Styling */
/* ============================= */

.action-wrapper {
  text-align: center;
  margin-top: 20px;
}

.action-btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  min-width: 180px;
  transition: 0.25s ease;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* File List Enhanced */

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  background: rgba(0,0,0,0.03);
}

.file-remove {
  cursor: pointer;
  font-weight: bold;
  color: red;
  margin-left: 10px;
}

.file-remove:hover {
  opacity: 0.7;
}

.add-more {
  margin-top: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* Drag Reorder Styling */

.file-item {
  cursor: grab;
  user-select: none;
}

.file-item.dragging {
  opacity: 0.5;
}

.file-item.drag-over {
  border: 2px dashed var(--primary);
}

/* ============================= */
/* AUDIO ADVANCED UI */
/* ============================= */

select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  margin-bottom: 1rem;
}

input[type="range"] {
  width: 100%;
  margin: 10px 0;
}

canvas {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #000;
  margin-top: 15px;
}

#sliders input[type="range"] {
  margin-bottom: 8px;
}