:root {
  --bg-main: #0d0e12;
  --bg-card: #161820;
  --bg-card-hover: #1c1e28;
  --bg-input: #1f222d;
  --border-color: #2b2f3d;
  --text-main: #ffffff;
  --text-muted: #8b92a5;
  --accent: #2ecc71;
  --accent-hover: #27ae60;
  --danger: #ff5656;
  --danger-hover: #e04444;
  --warning: #f39c12;
  --info: #3498db;
  --radius: 10px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: 60px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  margin-bottom: 24px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
}
.brand img {
  height: 28px;
}
.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a.active, .nav-links a:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
  text-decoration: none;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-draft { background: #34495e; color: #fff; }
.badge-ready { background: #2980b9; color: #fff; }
.badge-running { background: #27ae60; color: #fff; }
.badge-publishing { background: #d35400; color: #fff; }
.badge-published { background: #2ecc71; color: #fff; }
.badge-paused { background: #f39c12; color: #fff; }
.badge-done { background: #16a085; color: #fff; }
.badge-error { background: #e74c3c; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* Forms */
.form-group {
  margin-bottom: 16px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 14px;
  padding: 10px 12px;
  font-family: inherit;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 120px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
tr:hover td {
  background: var(--bg-card-hover);
}

/* Grid & Previews */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.slot-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.slot-media-preview {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.slot-media-item {
  flex: 1;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  position: relative;
  aspect-ratio: 1/1;
}
.slot-media-item.reel-ratio {
  aspect-ratio: 9/16;
}
.slot-media-item img, .slot-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Alert Boxes */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: rgba(46, 204, 113, 0.15); border: 1px solid #2ecc71; color: #2ecc71; }
.alert-danger { background: rgba(231, 76, 60, 0.15); border: 1px solid #e74c3c; color: #e74c3c; }
.alert-info { background: rgba(52, 152, 219, 0.15); border: 1px solid #3498db; color: #3498db; }

