/* ===== Bulk SMS — Campaign Manager ===== */

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bs-body-bg);
}

/* ---------- Layout ---------- */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bs-body-bg);
  border-right: 1px solid var(--bs-border-color);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1030;
  transition: margin-left 0.25s ease;
}

.sidebar-brand {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--bs-border-color);
}

.sidebar-nav .nav-link {
  color: var(--bs-body-color);
  padding: 0.6rem 1rem;
  margin: 0.1rem 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
}

.sidebar-nav .nav-link:hover {
  background: var(--bs-secondary-bg);
}

.sidebar-nav .nav-link.active {
  background: var(--bs-primary);
  color: #fff;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-navbar {
  height: 64px;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-content {
  flex: 1;
}

.app-footer {
  color: var(--bs-secondary-color);
  border-top: 1px solid var(--bs-border-color);
}

/* Mobile: sidebar off-canvas */
@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    margin-left: calc(-1 * var(--sidebar-width));
  }
  .app-sidebar.show {
    margin-left: 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  }
}

/* ---------- Cards & stats ---------- */
.stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ---------- Campaign schedule chips ---------- */
.schedule-chip {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.6rem;
  padding: 0.5rem 0.85rem;
  text-align: center;
  min-width: 108px;
}

.schedule-chip.done {
  background: var(--bs-success-bg-subtle);
  border-color: var(--bs-success-border-subtle);
}

.schedule-chip.pending {
  background: var(--bs-secondary-bg);
}

/* ---------- Auth ---------- */
.auth-body {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.auth-card {
  border-radius: 1rem;
}

/* ---------- Profile ---------- */
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

/* ---------- Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* ---------- Tables ---------- */
.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}
