:root {
  --bg: #050505;
  --card: #111827;
  --card2: #0f172a;
  --text: #f8fafc;
  --muted: #a1a1aa;
  --accent: #14b8a6;
  --danger: #f87171;
  --border: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
}

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

.nav {
  display: flex;
  gap: 10px;
}

.tab {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font: inherit;
}

.tab.logout {
  background: #1f2937;
  color: var(--text);
}

.tab.active {
  background: linear-gradient(90deg, var(--card), var(--card2));
}

.card {
  background: linear-gradient(120deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.form {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 10px;
}

input {
  width: 100%;
  background: #090f1d;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

input[type="date"] {
  color-scheme: dark;
}

.fileLabel {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #032522;
}

.btn.secondary {
  background: #1f2937;
  color: #f8fafc;
  border-color: #374151;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn.danger {
  background: var(--danger);
  color: #2a0505;
}

select {
  width: 100%;
  background: #090f1d;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

select[multiple] {
  height: 100px;
  padding: 4px;
}

select[multiple] option {
  padding: 6px 8px;
  border-radius: 6px;
}

select[multiple] option:checked {
  background: var(--accent);
  color: #032522;
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
}

.userEdit {
  flex: 1;
}

.albumInfo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coverThumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #0b0b0b;
  flex-shrink: 0;
}

.coverThumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}

.loginPage {
  display: grid;
  place-items: center;
  min-height: 80vh;
}

.loginForm {
  width: 100%;
  max-width: 380px;
}

.loginForm input {
  margin-bottom: 10px;
}

.error {
  color: var(--danger);
  font-size: 14px;
  margin-bottom: 10px;
}