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

body {
  font-family: sans-serif;
  background: #f0f2f5;
}

.container {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: white;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.series-list {
  list-style: none;
  margin-top: 10px;
}

.series-item {
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
}

.series-item:hover {
  background: #eee;
}

.series-item.active {
  background: #dbeafe;
}

.search-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

/* Empty state */
.empty-state {
  margin-top: 10px;
  color: #888;
  font-size: 0.9rem;
}

/* Main */
.main-content {
  flex: 1;
  padding: 30px;
}

.details-form,
.details-view {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

.details-view img {
  max-width: 300px;
  margin-top: 10px;
  border-radius: 8px;
}

/* Inputs */
input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}

/* Buttons */
button {
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

.save-btn {
  background: #4a90d9;
  color: white;
  border: none;
}

.export-btn {
  background: #eee;
  border: 1px solid #ccc;
}

.delete-btn {
  border: 1px solid red;
  color: red;
  background: white;
}

.delete-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  color: #888;
}

/* Preview image */
#preview-image {
  max-width: 300px;
  margin-top: 10px;
  border-radius: 8px;
}