/* ─── Layout ─────────────────────────────────────────────────────────────── */

:root {
  --sidebar-width: 240px;
}

body {
  background: #f0f2f5;
  font-size: 0.9rem;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */

#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

#sidebar .nav-link {
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  transition: background 0.15s;
}

#sidebar .nav-link.active,
#sidebar .nav-link:hover {
  background: rgba(255,255,255,0.12);
}

#sidebar .nav-link.active {
  background: rgba(13, 110, 253, 0.85);
}

/* ─── Content wrapper ────────────────────────────────────────────────────── */

.content-wrapper {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 52px;
}

/* ─── Cards / Tables ─────────────────────────────────────────────────────── */

.card {
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  border-radius: 10px;
}

.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
  border-top: none;
}

/* ─── Status badges ──────────────────────────────────────────────────────── */

.badge-draft     { background: #e9ecef; color: #495057; }
.badge-scheduled { background: #cff4fc; color: #055160; }
.badge-sending   { background: #fff3cd; color: #664d03; }
.badge-sent      { background: #d1e7dd; color: #0a3622; }
.badge-paused    { background: #f8d7da; color: #58151c; }

/* ─── Auth pages ─────────────────────────────────────────────────────────── */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */

.pagination .page-link {
  border-radius: 6px !important;
  margin: 0 2px;
  font-size: 0.85rem;
}

/* ─── Stat tiles ─────────────────────────────────────────────────────────── */

.stat-tile {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.stat-tile .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.stat-tile .stat-label {
  font-size: 0.78rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    left: calc(var(--sidebar-width) * -1);
    z-index: 1050;
    transition: left 0.25s;
  }
  #sidebar.open {
    left: 0;
  }
  #wrapper {
    flex-direction: column;
  }
}
