:root {
  --primary: #4caf50;
  --bg: #1e1e1e;
  --text: #ffffff;
  --panel: #2d2d2d;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 40px;
  display: flex;
  justify-content: center;
}
.container {
  background-color: var(--panel);
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
h2 {
  text-align: center;
  margin-top: 0;
}
.upload-area {
  border: 2px dashed #666;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
}
.upload-area:hover {
  border-color: var(--primary);
}
.file-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}
.file-item {
  display: flex;
  justify-content: space-between;
  background: #3d3d3d;
  padding: 8px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
}
.remove-btn {
  color: #ff4c4c;
  cursor: pointer;
  font-weight: bold;
}
.remove-btn:hover {
  color: #ff1c1c;
}
.btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}
.btn:hover {
  background-color: #45a049;
}
.btn:disabled {
  background-color: #666;
  cursor: not-allowed;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal {
  background: var(--panel);
  padding: 25px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}
.modal input {
  width: 90%;
  padding: 8px;
  margin: 15px 0;
  border-radius: 4px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: white;
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.btn-cancel {
  background-color: #f44336;
}
.btn-cancel:hover {
  background-color: #da190b;
}
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #bbb;
}
.clear-all-btn {
  color: #ff4c4c;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
}
.clear-all-btn:hover {
  color: #ff1c1c;
  text-decoration: underline;
}
.file-info {
  display: flex;
  flex-direction: column;
}
.file-name {
  font-weight: 500;
}
.file-size {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.file-item {
  align-items: center;
}
