/* =========================
COMMON FORM DESIGN
========================= */

.form-wrapper {
  padding: 24px;
}

.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 30px rgba(15, 23, 42, .06);
  border: 1px solid #edf2f7;
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: block;
}

.form-control {
  height: 52px;
  border-radius: 14px !important;
  border: 1px solid #dbe2ea !important;
  padding: 12px 16px !important;
  box-shadow: none !important;
  transition: .3s;
  font-size: 14px;
}

textarea.form-control {
  height: 120px !important;
  resize: none;
}

.form-control:focus {
  border-color: #c86c79 !important;
  box-shadow: 0 0 0 3px rgba(200, 108, 121, .15) !important;
}

.select2-container--default .select2-selection--multiple {
  min-height: 52px !important;
  border-radius: 14px !important;
  border: 1px solid #dbe2ea !important;
  padding: 6px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #c86c79 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #c86c79 !important;
  border: none !important;
  color: #fff !important;
  padding: 4px 10px !important;
  border-radius: 30px !important;
}

.form-btn {
  background: #c86c79 !important;
  color: #fff !important;
  border: none !important;
  height: 50px;
  padding: 0 28px;
  border-radius: 14px;
  font-weight: 600;
  transition: .3s;
}

.form-btn:hover {
  background: #b85f6d !important;
  transform: translateY(-2px);
}

.preview-img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  display: none;
}

.text-danger {
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.alert-success {
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
}

@media(max-width:768px) {

  .form-card {
    padding: 20px;
  }

  .form-title {
    font-size: 22px;
  }


}

:root {
  --ink: #101828;
  --muted: #667085;
  --body: #f6f7fb;
  --panel: #ffffff;
  --line: #e4e7ec;
  --sidebar: #ca6c79;
  --sidebar-soft: #ca6c79;
  --brand: #ec8f9a;
  --brand-dark: #d97382;
  --accent: #fff3d4;
  --green: #17a589;
  --blue: #3577f0;
  --purple: #7868e6;
  --yellow: #f4c84c;
  --orange: #f47d52;
  --danger: #dc3f55;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.btn,
.form-control,
.form-select,
.input-group-text,
.admin-card,
.metric-card,
.auth-panel,
.auth-card,
.modal-content {
  border-radius: 8px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  font-weight: 800;
}

.btn-primary,
.btn-soft {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 26px rgba(217, 115, 130, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-soft:hover,
.btn-soft:focus {
  color: #fff;
  background: linear-gradient(135deg, #f19aa5, #c96878);
}

.btn-success {
  background: var(--green);
}

.btn-outline-muted {
  color: #475467;
  background: #fff;
  border: 1px solid var(--line);
}

.form-label {
  margin-bottom: 8px;
  color: #263342;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-control,
.form-select {
  min-height: 48px;
  color: var(--ink);
  border: 1px solid #d0d5dd;
  background-color: #fff;
  font-weight: 650;
}

.form-control::placeholder {
  color: #98a2b3;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.22rem rgba(236, 143, 154, 0.18);
}

.avatar,
.icon-button,
.metric-icon,
.table-action,
.service-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff2f4;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #d0d5dd;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* Login page */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff8f8 0%, #f7f9fc 54%, #eef4ff 100%);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 520px);
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgb(231 135 148), rgba(58, 37, 47, 0.82)),
    url(https://images.unsplash.com/photo-1543269865-cbf427effbad?auto=format&fit=crop&w=1500&q=80) center / cover;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  pointer-events: none;
}

.auth-visual>* {
  position: relative;
  z-index: 1;
}

.auth-brand,
.auth-card-brand {
  display: flex;
  align-items: center;
}

.brand-logo-hero {
  width: 190px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.brand-logo-card {
  width: 178px;
}

.auth-copy h1 {
  max-width: 780px;
  margin: 28px 0 16px;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 0.98;
  font-weight: 950;
}

.auth-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.8;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
}

.auth-stats div,
.auth-note {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.auth-stats div {
  padding: 20px;
  border-radius: 8px;
}

.auth-stats strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
  font-weight: 950;
}

.auth-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.auth-note {
  max-width: 460px;
  padding: 18px;
  border-radius: 8px;
  margin-top: 16px;
}

.auth-note small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-note p {
  margin: 8px 0 0;
  color: #fff;
  font-weight: 850;
}

.auth-card {
  min-height: 100vh;
  padding: clamp(30px, 5vw, 66px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: -26px 0 80px rgba(16, 24, 40, 0.14);
}

.auth-card-brand {
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(2.05rem, 5vw, 3.05rem);
  font-weight: 950;
}

.auth-card p:not(.eyebrow) {
  color: var(--muted);
}

.login-form {
  width: 100%;
  max-width: 430px;
  margin-top: 26px;
}

.input-group-text {
  min-width: 48px;
  justify-content: center;
  color: var(--brand-dark);
  background: #fff5f6;
  border-color: #d0d5dd;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 850;
}

.auth-secure {
  margin-top: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #f2d3d8;
  border-radius: 8px;
  color: #7a4850;
  background: #fff7f8;
  font-size: 0.88rem;
  font-weight: 800;
}

.auth-secure i {
  color: var(--brand-dark);
  font-size: 1.08rem;
}

/* Admin app */
.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(236, 143, 154, 0.08), transparent 260px),
    var(--body);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #d7dde8;
  background:
    linear-gradient(180deg, rgba(236, 143, 154, 0.12), transparent 260px),
    var(--sidebar);
  box-shadow: 18px 0 60px rgba(16, 24, 40, 0.12);
}

.sidebar-logo {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo-sidebar {
  width: 174px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.admin-welcome {
  margin: 20px 0 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-welcome small,
.admin-welcome strong {
  display: block;
}

.admin-welcome small {
  color: #98a2b3;
  font-weight: 750;
}

.admin-welcome strong {
  margin-top: 2px;
  color: #fff;
  font-size: 0.98rem;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
}

.nav-link,
.nav-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
}

.nav-link i:first-child {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link .chevron {
  margin-left: auto;
  color: #ffffff;
  font-size: 0.82rem;
}

.nav-link:hover,
.nav-link.active,
.nav-group.open>.nav-link,
.nav-group.active-group>.nav-link {
  color: #fff;
  background: rgba(236, 143, 154, 0.16);
}

.nav-link:hover i:first-child,
.nav-link.active i:first-child,
.nav-group.open>.nav-link i:first-child,
.nav-group.active-group>.nav-link i:first-child {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.nav-group.open .chevron,
.nav-group.active-group .chevron {
  transform: rotate(180deg);
}

.submenu {
  position: relative;
  display: none;
  gap: 4px;
  margin: 6px 0 8px 17px;
  padding-left: 18px;
}

.nav-group.open .submenu,
.nav-group.active-group .submenu {
  display: grid;
}

.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(236, 143, 154, 0.45);
}

.nav-sub-link {
  position: relative;
  min-height: 38px;
  padding: 0 12px;
  color: #aeb8c8;
  font-size: 0.9rem;
}

.nav-sub-link::before {
  content: "";
  position: absolute;
  left: -22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 4px var(--sidebar);
}

.nav-sub-link.active,
.nav-sub-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-sub-link.active::before,
.nav-sub-link:hover::before {
  background: var(--brand);
}

.workspace {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-title {
  min-width: 0;
}

.topbar-title span,
.topbar-title strong {
  display: block;
}

.topbar-title span {
  color: #98a2b3;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-title strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.topbar-actions {
  justify-content: flex-end;
}

.topbar-search {
  width: min(360px, 32vw);
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #98a2b3;
  background: #f9fafb;
}

.topbar-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 650;
}

.topbar-search input::placeholder {
  color: #98a2b3;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  position: relative;
  border-radius: 8px;
  color: #475467;
  background: #fff;
  font-size: 1.28rem;
}

.icon-button.has-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 3px #fff;
}

.profile-menu {
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475467;
  background: #fff;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
}

.profile-menu .avatar {
  width: 36px;
  height: 36px;
}

.page-content {
  flex: 1;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px 28px 0;
}

.page-heading {
  margin-bottom: 24px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(228, 231, 236, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(236, 143, 154, 0.12), rgba(53, 119, 240, 0.06));
  box-shadow: var(--shadow);
}

.page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  font-weight: 950;
}

.page-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.admin-card {
  padding: 26px;
  background: var(--panel);
  border: 1px solid rgba(228, 231, 236, 0.92);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.dashboard-card {
  padding: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  position: relative;
  min-height: 132px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.07);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -56px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.metric-card strong {
  display: block;
  color: #101828;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1;
  font-weight: 950;
}

.metric-card span {
  display: block;
  margin-top: 12px;
  color: #344054;
  font-size: 1rem;
  font-weight: 850;
}

.metric-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.16);
}

.metric-peach {
  background: linear-gradient(135deg, #fff1ec, #ffe5df);
}

.metric-green {
  background: linear-gradient(135deg, #ecfbf5, #ddf7ef);
}

.metric-purple {
  background: linear-gradient(135deg, #f0efff, #e8e7ff);
}

.metric-yellow {
  background: linear-gradient(135deg, #fff9e5, #fff0bd);
}

.metric-peach .metric-icon {
  background: var(--orange);
}

.metric-green .metric-icon {
  background: var(--green);
}

.metric-purple .metric-icon {
  background: var(--purple);
}

.metric-yellow .metric-icon {
  background: var(--yellow);
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.section-title {
  margin-bottom: 18px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eef2f7;
}

.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 950;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfcff;
}

.activity-item strong,
.activity-item small {
  display: block;
}

.activity-item small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.table-toolbar,
.filter-bar {
  margin-bottom: 18px;
  padding: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-radius: 8px;
  background: #f8fafc;
}

.entries-control,
.search-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #263342;
  font-weight: 850;
}

.entries-control .form-select {
  width: 88px;
}

.search-control .form-control {
  width: min(280px, 56vw);
}

.filter-bar .form-select {
  width: min(380px, 100%);
}

.table-responsive {
  overflow: auto;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  min-width: 980px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  padding: 16px 18px;
  color: #667085;
  background: #f8fafc;
  border-bottom: 1px solid #e4e7ec;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 18px;
  color: #1d2939;
  border-bottom: 1px solid #eef2f7;
  font-weight: 650;
  vertical-align: middle;
}

.admin-table tbody tr:nth-child(even) td {
  background: #fbfcff;
}

.admin-table tbody tr:hover td {
  background: #fff8f9;
}

.sort-hint {
  float: right;
  margin-left: 8px;
  color: #cbd5e1;
}

.status-pill {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
}

.status-active {
  color: #087a65;
  background: rgba(23, 165, 137, 0.14);
}

.status-inactive,
.status-pending {
  color: #8a5e00;
  background: rgba(244, 200, 76, 0.22);
}

.status-paid {
  color: #175cd3;
  background: rgba(53, 119, 240, 0.12);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-action {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--blue);
  background: #eff5ff;
}

.table-action.delete {
  color: var(--danger);
  background: #fff1f3;
}

.table-action.toggle {
  color: var(--blue);
}

.route-button {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #128774);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(23, 165, 137, 0.2);
}

.service-thumb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #fff3f5;
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 1px rgba(236, 143, 154, 0.18);
}

.table-summary {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #344054;
  font-weight: 800;
  flex-wrap: wrap;
}

.pagination-lite {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pagination-lite span,
.pagination-lite strong {
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
}

.pagination-lite span {
  color: #667085;
  background: #f2f4f7;
}

.pagination-lite strong {
  color: #344054;
  background: #e4e7ec;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.admin-form .full,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-message {
  margin: 0;
  color: #087a65;
  font-weight: 850;
}

.admin-footer {
  margin-top: 28px;
  padding: 18px 2px 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #667085;
  font-weight: 750;
  flex-wrap: wrap;
}

@media (max-width: 1240px) {
  .admin-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-lower {
    grid-template-columns: 1fr;
  }

  .topbar-search {
    width: min(300px, 28vw);
  }
}

@media (max-width: 920px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 286px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .admin-topbar {
    padding: 0 16px;
  }

  .topbar-title {
    display: none;
  }

  .topbar-search {
    width: min(340px, 42vw);
  }

  .page-content {
    padding: 18px 16px 0;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-card {
    min-height: 100vh;
    box-shadow: none;
  }

  .auth-card-brand {
    display: flex;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    min-height: auto;
    padding: 12px 14px;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-left,
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-search {
    order: 3;
    width: 100%;
  }

  .profile-menu span:not(.avatar) {
    display: none;
  }

  .admin-card,
  .dashboard-card {
    padding: 18px;
  }

  .table-toolbar,
  .table-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-control {
    width: 100%;
  }

  .search-control .form-control {
    width: 100%;
  }
}