body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(88, 190, 221, 0.16), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(169, 204, 85, 0.14), transparent 22%),
    linear-gradient(180deg, #f7fbfc 0%, #edf4f7 100%);
}

body:not(.layout-top-nav) .main-header,
body:not(.layout-top-nav) .main-footer {
  margin-left: 0;
}

body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header,
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer {
  margin-left: 0 !important;
}

body:not(.layout-top-nav) .content-wrapper,
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper {
  margin-left: 250px !important;
}

.layout-fixed .main-sidebar {
  top: 47px;
}

.cms-navbar {
  border-bottom: 1px solid rgba(16, 18, 20, 0.08);
  z-index: 1040;
}

.cms-brand {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 10px;
  text-decoration: none !important;
}

.cms-brand__logo {
  width: 70px;
  height: 29px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cms-brand .brand-text {
  display: none;
}

.cms-mobile-toggle {
  margin-right: 10px;
}

.cms-wrapper {
  background: transparent;
  min-height: calc(100vh - 57px);
}

body.cms-auth-mode .cms-sidebar,
body.cms-auth-mode .content-header,
body.cms-auth-mode #cms-app,
body.cms-auth-mode #cms-save,
body.cms-auth-mode #cms-logout,
body.cms-auth-mode .cms-mobile-toggle {
  display: none !important;
}

body.cms-auth-mode .content-wrapper,
body.cms-auth-mode .main-header,
body.cms-auth-mode .main-footer {
  margin-left: 0 !important;
}

body.cms-auth-mode:not(.layout-top-nav) .content-wrapper,
body.cms-auth-mode:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper {
  margin-left: 0 !important;
}

body.cms-auth-mode .cms-wrapper {
  min-height: 100vh;
}

body.cms-auth-mode .content {
  min-height: calc(100vh - 57px);
  display: flex;
  align-items: center;
}

body.cms-auth-mode .content > .container-fluid {
  width: 100%;
}

body.cms-auth-mode #cms-login-wrap {
  justify-content: center;
  margin: 0 auto;
  width: 100%;
}

body.cms-auth-mode #cms-login-wrap .card {
  border-radius: 0;
  box-shadow: 0 26px 60px rgba(16, 18, 20, 0.12);
}

body.cms-auth-mode #cms-login-wrap > [class*='col-'] {
  margin: 0 auto;
}

body.cms-auth-mode #gallery-add-item {
  display: none !important;
}

body.cms-booting #cms-login-wrap,
body.cms-booting #cms-app {
  visibility: hidden;
}

.cms-sidebar {
  position: fixed;
  top: 47px;
  bottom: 0;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid rgba(16, 18, 20, 0.08);
  z-index: 1030;
}

.cms-sidebar .nav-link {
  color: rgba(16, 18, 20, 0.78);
  border-radius: 12px;
  margin: 2px 10px 2px 0;
}

.cms-sidebar .nav-link:hover,
.cms-sidebar .nav-link:focus {
  background: rgba(88, 190, 221, 0.12);
  color: #0b80bd;
}

.cms-sidebar .nav-link.active {
  background: linear-gradient(135deg, #0b80bd, #58bedd);
  color: #fff;
}

.cms-sidebar .nav-icon {
  color: inherit;
}

.cms-panel {
  display: none;
}

.cms-panel.is-active {
  display: flex;
}

.card.cms-panel.is-active {
  display: block;
}

.cms-subtitle {
  margin: 8px 0 0;
  color: rgba(16, 18, 20, 0.64);
}

.cms-mobile-home {
  display: none;
}

.cms-feedback {
  margin-bottom: 16px;
}

.cms-save-button {
  min-width: 220px;
}

#cms-login-submit,
.cms-save-button,
#cms-logout,
.cms-mobile-booking-link,
.cms-mobile-toggle,
.cms-upload-trigger,
#gallery-add-item-visible,
[data-gallery-remove] {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 800;
}

#cms-login-submit,
.cms-save-button,
#gallery-add-item-visible {
  background: linear-gradient(135deg, #0b80bd, #58bedd);
  color: #fff !important;
}

#cms-login-submit {
  min-height: 50px;
}

body.cms-auth-mode #cms-login,
body.cms-auth-mode #cms-password {
  min-height: 50px;
  border-radius: 999px;
}

#cms-login-submit:hover,
.cms-save-button:hover,
#gallery-add-item-visible:hover {
  background: linear-gradient(135deg, #0a74ac, #4eb1d2);
}

#cms-logout,
.cms-mobile-booking-link,
.cms-mobile-toggle,
.cms-upload-trigger,
[data-gallery-remove] {
  background: rgba(10, 128, 189, 0.08);
  color: #0b80bd !important;
  border: 1px solid rgba(10, 128, 189, 0.18);
}

#cms-logout:hover,
.cms-mobile-booking-link:hover,
.cms-mobile-toggle:hover,
.cms-upload-trigger:hover,
[data-gallery-remove]:hover {
  background: rgba(10, 128, 189, 0.14);
}

.cms-mobile-booking-link {
  display: none !important;
}

.card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(16, 18, 20, 0.08);
}

.card-header {
  border-bottom: 1px solid rgba(16, 18, 20, 0.06);
  background: rgba(255, 255, 255, 0.72);
}

.cms-help {
  margin-bottom: 12px;
}

.cms-gallery-card,
.cms-racket-card,
.cms-feature-card,
.cms-service-card {
  border: 1px solid rgba(16, 18, 20, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(248, 250, 251, 0.9);
}

.cms-tall-textarea {
  min-height: 260px;
}

.cms-inline-upload {
  margin-top: 10px;
}

.cms-media-preview {
  margin-top: 12px;
  min-height: 84px;
  border: 1px dashed rgba(16, 18, 20, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: rgba(16, 18, 20, 0.48);
  font-size: 13px;
  text-align: center;
}

.cms-media-preview img,
.cms-media-preview video {
  display: block;
  width: 100%;
  max-height: 190px;
  border-radius: 10px;
  object-fit: contain;
  background: #f4f7f9;
}

.cms-bookings-table {
  margin-bottom: 0;
}

.cms-bookings-filters .form-group {
  margin-bottom: 14px;
}

.cms-bookings-filters .btn {
  min-height: 38px;
}

.cms-bookings-table thead th {
  border-top: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(16, 18, 20, 0.58);
  white-space: nowrap;
}

.cms-bookings-table tbody td {
  vertical-align: middle;
  border-color: rgba(16, 18, 20, 0.07);
}

.cms-booking-title {
  font-weight: 800;
  color: #101214;
}

.cms-booking-meta {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(16, 18, 20, 0.58);
}

.cms-booking-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 128, 189, 0.08);
  color: #0b80bd;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cms-booking-action {
  min-width: 110px;
}

.cms-booking-action:disabled {
  cursor: default;
}

.cms-bookings-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cms-bookings-pagination__meta {
  font-size: 13px;
  color: rgba(16, 18, 20, 0.58);
}

.cms-bookings-pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cms-page-btn {
  min-width: 40px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(10, 128, 189, 0.18);
  border-radius: 999px;
  background: rgba(10, 128, 189, 0.08);
  color: #0b80bd;
  font-weight: 800;
}

.cms-page-btn.is-active {
  background: linear-gradient(135deg, #0b80bd, #58bedd);
  color: #fff;
  border-color: transparent;
}

.cms-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 991px) {
  body.cms-mobile-home-state .content-header,
  body.cms-mobile-home-state #cms-app {
    display: none !important;
  }

  body.cms-mobile-home-state .content {
    min-height: calc(100vh - 57px);
    display: flex;
    align-items: center;
  }

  body.cms-mobile-home-state .content > .container-fluid {
    width: 100%;
  }

  .cms-mobile-home {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
  }

  .cms-mobile-home__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: none;
    white-space: nowrap;
    text-decoration: none !important;
  }

  .cms-mobile-home__button,
  .cms-mobile-home__button:hover,
  .cms-mobile-home__button:focus {
    background: linear-gradient(135deg, #0b80bd, #58bedd);
    color: #fff !important;
  }

  .cms-mobile-home__button--secondary,
  .cms-mobile-home__button--secondary:hover,
  .cms-mobile-home__button--secondary:focus {
    background: rgba(10, 128, 189, 0.08);
    color: #0b80bd !important;
    border: 1px solid rgba(10, 128, 189, 0.18);
  }

  .cms-mobile-home__button--secondary:hover,
  .cms-mobile-home__button--secondary:focus {
    background: rgba(10, 128, 189, 0.14);
  }

  body:not(.layout-top-nav) .content-wrapper,
  body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper {
    margin-left: 0 !important;
  }

  .cms-sidebar {
    display: none;
    position: fixed;
    top: 47px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 18, 20, 0.08);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    max-width: 100%;
    margin-left: 0 !important;
  }

  .layout-fixed .main-sidebar,
  .layout-fixed .main-sidebar.custom-sidebar,
  body:not(.layout-top-nav) .main-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  body.cms-mobile-nav-open .cms-sidebar {
    display: block;
  }

  .cms-sidebar .sidebar {
    padding: 10px 12px;
  }

  .cms-sidebar .nav-sidebar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .cms-sidebar .nav-sidebar::-webkit-scrollbar {
    display: none;
  }

  .cms-sidebar .nav-item {
    flex: 0 0 auto;
  }

  .cms-sidebar .nav-link {
    margin: 0 8px 0 0;
    white-space: nowrap;
    padding-right: 14px;
  }

  .cms-sidebar .nav-link p {
    display: inline-block;
    margin: 0;
  }

  .cms-save-button {
    width: 100%;
    margin-top: 12px;
  }

  .cms-bookings-table {
    min-width: 880px;
  }

  .cms-bookings-filters .d-flex {
    display: block !important;
  }

  .cms-bookings-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}
