/* DEPOOL RADIO LIVE - Dribbble Admin Dashboard */
:root {
  --admin-bg: #0b0f19;
  --admin-card: #151d2f;
  --admin-card-border: #1f293d;
  --admin-primary: #dc2626;
  --admin-primary-hover: #b91c1c;
  --admin-text-main: #f8fafc;
  --admin-text-muted: #94a3b8;
  --admin-success: #10b981;
  --radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  min-height: 100vh;
  padding: 20px;
}

.admin-layout {
  max-width: 1000px;
  margin: 0 auto;
}

/* Header */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

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

.admin-logo {
  height: 36px;
  border-radius: 8px;
}

.admin-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.admin-subtitle {
  font-size: 11px;
  color: var(--admin-text-muted);
}

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

.btn-ghost {
  background: transparent;
  color: var(--admin-text-muted);
  border: 1px solid var(--admin-card-border);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: #fff;
  border-color: #334155;
}

/* Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .dashboard-grid-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Cards */
.admin-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-heading {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #0b0f19;
  border: 1px solid var(--admin-card-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--admin-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.btn-primary {
  background: var(--admin-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--admin-primary-hover);
}

.btn-secondary {
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #334155;
}

/* Post Items Management */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-height: 500px;
  overflow-y: auto;
}

.post-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b0f19;
  border: 1px solid var(--admin-card-border);
  padding: 12px;
  border-radius: 10px;
}

.post-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.post-row-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-row-details {
  min-width: 0;
}

.post-row-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.post-row-meta {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.post-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-danger-icon {
  background: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-danger-icon:hover {
  background: #dc2626;
  color: #fff;
}

/* Login Modal */
.login-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.login-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  display: none;
  z-index: 999;
}
