@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --vp-primary: #0d6efd;
  --vp-bg: #f5f7fb;
  --vp-elevation-1: 0 16px 36px rgba(15, 23, 42, 0.12);
}

body {
  background: #f8f9fa;
  color: #212529;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body::-webkit-scrollbar {
  display: none;
}

html {
  overflow-y: auto;
  background: #f8f9fa;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

.vp-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.vp-toast {
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  min-width: 240px;
  max-width: 320px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: all;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vp-toast.success {
  background: rgba(16, 185, 129, 0.95);
}

.vp-toast.error {
  background: rgba(220, 53, 69, 0.95);
}

.vp-toast.opacity-0 {
  opacity: 0;
  transform: translateY(6px);
}

.hero-card {
  border-radius: 24px;
  box-shadow: var(--vp-elevation-1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.brand-badge {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(13, 110, 253, 0.12);
  color: var(--vp-primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tag.admin {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.card-soft {
  border-radius: 24px;
  border: none;
  box-shadow: var(--vp-elevation-1);
}

.cta-card {
  border-radius: 24px;
  padding: 18px 20px;
  border: none;
  background: #fff;
  box-shadow: var(--vp-elevation-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vp-elevation-1);
}

.cta-info h5 {
  margin-bottom: 4px;
  font-weight: 600;
}

.cta-info p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #4338ca;
}

.cta-icon.alt {
  background: #fff5f5;
  color: #c026d3;
}

.glass-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--vp-elevation-1);
}

.center-card {
  border-radius: 24px;
  border: none;
  background: linear-gradient(145deg, #ffffff, #f2f5fb);
  box-shadow: var(--vp-elevation-1);
}

.center-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #f8fafd;
  flex-shrink: 0;
}

.center-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.center-item {
  cursor: pointer;
  border-radius: 0;
  margin-bottom: 8px;
  background: #ffffff;
}

.center-chevron {
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--vp-elevation-1);
}

.center-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-item {
  background: #fff;
  border-radius: 24px;
  border: none;
  box-shadow: var(--vp-elevation-1);
  margin-bottom: 16px;
}

.user-item:last-child {
  margin-bottom: 0;
}

.user-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.user-phone {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.user-phone i {
  font-size: 0.85rem;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
}

.vp-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 360px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--vp-elevation-1);
  text-align: center;
}

.vp-modal h5 {
  font-weight: 600;
  margin-bottom: 8px;
}

.vp-modal p {
  margin-bottom: 20px;
  color: #475569;
  font-size: 0.95rem;
}

.vp-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.vp-modal .form-control {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 12px 14px;
  text-align: left;
}

.detail-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-grid article {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-card-block {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #212529;
}

.detail-card-block h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: #6c757d;
  margin-bottom: 10px;
}

.detail-card-block p {
  margin: 0;
  font-size: 0.85rem;
  color: #212529;
}

.detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 6px;
  font-weight: 600;
}

.detail-value {
  margin: 0;
  font-size: 0.85rem;
  color: #212529;
  font-weight: 600;
}

.welcome-chip {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  padding: 6px 12px;
  border-radius: 999px;
}

.welcome-message {
  font-size: 1rem;
  color: #475569;
  max-width: 520px;
}

.summary-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--vp-elevation-1);
  min-width: 140px;
}

.summary-chip span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.summary-chip strong {
  font-size: 1.3rem;
  color: #0f172a;
}

.search-input {
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.image-preview-box {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 20px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.9);
  padding: 18px;
}

.image-preview-box img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: var(--vp-elevation-1);
}

.user-welcome-card {
  padding: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.95));
  border-radius: 24px;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--vp-elevation-1);
}

.icon-btn-primary {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.icon-btn-danger {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  border-color: transparent;
}

.user-welcome-text {
  flex: 1 1 auto;
  min-width: 0;
}

.top-bar-title {
  font-weight: 600;
  font-size: 1rem;
}

.top-bar-subtitle {
  font-size: 0.85rem;
  color: #64748b;
}

.list-shell {
  border-radius: 28px;
  padding: 0;
  box-shadow: var(--vp-elevation-1);
}

.list-shell .list-group-item {
  padding: 1.5rem;
  border-color: rgba(148, 163, 184, 0.2);
  background: transparent;
}

.search-wrapper {
  min-width: 220px;
}

#admin-panel {
  display: none;
}

#admin-panel.show {
  display: block;
}

.admin-card {
  border: none;
  border-radius: 24px;
  padding: 24px;
  background: rgba(248, 249, 255, 0.92);
  box-shadow: var(--vp-elevation-1);
  height: 100%;
}

.admin-card h4 {
  font-weight: 600;
}

.card-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
  margin: 20px 0;
}

/* Dashboard mobile shell */
.dashboard-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  background: #f8f9fa;
}

.dashboard-mobile {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  padding: 32px 24px 40px;
  background: #ffffff;
  color: #212529;
  box-shadow: 0 20px 60px rgba(33, 37, 41, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.dashboard-mobile.users-mobile,
.dashboard-mobile.form-mobile,
.dashboard-mobile.centers-mobile,
.dashboard-mobile.details-mobile,
.dashboard-mobile.login-mobile {
  background: #ffffff;
}

.dashboard-mobile.details-mobile {
  max-width: 440px;
  padding-bottom: 30px;
}

.dashboard-mobile.login-mobile {
  max-width: 420px;
  margin-top: 80px;
}

.mobile-notch {
  display: none;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.mobile-header.align-center {
  align-items: center;
}

.mobile-header.align-left {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.mobile-header.align-start {
  align-items: flex-start;
  gap: 16px;
}

.header-text h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #212529;
}

.muted {
  color: #6c757d;
  margin: 0;
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #6c757d;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-circle:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.icon-circle.subtle {
  background: transparent;
}

.icon-circle.accent {
  background: transparent;
  color: #0d6efd;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.15);
  text-transform: uppercase;
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: #f8f9fa;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #6c757d;
}

.stat-card strong {
  font-size: 1.9rem;
  font-weight: 700;
}

.stat-card small {
  color: #6c757d;
}

.stat-card.span-2 {
  grid-column: span 2;
}

.user-stats .stat-card {
  background: rgba(248, 250, 252, 0.18);
}

.actions-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.actions-list h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
}

.action-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: #ffffff;
  color: #212529;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(33, 37, 41, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35);
}

.action-card h4 {
  margin: 0 0 4px;
  font-weight: 600;
}

.action-card .muted {
  color: #6c757d;
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.action-icon.primary {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.action-icon.secondary {
  background: rgba(192, 132, 252, 0.2);
  color: #9333ea;
}

.action-card.accent {
  background: #fff7f8;
  color: #b91c1c;
}

.action-card.accent .muted {
  color: rgba(136, 19, 55, 0.75);
}

.mobile-footer {
  text-align: center;
  margin-top: 32px;
  color: #6c757d;
}

.form-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.form-card .form-control {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: none;
}

.form-card .form-floating > label {
  color: #6c757d;
}

.form-card .form-floating > .form-control:focus ~ label {
  color: #2563eb;
}

.form-card .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.form-card .btn-primary {
  border-radius: 16px;
  padding: 14px 0;
  font-weight: 600;
  background: #0d6efd;
  border: none;
}

.search-card {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f1f3f5;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-wrapper i {
  color: #6c757d;
}

.search-input-wrapper input {
  border: none;
  background: transparent;
  flex: 1;
  color: #212529;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: #6c757d;
}

.user-list-shell {
  margin-top: 32px;
}

.user-list-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.user-list-group .list-group-item {
  border: none;
  border-radius: 22px;
}

.user-item {
  border-radius: 22px;
  padding: 16px 18px;
  background: #ffffff;
  color: #212529;
  box-shadow: 0 16px 30px rgba(33, 37, 41, 0.08);
  border: none;
}

.user-item .user-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.user-item .user-phone {
  color: #6c757d;
}

.user-item .user-actions {
  display: flex;
  gap: 10px;
}

.user-item .btn {
  border-radius: 999px;
  padding-inline: 16px;
}

.user-list-group .text-muted {
  color: #6c757d !important;
}

.user-list-group .list-group-item:first-child,
.user-list-group .list-group-item:last-child {
  border-radius: 22px;
}

.center-list-shell {
  margin-top: 28px;
}

.center-list-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.center-card-item {
  border-radius: 22px;
  padding: 18px;
  background: #ffffff;
  color: #212529;
  box-shadow: 0 20px 45px rgba(33, 37, 41, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.center-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.center-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.center-card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  background: #f1f3f5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-card-thumb img,
.center-card-thumb .center-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.center-card-thumb .center-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #adb5bd;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f1f3f5;
}

.center-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #212529;
}

.single-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.center-location,
.center-address {
  font-size: 0.82rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.center-location {
  margin-bottom: 4px;
}

.center-card-item .center-admin-actions .btn {
  border-radius: 999px;
  padding-inline: 16px;
}

.center-hint {
  font-size: 0.75rem;
  color: #adb5bd;
  margin-top: 2px;
  display: block;
}

.user-inline-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #212529;
}

.user-inline-card h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.user-inline-card .muted {
  color: #6c757d;
}

@media (max-width: 420px) {
  .dashboard-mobile {
    border-radius: 32px;
    padding: 28px 20px 34px;
  }

  .stat-card.span-2 {
    grid-column: span 1;
  }
}
/* Center detail hero */
.center-detail-placeholder {
  width: 100%;
  padding-top: 56.25%;
  border-radius: 24px;
  background: #f1f3f5;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.center-detail-image {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-hero {
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
}
