:root {
  --bg-color: #0a0a0a;
  --text-color: #00ff00;
  --accent-color: #00ff00;
  --error-color: #ff3333;
  --border-color: #333;
  --hover-bg: rgba(0, 255, 0, 0.1);

  /* Additional variables from refactoring */
  --text-muted: #888;
  --bg-darker: #000;
  --border-dark: #222;
  --warning-color: #ffaa00;
  --info-color: #00ccff;

  /* Alpha/shadow variables */
  --primary-shadow-light: rgba(0, 255, 0, 0.2);
  --primary-shadow-heavy: rgba(0, 255, 0, 0.4);
  --info-shadow: rgba(0, 204, 255, 0.4);
  --error-bg-light: rgba(255, 51, 51, 0.1);
  --error-shadow-light: rgba(255, 51, 51, 0.4);
  --error-shadow-heavy: rgba(255, 51, 51, 0.6);
  --modal-overlay-bg: rgba(0, 0, 0, 0.8);

  --font-family: "JetBrains Mono", monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.container {
  width: 100%;
  max-width: 800px;
}

header {
  margin-bottom: 3rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 1rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.prompt {
  color: var(--text-muted);
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.tip-box {
  border: 1px solid var(--accent-color);
  padding: 1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  background-color: var(--hover-bg);
}

.drop-zone {
  border: 2px dashed var(--border-color);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 2rem;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-color);
  background-color: var(--hover-bg);
  transform: scale(1.02);
  box-shadow: 0 0 15px var(--primary-shadow-light);
}

.drop-zone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

#drop-label {
  font-size: 1.2rem;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.preview-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.list-box {
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.file-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 1rem;
  background-color: var(--bg-darker);
  border: 1px solid var(--border-dark);
  padding: 1rem;
}

.file-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 1rem;
}

.file-status {
  color: var(--text-muted);
  white-space: nowrap;
}

.file-status.ok {
  color: var(--accent-color);
}

.file-status.remove-btn {
  color: var(--warning-color);
  cursor: pointer;
  transition: font-weight 0.1s ease;
}

.file-status.remove-btn:hover {
  font-weight: 700;
  text-shadow: 0 0 6px var(--warning-color);
}

.stats {
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.reduction {
  color: var(--info-color);
}

.actions {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.btn {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 1rem 2rem;
  font-family: var(--font-family);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--primary-shadow-heavy);
}

.btn.success {
  color: var(--info-color);
  border-color: var(--info-color);
}

.btn.success:hover {
  background: var(--info-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px var(--info-shadow);
}

.btn.danger {
  color: var(--error-color);
  border-color: var(--error-color);
  margin-left: 1rem;
}

.btn.danger:hover {
  background: var(--error-color);
  color: #ffffff;
  box-shadow: 0 0 15px var(--error-shadow-heavy);
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--bg-color);
  border: 2px solid var(--error-color);
  box-shadow: 0 0 20px var(--error-shadow-light);
  min-width: 400px;
  max-width: 90%;
}

.modal-header {
  background-color: var(--error-bg-light);
  padding: 1rem;
  border-bottom: 1px solid var(--error-color);
  color: var(--error-color);
  font-weight: bold;
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

.modal-actions {
  padding: 1rem;
  display: flex;
  justify-content: center;
  border-top: 1px dashed var(--border-color);
}

.error-text {
  color: var(--error-color);
  font-size: 1.1rem;
}
