:root {
  --ca-bg-1: #050608;
  --ca-bg-2: #0a0d12;
  --ca-bg-3: #11161f;
  --ca-surface: rgba(14, 20, 31, 0.9);
  --ca-surface-2: rgba(20, 28, 42, 0.92);
  --ca-border: rgba(141, 185, 255, 0.24);
  --ca-text: #ecf4ff;
  --ca-muted: #a8bfdf;
  --ca-brand: #35c7ff;
  --ca-brand-2: #2de3a2;
  --ca-violet: #818cf8;
  --ca-warning: #ffb84f;
  --ca-danger: #ff6b86;
}

.creative-admin-theme,
.creative-admin-theme .container-scroller,
.creative-admin-theme .page-body-wrapper,
.creative-admin-theme .main-panel,
.creative-admin-theme .content-wrapper {
  color: var(--ca-text);
  background:
    radial-gradient(circle at 15% -10%, rgba(84, 128, 188, 0.14), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(68, 108, 162, 0.16), transparent 40%),
    linear-gradient(160deg, var(--ca-bg-1), var(--ca-bg-2) 50%, var(--ca-bg-3));
}

.creative-admin-theme .content-wrapper {
  position: relative;
}

.creative-admin-theme .content-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.sidebar {
  background: linear-gradient(180deg, rgba(8, 12, 19, 0.98), rgba(12, 18, 28, 0.98));
  border-right: 1px solid var(--ca-border);
}

.sidebar .sidebar-brand-wrapper {
  background: linear-gradient(120deg, rgba(53, 199, 255, 0.14), rgba(129, 140, 248, 0.1));
  border-bottom: 1px solid rgba(141, 185, 255, 0.14);
}

.sidebar .nav .nav-item .nav-link,
.sidebar .nav .nav-item .menu-title,
.sidebar .nav .nav-category,
.sidebar .menu-icon {
  color: #d8e9ff;
}

.sidebar .menu-items.active > .nav-link,
.sidebar .menu-items .nav-link:hover {
  background: linear-gradient(90deg, rgba(53, 199, 255, 0.2), rgba(45, 227, 162, 0.2));
  border-left: 3px solid var(--ca-brand);
  box-shadow: inset 0 0 0 1px rgba(141, 185, 255, 0.1);
}

.sidebar .sub-menu .nav-link {
  border-radius: 8px;
}

.navbar {
  background: linear-gradient(90deg, rgba(10, 15, 24, 0.96), rgba(14, 22, 34, 0.94));
  border-bottom: 1px solid var(--ca-border);
  backdrop-filter: blur(8px);
}

.topbar-brand-note {
  margin-left: 12px;
  gap: 10px;
}

.topbar-brand-note .pill-title,
.topbar-brand-note .pill-subtitle {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.topbar-brand-note .pill-title {
  color: #052842;
  background: linear-gradient(120deg, var(--ca-brand), #9de8ff);
}

.topbar-brand-note .pill-subtitle {
  color: #dff5ff;
  background: rgba(111, 165, 255, 0.18);
  border: 1px solid rgba(145, 196, 255, 0.3);
}

.navbar .navbar-profile {
  background: rgba(14, 33, 58, 0.72);
  border: 1px solid rgba(141, 185, 255, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
}

.card {
  background: linear-gradient(165deg, var(--ca-surface), var(--ca-surface-2));
  border: 1px solid var(--ca-border);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(5, 14, 28, 0.35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  border-color: rgba(103, 202, 255, 0.42);
  box-shadow: 0 14px 36px rgba(8, 19, 34, 0.45);
}

.card .card-title,
.page-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f2f8ff;
}

.page-header {
  position: relative;
  padding: 10px 0 16px;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 120px;
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--ca-brand), var(--ca-brand-2));
}

.breadcrumb,
.breadcrumb-item,
.breadcrumb-item a,
.text-muted,
.table td,
.table th,
label,
p,
small {
  color: var(--ca-muted) !important;
}

.creative-admin-theme i.bi {
  line-height: 1;
  vertical-align: middle;
}

.creative-admin-theme .menu-icon i.bi {
  font-size: 1.06rem;
}

.table {
  color: #e8f2ff;
  width: 100%;
  min-width: 860px;
  table-layout: auto;
}

.table thead th {
  background: rgba(8, 19, 37, 0.78);
  border-bottom: 1px solid var(--ca-border);
  text-transform: uppercase;
  letter-spacing: .45px;
  font-size: 12px;
}

.table td,
.table th {
  border-color: rgba(133, 175, 236, 0.18);
  vertical-align: middle;
  padding: 0.9rem 0.85rem;
  line-height: 1.4;
}

.table-hover tbody tr:hover {
  background: rgba(53, 199, 255, 0.08);
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background: rgba(8, 18, 33, 0.68) !important;
  border: 1px solid rgba(139, 183, 246, 0.35) !important;
  color: #ecf4ff !important;
  border-radius: 10px !important;
  min-height: 46px;
  padding: 0.72rem 0.9rem !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-control::placeholder {
  color: #93add0;
}

.form-control:focus {
  border-color: var(--ca-brand) !important;
  box-shadow: 0 0 0 .2rem rgba(53, 199, 255, 0.18) !important;
}

textarea.form-control {
  min-height: 120px;
}

select.form-control {
  padding-right: 2rem !important;
}

.select2-container .select2-selection--single {
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 24px !important;
  padding-left: 12px !important;
  padding-right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
}

.btn,
.btn-lg,
.btn-sm {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0.72rem 1.05rem;
  min-height: 44px;
  border-width: 1px;
  box-shadow: 0 8px 20px rgba(3, 11, 24, 0.22);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(6, 17, 33, 0.32);
  filter: saturate(1.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 38px;
  padding: 0.5rem 0.85rem;
}

.btn-lg {
  min-height: 50px;
  padding: 0.82rem 1.25rem;
}

.btn-primary,
.btn-gradient-primary {
  background: linear-gradient(130deg, #34d1ff, #3f9dff);
  border-color: transparent;
  color: #06243e;
}

.btn-success,
.btn-gradient-success {
  background: linear-gradient(135deg, #35d39f, #1ca97b);
  border-color: transparent;
}

.btn-info,
.btn-gradient-info {
  background: linear-gradient(135deg, #4bb4ff, #3f8cff);
  border-color: transparent;
}

.btn-warning,
.btn-outline-warning {
  border-color: rgba(255, 184, 79, 0.62);
  color: #ffd79a;
}

.btn-warning:hover,
.btn-outline-warning:hover {
  background: linear-gradient(120deg, rgba(255, 184, 79, 0.3), rgba(255, 151, 77, 0.35));
  color: #fff4de;
}

.btn-danger {
  background: linear-gradient(135deg, #ff7a97, #e85f7a);
  border-color: transparent;
}

.badge {
  border-radius: 999px;
  padding: .48em .82em;
  font-size: 11px;
}

.dropdown-menu {
  background: rgba(10, 24, 43, 0.96);
  border: 1px solid var(--ca-border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.dropdown-item {
  color: #dbeaff;
}

.dropdown-item:hover {
  background: rgba(53, 199, 255, 0.16);
  color: #fff;
}

.alert {
  border-radius: 12px;
  border: 1px solid var(--ca-border);
}

.modal-content {
  background: linear-gradient(165deg, rgba(16, 35, 61, 0.96), rgba(31, 54, 87, 0.95));
  border: 1px solid var(--ca-border);
  border-radius: 14px;
}

.modal-dialog {
  margin: 1rem auto;
}

.pagination .page-link {
  background: rgba(12, 27, 48, 0.82);
  border-color: rgba(141, 185, 255, 0.34);
  color: #d9e8ff;
  min-height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(120deg, var(--ca-brand), var(--ca-brand-2));
  color: #04253d;
  border-color: transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, rgba(53, 199, 255, 0.5), rgba(45, 227, 162, 0.45));
  border-radius: 999px;
}

@media (max-width: 991px) {

  html,
  body,
  .container-scroller,
  .page-body-wrapper,
  .main-panel,
  .content-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }

  .content-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .content-wrapper .row {
    margin-left: -6px;
    margin-right: -6px;
  }

  .content-wrapper .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  .card .card-body {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .navbar .navbar-menu-wrapper {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .navbar .navbar-toggler {
    min-width: 40px;
    min-height: 40px;
    padding: 0.35rem 0.45rem;
  }

  .sidebar.sidebar-offcanvas {
    z-index: 1035;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.48);
  }

  body.offcanvas-active {
    overflow: hidden;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 70px 0 0 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1034;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(133, 175, 236, 0.2);
  }

  .table {
    min-width: 640px;
  }

  .select2-container,
  .select2-dropdown {
    max-width: 100% !important;
  }

  .select2-dropdown {
    min-width: 0 !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
  }

  .form-control,
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple {
    min-height: 42px;
    padding: 0.58rem 0.72rem !important;
  }

  img,
  .modal-dialog {
    max-width: 100%;
  }

  .modal-dialog {
    margin: 0.5rem;
    width: calc(100% - 1rem);
  }

  .modal-body,
  .modal-header,
  .modal-footer {
    padding: 0.9rem;
  }

  .table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .table td,
  .table th {
    white-space: nowrap;
    padding: 0.8rem 0.72rem;
  }

  .btn,
  .btn-lg,
  .btn-sm {
    width: auto;
    min-height: 40px;
    white-space: nowrap;
  }

  .topbar-brand-note {
    display: none !important;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .pagination .page-link {
    min-width: 36px;
    min-height: 36px;
    padding: 0.35rem 0.55rem;
  }
}

@media (min-width: 992px) {
  .table-responsive {
    overflow-x: auto;
  }

  .table td .btn,
  .table th .btn {
    white-space: nowrap;
  }
}

@media (max-width: 575px) {
  .content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }

  .card {
    border-radius: 12px;
  }

  .card .card-body {
    padding: 0.85rem;
  }

  .table {
    min-width: 560px;
  }

  .btn,
  .btn-sm,
  .btn-lg {
    font-size: 0.84rem;
  }
}