/* Minimal responsive shell and sidebar behavior keeping brand colors */

body.with-sidebar {
  background-color: #F8F9FA;
}

/* Sidebar toggle (hamburger) */
.sidebar-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1030;
  display: none;
  background: #C81E78;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.sidebar-toggle .toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
}

/* Content alignment when sidebar is present */
.with-sidebar .main-content,
.with-sidebar main {
  padding-left: 248px !important;
  transition: padding-left 0.2s ease;
}

/* Collapse behavior */
body.sidebar-collapsed #sidenav-main {
  transform: translateX(-220px);
  transition: transform 0.2s ease;
}
body.sidebar-collapsed .main-content,
body.sidebar-collapsed main {
  padding-left: 16px !important;
}

/* Mobile: show toggle and overlay-like behavior */
@media (max-width: 991px) {
  .sidebar-toggle { display: block; }
  #sidenav-main {
    transform: translateX(-220px);
    transition: transform 0.2s ease;
  }
  body.sidebar-open #sidenav-main {
    transform: translateX(0);
  }
  .with-sidebar .main-content,
  .with-sidebar main {
    padding-left: 16px !important;
  }
}

/* Message area polish */
#messages .alert {
  border-radius: 8px;
}
.site-banner-stack {
  margin: 16px 16px 0;
}
.site-banner {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}
.site-banner:last-child {
  margin-bottom: 0;
}
.site-banner .btn-close {
  margin-left: 1rem;
}
.site-banner-title {
  margin-right: 0.35rem;
  font-weight: 600;
}

/* Page header */
.page-header { margin: 0 0 16px; align-items: center; }
.page-title {
  margin: 0;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: #000;
  letter-spacing: .2px;
}
.page-subtitle { margin: 4px 0 0; color: #495057; }

/* Table wrappers */
.table-card { padding: 12px; }
.table-card table { width: 100%; }
.table-card .table { margin-bottom: 0; }

/* django-tables2 polish */
table.table {
  border-collapse: separate;
  border-spacing: 0;
}
table.table thead th {
  font-weight: 700;
  color: #000;
  background: #F8F9FA;
  border-bottom: 1px solid #e9ecef;
}
table.table tbody tr:hover {
  background-color: #FFF2F8; /* subtle pink tint */
}
table.table td, table.table th {
  padding: 10px 12px;
}

/* Buttons: elevate and add brand gradient */
.btn { border: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(200, 30, 120, 0.18); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.btn.btn-pink,
.btn-pink {
  background-image: linear-gradient(135deg, #C81E78 0%, #AB1665 100%);
  background-color: #C81E78;
}
.btn.btn-pink:hover,
.btn-pink:hover {
  background-image: linear-gradient(135deg, #AB1665 0%, #8E0F52 100%);
}

/* Cards and sections */
.white-sec, .card { border-radius: 12px; box-shadow: 0 6px 16px rgba(17, 12, 46, 0.08); border: 1px solid #edf0f3; }
.card-header { background: #fff; font-weight: 700; }
.card-body { background: #fff; }

/* Status badges */
.badge { display: inline-block; padding: .35em .6em; font-size: 12px; font-weight: 700; border-radius: 999px; letter-spacing: .2px; }
.bg-success { background-color: #82d616; color: #0c3810; }
.bg-warning { background-color: #fbcf33; color: #5f4b00; }
.bg-danger { background-color: #ea0606; color: #fff; }
.bg-secondary { background-color: #8392AB; color: #fff; }

/* Main container baseline spacing for messages area */
.message-container { padding: 5px; min-height: 0; }
