* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ------------------------------
   GLOBAL
------------------------------ */

:root {
  --navy-900: #07133f;
  --navy-800: #0b1d5c;
  --navy-700: #122c7a;
  --blue-100: #e8efff;
  --blue-50: #f5f8ff;
  --slate-900: #111827;
  --slate-700: #374151;
  --slate-500: #6b7280;
  --slate-300: #d1d5db;
  --slate-200: #e5e7eb;
  --slate-100: #eef2f7;
  --white: #ffffff;
  --green-bg: #dcfce7;
  --green-text: #166534;
  --yellow-bg: #fef3c7;
  --yellow-text: #92400e;
  --red-bg: #fee2e2;
  --red-text: #991b1b;
  --danger-soft: #fecaca;
  --edit-bg: #dbeafe;
  --edit-bg-hover: #bfdbfe;
  --edit-text: #1d4ed8;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 18px 40px rgba(15, 23, 42, 0.1);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #10256f 0%, #07133f 60%, #03081f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-900);
}

.dashboard-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(17, 44, 122, 0.06), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------
   LOGIN PAGE
------------------------------ */

.app {
  width: 100%;
  padding: 28px;
  display: flex;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 470px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.auth-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.logo {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.login-card h1 {
  font-size: 30px;
  margin-bottom: 8px;
  color: var(--navy-900);
  text-align: center;
  letter-spacing: 1px;
  font-weight: 800;
}

.subtitle {
  color: var(--slate-500);
  margin-bottom: 30px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

/* ------------------------------
   FORMS
------------------------------ */

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.input-group label {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--slate-700);
  font-weight: 700;
}

.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="text"],
.input-group input[type="date"],
.input-group input[type="time"],
.input-group select,
.search-input,
.language-switcher,
.modal-form input,
.modal-form select {
  padding: 14px 16px;
  border: 1px solid #d7dfeb;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
  background: var(--white);
  color: var(--slate-900);
}

.input-group input:focus,
.input-group select:focus,
.search-input:focus,
.language-switcher:focus,
.modal-form input:focus,
.modal-form select:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(11, 29, 92, 0.08);
}

.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate-700);
  cursor: pointer;
}

.remember-me input {
  accent-color: var(--navy-900);
}

.forgot-link {
  font-size: 14px;
  color: var(--navy-900);
  font-weight: 700;
}

.forgot-link:hover {
  text-decoration: underline;
}

button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  transition: 0.2s ease;
  box-shadow: 0 10px 24px rgba(7, 19, 63, 0.18);
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.bottom-links {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--slate-500);
}

.create-link {
  color: var(--navy-900);
  font-weight: 800;
}

.create-link:hover {
  text-decoration: underline;
}

.login-error-message {
  margin-top: 14px;
  text-align: center;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}

/* ------------------------------
   DASHBOARD LAYOUT
------------------------------ */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #05113a 0%, #0a1d5c 100%);
  color: var(--white);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 34px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sidebar-logo-img {
  width: 118px;
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.sidebar-logo h2 {
  font-size: 24px;
  letter-spacing: 1px;
  font-weight: 800;
}

.sidebar-panel-label {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.nav-item {
  color: var(--white);
  padding: 14px 16px;
  border-radius: 14px;
  transition: 0.2s ease;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(2px);
}

.dashboard-main {
  flex: 1;
  padding: 34px;
}

/* ------------------------------
   TOPBAR
------------------------------ */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
}

.topbar h1 {
  font-size: 34px;
  color: var(--slate-900);
  margin-bottom: 6px;
  font-weight: 800;
}

.topbar p,
.page-subtitle,
.table-subtitle {
  color: var(--slate-500);
  line-height: 1.55;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-btn,
.add-client-btn {
  width: auto;
  padding: 12px 18px;
  border-radius: 14px;
  margin-top: 0;
}

.language-switcher {
  font-weight: 700;
  cursor: pointer;
}

/* ------------------------------
   DASHBOARD CARDS
------------------------------ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card,
.content-card,
.table-card,
.notification-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--slate-100);
}

.stat-card {
  padding: 24px;
}

.stat-card h3 {
  font-size: 15px;
  color: var(--slate-500);
  margin-bottom: 12px;
  font-weight: 700;
}

.stat-card p {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy-900);
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.content-card {
  padding: 24px;
}

.content-card h2 {
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--slate-900);
  font-weight: 800;
}

.simple-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simple-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--slate-700);
  font-weight: 600;
  border: 1px solid #e9eef7;
}

/* ------------------------------
   QUICK LINKS
------------------------------ */

.admin-quick-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.quick-link-card {
  display: block;
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
  border: 1px solid #e8edf7;
  border-radius: 18px;
  padding: 16px 18px;
  transition: 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: #d5def0;
}

.quick-link-card span {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 5px;
}

.quick-link-card small {
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------
   TOOLBARS + TABLES
------------------------------ */

.clients-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.search-input {
  flex: 1;
  max-width: 400px;
}

.table-card {
  padding: 20px;
  overflow-x: auto;
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.table-title,
.section-title {
  font-size: 20px;
  color: var(--slate-900);
  font-weight: 800;
  margin-bottom: 4px;
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
}

.clients-table thead th {
  text-align: left;
  font-size: 12px;
  color: var(--slate-500);
  padding: 16px 14px;
  border-bottom: 1px solid var(--slate-200);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clients-table tbody td {
  padding: 18px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--slate-700);
  font-size: 15px;
  vertical-align: middle;
}

.clients-table tbody tr:hover {
  background: #fafcff;
}

.table-link {
  color: var(--navy-900);
  font-weight: 800;
}

.table-link:hover {
  text-decoration: underline;
}

/* ------------------------------
   STATUS BADGES
------------------------------ */

.status-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.active-status {
  background: var(--green-bg);
  color: var(--green-text);
}

.inactive-status {
  background: var(--red-bg);
  color: var(--red-text);
}

.pending-status {
  background: var(--yellow-bg);
  color: var(--yellow-text);
}

.cancelled-status {
  background: var(--red-bg);
  color: var(--red-text);
}

/* ------------------------------
   BOOKING
------------------------------ */

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.booking-table-wrap {
  margin-top: 8px;
}

.booking-status-select {
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  font-weight: 800;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.booking-status-select.active-status {
  background: var(--green-bg);
  color: var(--green-text);
}

.booking-status-select.pending-status {
  background: var(--yellow-bg);
  color: var(--yellow-text);
}

.booking-status-select.cancelled-status {
  background: var(--red-bg);
  color: var(--red-text);
}

/* ------------------------------
   NOTIFICATIONS
------------------------------ */

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notification-card {
  padding: 22px;
  border-left: 5px solid transparent;
}

.notification-card.unread {
  border-left-color: var(--navy-900);
  background: #f8faff;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.notification-header h3 {
  font-size: 18px;
  color: var(--slate-900);
  font-weight: 800;
}

.notification-time {
  font-size: 13px;
  color: var(--slate-500);
  white-space: nowrap;
  font-weight: 600;
}

.notification-card p {
  color: #4b5563;
  line-height: 1.65;
}

/* ------------------------------
   MODALS
------------------------------ */

.hidden {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 24px;
  color: var(--slate-900);
  font-weight: 800;
}

.close-modal-btn {
  width: auto;
  background: transparent;
  color: var(--slate-900);
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.close-modal-btn:hover {
  background: transparent;
  color: var(--navy-900);
  transform: none;
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.modal-form-single {
  grid-template-columns: 1fr;
}

.modal-form .input-group {
  margin-bottom: 0;
}

.full-width {
  grid-column: 1 / -1;
}

.save-client-btn {
  grid-column: 1 / -1;
  margin-top: 6px;
}

/* ------------------------------
   TABLE ACTION BUTTONS
------------------------------ */

.table-action-btn {
  width: auto;
  padding: 8px 12px;
  background: var(--red-bg);
  color: var(--red-text);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  margin-top: 0;
  box-shadow: none;
}

.table-action-btn:hover {
  background: var(--danger-soft);
  transform: none;
}

.table-edit-btn {
  width: auto;
  padding: 8px 12px;
  background: var(--edit-bg);
  color: var(--edit-text);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  margin-right: 8px;
  margin-top: 0;
  box-shadow: none;
}

.table-edit-btn:hover {
  background: var(--edit-bg-hover);
  transform: none;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-content-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 20px;
  }

  .dashboard-main {
    padding: 20px;
  }

  .topbar,
  .clients-toolbar,
  .table-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .search-input {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .login-card,
  .modal-card {
    padding: 22px;
  }

  .modal-form {
    grid-template-columns: 1fr;
  }

  .notification-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .clients-table thead {
    display: none;
  }

  .clients-table,
  .clients-table tbody,
  .clients-table tr,
  .clients-table td {
    display: block;
    width: 100%;
  }

  .clients-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .clients-table tbody td {
    padding: 8px 0;
    border-bottom: none;
  }

  .dashboard-main {
    padding: 16px;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .stat-card p {
    font-size: 26px;
  }
}
.clients-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.branding-preview-card {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
  border: 1px solid #e5ebf5;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.branding-preview-logo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.branding-preview-logo {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

#brandingCompanyNamePreview {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

#brandingPreviewText {
  color: #6b7280;
  line-height: 1.5;
}