* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
}

.app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  border-right: 1px solid #333;
  padding: 16px;
  background: #171717;
}

.sidebar h1 {
  margin-top: 0;
  font-size: 22px;
}

button {
  background: #ccff00;
  color: #111;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: bold;
  cursor: pointer;
}

.project-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: left;
  background: #252525;
  color: #eee;
}

.content {
  padding: 18px;
  min-width: 0;
}

.topbar h2 {
  margin: 0;
}

.topbar p {
  margin: 6px 0 0;
  color: #aaa;
}

.dropzone {
  margin-top: 18px;
  border: 2px dashed #555;
  border-radius: 18px;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #aaa;
  cursor: pointer;
}

.dropzone strong {
  color: #eee;
  display: block;
  font-size: 20px;
}

.dropzone span {
  display: block;
  margin-top: 6px;
}

.dropzone.is-dragover {
  border-color: #ccff00;
  background: rgba(204, 255, 0, 0.08);
}

.file-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

.file-card {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 14px;
  overflow: hidden;
}

.preview {
  aspect-ratio: 16 / 9;
  background: #000;
  display: grid;
  place-items: center;
}

.preview img,
.preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview audio {
  width: 90%;
}

.file-icon {
  color: #aaa;
  border: 1px solid #444;
  padding: 12px;
  border-radius: 8px;
}

.file-name {
  padding: 10px;
  font-size: 13px;
  color: #ddd;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 800px) {
  .app {
    display: block;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #333;
  }

  .content {
    padding: 12px;
  }

  .dropzone {
    min-height: 110px;
  }
}
