:root {
  --md-sys-color-primary: #4f46e5;
  --md-sys-color-primary-2: #0ea5e9;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-background: #f6f8ff;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-surface-variant: #eef3ff;
  --md-sys-color-outline: #dbe4ff;
  --md-sys-color-outline-soft: #e9efff;
  --md-sys-color-text: #15213a;
  --md-sys-color-text-muted: #63708a;

  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --shadow-soft-sm: 0 4px 12px rgba(58, 76, 122, 0.08);
  --shadow-soft-md: 0 10px 30px rgba(58, 76, 122, 0.12);
  --shadow-soft-lg: 0 18px 50px rgba(58, 76, 122, 0.16);
  --shadow-glow-primary: 0 10px 32px rgba(79, 70, 229, 0.28);

  --gradient-primary: linear-gradient(135deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-primary-2) 100%);
}

html,
body {
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-text);
  font-family: Inter, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.01em;
}

.main-content,
.page,
.main-content-body {
  background-color: var(--md-sys-color-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--md-sys-color-text);
  letter-spacing: -0.01em;
}

.text-muted,
.text-muted * {
  color: var(--md-sys-color-text-muted) !important;
}

.app-header,
.main-header-container {
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid var(--md-sys-color-outline-soft);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft-sm);
}

.app-sidebar {
  background: var(--md-sys-color-surface);
  border-right: 1px solid var(--md-sys-color-outline-soft);
  box-shadow: var(--shadow-soft-sm);
}

.main-sidebar-header,
.main-sidebar {
  background: transparent !important;
}

.main-menu li a {
  border-radius: var(--radius-sm) !important;
  margin: 0.15rem 0.35rem;
  transition: all 0.2s ease;
}

.main-menu li a:hover,
.main-menu .slide.has-sub.open > a,
.main-menu .slide.active > a {
  background: var(--md-sys-color-surface-variant) !important;
}

.card,
.custom-card,
.dropdown-menu,
.modal-content,
.list-group-item,
.swal2-popup,
.offcanvas {
  background: var(--md-sys-color-surface) ;
  border: 1px solid var(--md-sys-color-outline-soft) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft-sm) !important;
}

.card:hover,
.custom-card:hover {
  box-shadow: var(--shadow-soft-md) !important;
}

.table,
.table > :not(caption) > * > * {
  background: transparent !important;
  border-color: var(--md-sys-color-outline-soft) !important;
}

.table thead th {
  color: var(--md-sys-color-text-muted);
  font-weight: 600;
}

.btn {
  border-radius: var(--radius-sm) !important;
  padding: 0.6rem 1rem;
  font-weight: 600;
  box-shadow: none !important;
}

.btn:focus,
.btn:active,
.btn-check:focus + .btn {
  box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.16) !important;
}

.btn-primary,
.bg-primary,
.badge.bg-primary {
  background: var(--gradient-primary) !important;
  border: 0 !important;
  color: var(--md-sys-color-on-primary) !important;
}

.btn-primary {
  box-shadow: var(--shadow-glow-primary) !important;
}

.btn-outline-primary {
  border-color: rgba(79, 70, 229, 0.35) !important;
  color: #3f3ac4 !important;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.form-control,
.form-select,
.form-check-input,
.choices__inner,
.choices__list--dropdown,
.input-group-text {
  background: #fff !important;
  border: 1px solid var(--md-sys-color-outline) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
}

.form-control,
.form-select,
.input-group-text,
.choices__inner {
  min-height: 46px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.choices__inner:focus,
.choices.is-focused .choices__inner {
  border-color: rgba(79, 70, 229, 0.45) !important;
  box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.12) !important;
}

.nav-link,
.dropdown-item,
.header-link {
  border-radius: var(--radius-sm);
}

.dropdown-item:hover,
.dropdown-item:focus,
.nav-link:hover,
.nav-link:focus {
  background: var(--md-sys-color-surface-variant) !important;
}

.pagination .page-link {
  border: 1px solid var(--md-sys-color-outline-soft);
  border-radius: var(--radius-sm) !important;
  margin-inline: 0.15rem;
  color: var(--md-sys-color-text);
}

.pagination .page-item.active .page-link {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.footer {
  background: transparent !important;
}

#contactus {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--md-sys-color-outline-soft);
  box-shadow: var(--shadow-soft-md) !important;
}

.authenticationscreen,
.custom-page .card-sigin {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-lg);
}

#loader {
  background: rgba(246, 248, 255, 0.8) !important;
  backdrop-filter: blur(4px);
}

@media (max-width: 992px) {
  .card,
  .custom-card,
  .dropdown-menu,
  .modal-content {
    border-radius: var(--radius-sm) !important;
  }
}