:root {
  --sidebar-bg: #ffffff;
  --sidebar-text: #5a6474;
  --sidebar-link-hover-bg: #f5f7fa;
  --sidebar-link-active-bg: #eef6ff;
  --sidebar-link-active-text: #2563eb;
  --sidebar-border: #e8eaed;
  --sidebar-logo-text: #202124;
  --page-bg: #f8f9fa;
  --content-bg: #ffffff;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  --border-color: #dadce0;
  --border-light: #e8eaed;
  --link-color: #2563eb;
  --link-hover-color: #1d4ed8;
  --primary-color: #2563eb;
  --primary-hover-color: #1d4ed8;
  --primary-rgb: 37, 99, 235;
  --primary-light-bg: #eff6ff;
  --primary-light-border: #bfdbfe;
  --secondary-color: #6b7280;
  --secondary-hover-color: #4b5563;
  --secondary-rgb: 107, 114, 128;
  --secondary-light-bg: #f9fafb;
  --secondary-light-border: #d1d5db;
  --success-color: #059669;
  --success-hover-color: #047857;
  --success-rgb: 5, 150, 105;
  --success-light-bg: #ecfdf5;
  --success-light-border: #bbf7d0;
  --danger-color: #dc2626;
  --danger-hover-color: #b91c1c;
  --danger-rgb: 220, 38, 38;
  --danger-light-bg: #fef2f2;
  --danger-light-border: #fecaca;
  --warning-color: #d97706;
  --warning-hover-color: #b45309;
  --warning-rgb: 217, 119, 6;
  --warning-light-bg: #fffbeb;
  --warning-light-border: #fed7aa;
  --info-color: #0284c7;
  --info-hover-color: #0369a1;
  --info-rgb: 2, 132, 199;
  --info-light-bg: #f0f9ff;
  --info-light-border: #bae6fd;
  --light-color: #f8f9fa;
  --light-hover-color: #e9ecef;
  --light-rgb: 248, 249, 250;
  --dark-color: #1f2937;
  --dark-hover-color: #111827;
  --dark-rgb: 31, 41, 55;
  --theme-toggle-bg: #f1f3f5;
  --theme-toggle-icon: #5f6368;
  --theme-toggle-hover-bg: #e8eaed;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 50rem;
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --input-hover-border: #9ca3af;
  --input-focus-border: var(--primary-color);
  --input-focus-shadow: rgba(37, 99, 235, 0.15);
  --input-disabled-bg: #f3f4f6;
  --input-disabled-border: #d1d5db;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --sidebar-mobile-width: 100%;
  --topbar-height: 64px;
  --topbar-mobile-height: 56px;
  --search-focus-bg: var(--sidebar-link-hover-bg);
  --dark-sidebar-bg: #202324;
  --dark-sidebar-text: #c8c3bc;
  --dark-sidebar-link-hover-bg: #303436;
  --dark-sidebar-link-active-bg: #004daa;
  --dark-sidebar-link-active-text: #e8e6e3;
  --dark-sidebar-border: #404547;
  --dark-sidebar-logo-text: #e8e6e3;
  --dark-page-bg: #181a1b;
  --dark-content-bg: #202324;
  --dark-text-primary: #e8e6e3;
  --dark-text-secondary: #c8c3bc;
  --dark-text-muted: #b2aba1;
  --dark-border-color: #545b5e;
  --dark-border-light: #404547;
  --dark-link-color: #3391ff;
  --dark-link-hover-color: #66adff;
  --dark-primary-color: #3391ff;
  --dark-primary-hover-color: #66adff;
  --dark-primary-rgb: 51, 145, 255;
  --dark-primary-light-bg: #00336e;
  --dark-primary-light-border: #3391ff;
  --dark-secondary-color: #c8c3bc;
  --dark-secondary-hover-color: #e8e6e3;
  --dark-secondary-rgb: 200, 195, 188;
  --dark-secondary-light-bg: #303436;
  --dark-secondary-light-border: #545b5e;
  --dark-success-color: #48c763;
  --dark-success-hover-color: #6ad881;
  --dark-success-rgb: 72, 199, 99;
  --dark-success-light-bg: #1c4b27;
  --dark-success-light-border: #2a703a;
  --dark-danger-color: #ff5f56;
  --dark-danger-hover-color: #ff827a;
  --dark-danger-rgb: 255, 95, 86;
  --dark-danger-light-bg: #662622;
  --dark-danger-light-border: #993933;
  --dark-warning-color: #ffc107;
  --dark-warning-hover-color: #ffd54f;
  --dark-warning-rgb: 255, 193, 7;
  --dark-warning-light-bg: #664d03;
  --dark-warning-light-border: #997404;
  --dark-info-color: #33c5ff;
  --dark-info-hover-color: #66d7ff;
  --dark-info-rgb: 51, 197, 255;
  --dark-info-light-bg: #134f66;
  --dark-info-light-border: #1f7799;
  --dark-light-color: #303436;
  --dark-light-hover-color: #404547;
  --dark-light-rgb: 48, 52, 54;
  --dark-dark-color: #e8e6e3;
  --dark-dark-hover-color: #ffffff;
  --dark-dark-rgb: 232, 230, 227;
  --dark-theme-toggle-bg: #303436;
  --dark-theme-toggle-icon: #c8c3bc;
  --dark-theme-toggle-hover-bg: #404547;
  --dark-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --dark-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.6), 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --dark-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7), 0 2px 4px -1px rgba(0, 0, 0, 0.6);
  --dark-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.6);
  --dark-input-bg: #181a1b;
  --dark-input-border: var(--dark-border-color);
  --dark-input-hover-border: var(--dark-text-muted);
  --dark-input-focus-border: var(--dark-primary-color);
  --dark-input-focus-shadow: rgba(51, 145, 255, 0.25);
  --dark-input-disabled-bg: #2a2d2f;
  --dark-input-disabled-border: #404547;
  --dark-search-focus-bg: var(--dark-sidebar-link-hover-bg);
}

::selection {
  background-color: var(--sidebar-link-active-bg);
  color: var(--text-primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:not(i) {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif !important;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body.admin-body {
  background-color: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover-color);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button,
input[type="submit"],
input[type="button"],
.btn {
  touch-action: manipulation;
}

textarea {
  resize: vertical !important;
}

li {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    width 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar-header {
  padding: 48px 24px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  transition:
    height 0.3s ease,
    padding 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sidebar-logo-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-logo img {
  max-width: 100%;
  height: auto;
  max-height: var(--topbar-height);
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition:
    max-width 0.3s ease,
    max-height 0.3s ease;
}

.sidebar-nav {
  flex-grow: 1;
  padding: 16px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar-nav .project-name {
  padding: 24px 24px 12px;
  margin-top: 20px;
  border-top: 1px solid var(--sidebar-border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  font-weight: 600;
}

.sidebar-bottom-links {
  margin-top: auto;
  padding-bottom: 16px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.main-content-wrapper {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition:
    margin-left 0.3s ease,
    width 0.3s ease;
}

.top-bar {
  height: var(--topbar-height);
  background-color: var(--content-bg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 999;
  transition:
    height 0.3s ease,
    padding 0.3s ease;
  gap: 8px;
  overflow: visible;
}

#sidebar-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
}
#sidebar-toggle-btn:focus {
  outline: none;
}
#sidebar-toggle-btn:hover {
  color: var(--primary-color);
}

.top-bar .mobile-nav-toggle {
  margin-right: 8px;
}

.top-bar .collapsible-header {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.top-bar .collapsible-header:hover {
  background-color: var(--sidebar-link-hover-bg);
  color: var(--text-primary);
}

.top-bar .collapsible-header.is-expanded {
  background-color: var(--sidebar-link-active-bg);
  color: var(--sidebar-link-active-text);
  font-weight: 600;
}

.top-bar .collapsible-header .collapse-icon {
  font-size: 0.8em;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.top-bar .collapsible-header.is-collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.top-bar .collapsible-content {
  position: absolute;
  top: calc(var(--topbar-height) - 1px);
  left: 0;
  background-color: var(--content-bg);
  border: 1px solid var(--border-light);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 6px 0;
  z-index: 1000;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease-in-out,
    visibility 0s linear 0.2s;
  overflow-y: auto;
}

.top-bar .collapsible-content.is-expanded {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease-in-out,
    visibility 0s linear 0s;
}

.top-bar .collapsible-content .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sidebar-text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.top-bar .collapsible-content .nav-link:hover {
  background-color: var(--sidebar-link-hover-bg);
  color: var(--text-primary);
}

.top-bar .collapsible-content .nav-link.active {
  background-color: var(--sidebar-link-active-bg);
  color: var(--sidebar-link-active-text);
  font-weight: 600;
}

.top-bar .collapsible-content .nav-link i {
  width: 1em;
  text-align: center;
  opacity: 0.8;
}

.top-bar .collapsible-content .nav-link.active i {
  opacity: 1;
}

.top-bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.global-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.global-search-input {
  padding: 6px 12px 6px 30px;
  font-size: 0.8125rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background-color: var(--input-bg);
  color: var(--text-primary);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    width 0.35s ease,
    background-color 0.2s ease;
  width: 260px;
  height: 34px;
  appearance: none;
  -webkit-appearance: none;
}

.global-search-input:focus {
  border-color: var(--input-focus-border);
  outline: 0;
  box-shadow: 0 0 0 2px var(--input-focus-shadow);
  width: 280px;
  background-color: var(--search-focus-bg);
}

.global-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.global-search-input:focus::placeholder {
  opacity: 0.5;
}

.global-search-input::-webkit-search-cancel-button,
.global-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.global-search-button {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 1;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.global-search-input:focus + .global-search-button {
  color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.global-search-button i {
  display: block;
}

.page-content {
  flex-grow: 1;
  padding: 32px;
  width: 100%;
  max-width: 100%;
  transition: padding 0.3s ease;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.content-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.content-header .text-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.content-footer {
  text-align: center;
  padding: 20px 32px;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border-light);
  background-color: var(--content-bg);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle:focus {
  outline: none;
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  user-select: none;
}

.btn i {
  font-size: 1em;
  margin-left: -2px;
  margin-right: 2px;
}

.btn:disabled,
.btn.disabled {
  pointer-events: none;
  opacity: 0.65;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  gap: 6px;
}

.btn-lg {
  padding: 10px 20px;
  font-size: 0.875rem;
  gap: 10px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 8px;
  width: 32px;
  height: 32px;
  gap: 0;
  border-radius: 50%;
}

.btn-icon i {
  font-size: 0.9rem;
  margin: 0;
}

.btn-icon.btn-sm {
  width: 28px;
  height: 28px;
}
.btn-icon.btn-sm i {
  font-size: 0.8rem;
}
.btn-icon.btn-lg {
  width: 40px;
  height: 40px;
}
.btn-icon.btn-lg i {
  font-size: 1.1rem;
}

.btn-xs {
  padding: 2px 6px;
  font-size: 0.7rem;
  line-height: 1.2;
  gap: 4px;
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}
.btn-secondary:hover {
  background-color: var(--secondary-hover-color);
  border-color: var(--secondary-hover-color);
  color: #fff;
}
.btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  background-color: transparent;
}
.btn-outline-secondary:hover {
  color: #fff;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: #fff;
}
.btn-success:hover {
  background-color: var(--success-hover-color);
  border-color: var(--success-hover-color);
  color: #fff;
}
.btn-outline-success {
  color: var(--success-color);
  border-color: var(--success-color);
  background-color: transparent;
}
.btn-outline-success:hover {
  color: #fff;
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: #fff;
}
.btn-danger:hover {
  background-color: var(--danger-hover-color);
  border-color: var(--danger-hover-color);
  color: #fff;
}
.btn-outline-danger {
  color: var(--danger-color);
  border-color: var(--danger-color);
  background-color: transparent;
}
.btn-outline-danger:hover {
  color: #fff;
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
  color: #fff;
}
.btn-warning:hover {
  background-color: var(--warning-hover-color);
  border-color: var(--warning-hover-color);
  color: #fff;
}
.btn-outline-warning {
  color: var(--warning-color);
  border-color: var(--warning-color);
  background-color: transparent;
}
.btn-outline-warning:hover {
  color: #fff;
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-info {
  background-color: var(--info-color);
  border-color: var(--info-color);
  color: #fff;
}
.btn-info:hover {
  background-color: var(--info-hover-color);
  border-color: var(--info-hover-color);
  color: #fff;
}
.btn-outline-info {
  color: var(--info-color);
  border-color: var(--info-color);
  background-color: transparent;
}
.btn-outline-info:hover {
  color: #fff;
  background-color: var(--info-color);
  border-color: var(--info-color);
}

.btn-light {
  background-color: var(--light-color);
  border-color: var(--border-color);
  color: var(--dark-color);
}
.btn-light:hover {
  background-color: var(--light-hover-color);
  border-color: var(--input-hover-border);
  color: var(--dark-hover-color);
}
.btn-outline-light {
  color: var(--light-color);
  border-color: var(--light-color);
  background-color: transparent;
}
.btn-outline-light:hover {
  color: var(--dark-color);
  background-color: var(--light-color);
  border-color: var(--light-color);
}

.btn-dark {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  color: #fff;
}
.btn-dark:hover {
  background-color: var(--dark-hover-color);
  border-color: var(--dark-hover-color);
  color: #fff;
}
.btn-outline-dark {
  color: var(--dark-color);
  border-color: var(--dark-color);
  background-color: transparent;
}
.btn-outline-dark:hover {
  color: #fff;
  background-color: var(--dark-color);
  border-color: var(--dark-color);
}

.btn-unarchive,
.btn-delete,
.btn-edit,
.btn-view,
.btn-archive,
.btn-publish-staged,
.btn-download {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-unarchive:hover {
  background-color: var(--success-light-bg);
  color: var(--success-hover-color);
}

.btn-delete:hover {
  background-color: var(--danger-light-bg);
  color: var(--danger-color);
}

.btn-edit:hover {
  background-color: var(--warning-light-bg);
  color: var(--warning-color);
}

.btn-view:hover {
  background-color: var(--success-light-bg);
  color: var(--success-color);
}

.btn-archive:hover {
  background-color: var(--warning-light-bg);
  color: var(--warning-color);
}

.btn-publish-staged {
  color: var(--success-color);
}

.btn-publish-staged:hover {
  background-color: var(--success-light-bg);
  color: var(--success-hover-color);
}

.btn-download:hover {
  background-color: var(--info-light-bg);
  color: var(--info-color);
}

.btn-view-details i {
  margin: 0;
}

.card {
  background-color: var(--content-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.card-header {
  padding: 16px 20px;
  margin-bottom: 0;
  background-color: var(--content-bg);
  border-bottom: 1px solid var(--border-light);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.card-header:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-header + .card-body {
  padding-top: 20px;
}

.card-body {
  flex: 1 1 auto;
  padding: 20px;
}
.card-body ul > li:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.card-footer {
  padding: 12px 20px;
  background-color: var(--page-bg);
  border-top: 1px solid var(--border-light);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.card-footer:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.data-card {
  overflow: hidden;
  border: 1px solid var(--border-light);
  width: 100%;
}

.form-card {
  padding: 28px 32px;
}

.billing-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  margin: 0 auto;
}

.billing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.current-plan-card {
  background: var(--content-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.plan-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.plan-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.status-badge {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-active {
  background: var(--success-light-bg);
  color: var(--success-color);
}

.status-canceled,
.status-inactive {
  background: var(--danger-light-bg);
  color: var(--danger-color);
}

.status-past_due {
  background: var(--warning-light-bg);
  color: var(--warning-color);
}

.plan-price {
  text-align: center;
  margin-bottom: 24px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-features {
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.plan-renewal {
  margin-bottom: 24px;
  padding: 12px;
  background: var(--secondary-light-bg);
  border-radius: var(--radius-sm);
  text-align: center;
}

.renewal-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.manage-billing-form {
  margin: 0;
}

.billing-summary-card {
  background: var(--content-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.billing-summary-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px 0;
}

.usage-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.usage-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.stat-progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.stat-progress.domain-progress {
  background: #3b82f6;
}

.stat-progress.webtech-progress {
  background: #10b981;
}

.stat-progress.ip-progress {
  background: #06b6d4;
}

.stat-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
}

.billing-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.billing-section {
  background: var(--content-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.plan-card {
  background: var(--content-bg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.plan-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.popular-plan {
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.current-plan {
  border-color: var(--success-color);
  background: var(--success-light-bg);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.plan-badge:not(.current) {
  background: var(--primary-color);
}

.plan-badge.current {
  background: var(--success-color);
}

.plan-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-pricing {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.period {
  font-size: 1rem;
  color: var(--text-muted);
}

.plan-card-body {
  flex-grow: 1;
  margin-bottom: 24px;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.plan-features-list i {
  color: var(--success-color);
  font-size: 0.75rem;
}

.plan-card-footer {
  margin-top: auto;
}

.billing-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.billing-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--secondary-light-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--secondary-light-border);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.info-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.security-badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.security-badge {
  padding: 4px 8px;
  background: var(--success-light-bg);
  color: var(--success-color);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.data-table {
  width: 100%;
  border: none;
  border-spacing: 0;
  border-collapse: separate;
  min-width: 650px;
}

.data-table th,
.data-table td {
  padding: 12px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  font-size: 0.8125rem;
}

.data-table td {
  color: var(--text-secondary);
}

.data-table td:first-child {
  white-space: normal;
  font-weight: 500;
  color: var(--text-primary);
}

.data-table thead th {
  background-color: var(--content-bg);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  border-bottom-width: 1px;
  border-color: var(--border-color);
  position: sticky;
  top: 0;
}

.data-table thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.data-table thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background-color: var(--sidebar-link-hover-bg);
}

.data-table th .sort-icon {
  display: inline-block;
  width: 1em;
  text-align: center;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  margin-left: 10px;
}

.data-table th:hover .sort-icon {
  opacity: 1;
}

.data-table th[data-sort-key] .sort-icon i.fa-sort-up,
.data-table th[data-sort-key] .sort-icon i.fa-sort-down {
  opacity: 1;
}

.highlight-blink-key-row {
  animation: blink-key-row-highlight 0.4s linear 0s 6 alternate;
  z-index: 2;
  position: relative;
}

@keyframes blink-key-row-highlight {
  0% {
    background-color: var(--primary-light-bg);
    box-shadow: 0 0 0 2px var(--primary-light-border);
  }
  100% {
    background-color: var(--sidebar-link-active-bg);
    box-shadow: 0 0 0 2px var(--primary-color);
  }
}

body.dark-mode .highlight-blink-key-row {
  animation: blink-key-row-highlight-dark 0.4s linear 0s 6 alternate;
}

@keyframes blink-key-row-highlight-dark {
  0% {
    background-color: #22304a;
    box-shadow: 0 0 0 2px #60a5fa;
  }
  100% {
    background-color: #1e293b;
    box-shadow: 0 0 0 2px #3b82f6;
  }
}

.actions-column {
  width: 1%;
  text-align: right;
}

.actions-cell {
  display: flex;
  gap: 0px;
  justify-content: flex-start;
}

.checkbox-column {
  width: 1%;
  padding-right: 10px !important;
  padding-left: 20px !important;
  text-align: center;
}

.checkbox-column input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.entry-form {
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 0;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.8125rem;
}

.form-group label .required {
  color: var(--danger-color);
}

.form-control {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--input-bg);
  background-clip: padding-box;
  border: 1px solid var(--input-border);
  appearance: none;
  border-radius: var(--radius-sm);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-control:hover {
  border-color: var(--input-hover-border);
}

.form-control:focus {
  border-color: var(--input-focus-border);
  outline: 0;
  box-shadow: 0 0 0 2px var(--input-focus-shadow);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: var(--input-disabled-bg);
  border-color: var(--input-disabled-border);
  opacity: 1;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}
select.form-control:disabled {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23adb5bd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

textarea.form-control {
  min-height: 180px;
  line-height: 1.6;
}

.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: var(--success-color);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23059669' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
  border-color: var(--success-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--success-rgb), 0.25);
}
textarea.form-control.is-valid,
.was-validated textarea.form-control:valid {
  padding-right: calc(1.5em + 0.75rem);
  background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}
select.form-control.is-valid,
.was-validated select.form-control:valid {
  padding-right: 4.125rem;
  background-position:
    right 2.25rem center,
    center right 0.75rem;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--danger-color);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc2626' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--danger-rgb), 0.25);
}
textarea.form-control.is-invalid,
.was-validated textarea.form-control:invalid {
  padding-right: calc(1.5em + 0.75rem);
  background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}
select.form-control.is-invalid,
.was-validated select.form-control:invalid {
  padding-right: 4.125rem;
  background-position:
    right 2.25rem center,
    center right 0.75rem;
}

.form-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

.form-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-text-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}

.form-check .form-check-input {
  float: left;
  margin-left: -1.5em;
}

.form-check-input {
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: var(--input-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid var(--input-border);
  appearance: none;
  print-color-adjust: exact;
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .form-check-input {
    transition: none;
  }
}

.form-check-input[type="checkbox"] {
  border-radius: 0.25em;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:active {
  filter: brightness(90%);
}

.form-check-input:focus {
  border-color: var(--input-focus-border);
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-input[disabled] {
  pointer-events: none;
  filter: none;
  opacity: 0.5;
}
.form-check-input[disabled] ~ .form-check-label,
.form-check-input:disabled ~ .form-check-label {
  opacity: 0.5;
}

.form-check-label {
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-switch {
  padding-left: 2.8em;
}

.form-switch .form-check-input {
  width: 2.3em;
  height: 1.2em;
  margin-left: -2.8em;
  background-image: none;
  border-radius: 2em;
  position: relative;
  cursor: pointer;
  background-color: var(--border-color);
  border-color: var(--border-color);
  transition:
    background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out;
}

.form-switch .form-check-input::before {
  content: "";
  position: absolute;
  width: 0.9em;
  height: 0.9em;
  background-color: white;
  border-radius: 50%;
  top: 50%;
  left: 0.15em;
  transform: translateY(-50%);
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-switch .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  background-image: none !important;
}

.form-switch .form-check-input:checked::before {
  transform: translateY(-50%) translateX(1.1em);
}

.form-switch .form-check-input:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
  background-image: none !important;
}

.form-check.is-valid .form-check-input,
.was-validated .form-check-input:valid {
  border-color: var(--success-color);
}
.form-check.is-valid .form-check-input:checked,
.was-validated .form-check-input:valid:checked {
  background-color: var(--success-color);
}
.form-check.is-valid .form-check-label,
.was-validated .form-check-input:valid ~ .form-check-label {
  color: var(--success-color);
}
.form-check.is-valid.form-switch .form-check-input,
.was-validated .form-switch .form-check-input:valid {
  border-color: var(--success-color);
}
.form-check.is-valid.form-switch .form-check-input:checked,
.was-validated .form-switch .form-check-input:valid:checked {
  background-color: var(--success-color);
}

.form-check.is-invalid .form-check-input,
.was-validated .form-check-input:invalid {
  border-color: var(--danger-color);
}
.form-check.is-invalid .form-check-input:checked,
.was-validated .form-check-input:invalid:checked {
  background-color: var(--danger-color);
}
.form-check.is-invalid .form-check-label,
.was-validated .form-check-input:invalid ~ .form-check-label {
  color: var(--danger-color);
}
.form-check.is-invalid.form-switch .form-check-input,
.was-validated .form-switch .form-check-input:invalid {
  border-color: var(--danger-color);
}
.form-check.is-invalid.form-switch .form-check-input:checked,
.was-validated .form-switch .form-check-input:invalid:checked {
  background-color: var(--danger-color);
}

.input-group-prefix {
  display: grid;
  grid-template-columns: auto 1fr;
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background-color: var(--input-bg);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow: hidden;
}

.input-group-prefix .prefix-text {
  padding: 9px 12px;
  color: var(--text-muted);
  white-space: nowrap;
  background-color: var(--page-bg);
  border-right: 1px solid var(--border-light);
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  user-select: none;
  font-weight: 400;
}

.input-group-prefix .prefixed-input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 9px 12px;
  background-color: transparent;
  color: var(--text-primary);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
}

.input-group-prefix:focus-within {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 2px var(--input-focus-shadow);
}

.input-group-prefix .prefixed-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.char-counter {
  font-weight: 500;
  white-space: nowrap;
  margin-left: 10px;
}

.char-counter.over-limit {
  color: var(--danger-color);
  font-weight: 600;
}

.template-selector-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.form-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin-top: 0;
  margin-bottom: 24px;
}

.template-selector-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.8125rem;
}

.preview-password-group {
  flex-shrink: 0;
}

.preview-password-group .form-check-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}

.preview-password-group .form-check-input {
  margin-top: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.preview-password-field {
  display: none;
  width: auto;
  min-width: 150px;
  max-width: 200px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  text-transform: capitalize;
  margin: 1px;
  white-space: nowrap;
}

.badge.rounded-pill {
  border-radius: var(--radius-pill);
  padding-right: 0.6em;
  padding-left: 0.6em;
}

.badge-primary {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}
.badge-secondary {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}
.badge-success {
  background-color: var(--success-color) !important;
  color: #fff !important;
}
.badge-danger {
  background-color: var(--danger-color) !important;
  color: #fff !important;
}
.badge-warning {
  background-color: var(--warning-color) !important;
  color: #fff !important;
}
.badge-info {
  background-color: var(--info-color) !important;
  color: #fff !important;
}
.badge-light {
  background-color: var(--light-color) !important;
  color: var(--dark-color) !important;
}
.badge-dark {
  background-color: var(--dark-color) !important;
  color: #fff !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}
.bg-success {
  background-color: var(--success-color) !important;
  color: #fff !important;
}
.bg-danger {
  background-color: var(--danger-color) !important;
  color: #fff !important;
}
.bg-warning {
  background-color: var(--warning-color) !important;
  color: #fff !important;
}
.bg-info {
  background-color: var(--info-color) !important;
  color: #fff !important;
}
.bg-light {
  background-color: var(--light-color) !important;
  color: var(--dark-color) !important;
}
.bg-dark {
  background-color: var(--dark-color) !important;
  color: #fff !important;
}

.type-badge.type-changelog {
  background-color: var(--info-light-bg);
  color: var(--info-color);
}

.type-badge.type-documentation {
  background-color: var(--success-light-bg);
  color: var(--success-color);
}

.status-badge {
  border: 1px solid transparent;
}

.status-badge.status-published {
  background-color: var(--success-light-bg);
  color: var(--success-color);
  border-color: var(--success-color);
}

.status-badge.status-draft {
  background-color: var(--theme-toggle-bg);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.status-badge.status-staged {
  background-color: var(--warning-color);
  color: #fff;
  border-color: var(--warning-hover-color);
  font-style: italic;
}

.tag-badge {
  background-color: var(--sidebar-link-hover-bg);
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.75rem;
  padding: 2px 6px;
}

.tags-cell {
  white-space: normal;
  max-width: 250px;
}

.tags-cell .badge {
  margin-bottom: 3px;
}

.entry-tags {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.entry-tags .tag-badge {
  margin-right: 6px;
  margin-bottom: 6px;
}

.action-badge {
  background-color: var(--secondary-light-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease-in-out,
    visibility 0s linear 0.2s;
  z-index: 1050;
  padding: 16px;
  overflow-y: auto;
}

.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.modal-content {
  background-color: var(--content-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  max-width: 450px;
  width: 100%;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.2s ease-in-out;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  position: relative;
  margin: auto;
}

.modal-overlay.is-visible .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.modal-title-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 5px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.modal-close-btn:hover {
  opacity: 1;
}

.modal-body {
  padding: 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

#modal-message strong {
  font-weight: 600;
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background-color: var(--page-bg);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.alert-modal-content {
  max-width: 400px;
}

#details-modal-content {
  background-color: var(--page-bg);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  max-height: 60vh;
  overflow: auto;
  font-size: 0.75rem;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  position: relative;
}

.alert-icon {
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.alert-dismissible {
  padding-right: 3rem;
}
.alert-dismissible .btn-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 1rem 1rem;
  background: none;
  border: 0;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
}
.alert-dismissible .btn-close:hover {
  opacity: 1;
}

.alert-primary {
  color: var(--primary-color);
  background-color: var(--primary-light-bg);
  border-color: var(--primary-light-border);
}
.alert-primary .alert-icon {
  color: var(--primary-color);
}

.alert-secondary {
  color: var(--secondary-color);
  background-color: var(--secondary-light-bg);
  border-color: var(--secondary-light-border);
}
.alert-secondary .alert-icon {
  color: var(--secondary-color);
}

.alert-success {
  color: var(--success-color);
  background-color: var(--success-light-bg);
  border-color: var(--success-light-border);
}
.alert-success .alert-icon {
  color: var(--success-color);
}

.alert-danger {
  color: var(--danger-color);
  background-color: var(--danger-light-bg);
  border-color: var(--danger-light-border);
}
.alert-danger .alert-icon {
  color: var(--danger-color);
}

.alert-warning {
  color: var(--warning-color);
  background-color: var(--warning-light-bg);
  border-color: var(--warning-light-border);
}
.alert-warning .alert-icon {
  color: var(--warning-color);
}

.alert-info {
  color: var(--info-color);
  background-color: var(--info-light-bg);
  border-color: var(--info-light-border);
}
.alert-info .alert-icon {
  color: var(--info-color);
}

.alert-light {
  color: var(--dark-color);
  background-color: var(--light-color);
  border-color: var(--secondary-light-border);
}
.alert-light .alert-icon {
  color: var(--dark-color);
}

.alert-dark {
  color: #fff;
  background-color: var(--dark-color);
  border-color: var(--dark-hover-color);
}
.alert-dark .alert-icon {
  color: #fff;
}

.error-summary ul {
  list-style: none;
  padding-left: 0;
  margin-top: 6px;
}

.error-summary li {
  margin-bottom: 4px;
}

.error-summary li strong {
  margin-right: 4px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-group,
.search-group {
  display: flex;
  align-items: center;
}

.filter-select,
.search-group .form-control {
  height: 37.5px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 0.8125rem;
}

.filter-select {
  font-weight: 600;
  line-height: 1.5;
  min-width: 160px;
  max-width: 240px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.search-group {
  flex-grow: 1;
  min-width: 150px;
  max-width: 250px;
}

.bulk-actions-container {
  padding: 12px 16px;
  background-color: var(--primary-light-bg);
  border: 1px solid var(--primary-light-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
  flex-wrap: wrap;
  gap: 10px;
}

#bulk-selected-count {
  font-weight: 600;
  margin-right: 4px;
}

.bulk-actions-dropdown {
  position: relative;
  display: inline-block;
}

.bulk-actions-dropdown .dropdown-toggle {
  padding: 6px 12px;
  font-size: 0.8125rem;
  background-color: var(--content-bg);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.bulk-actions-dropdown .dropdown-toggle:hover {
  background-color: var(--page-bg);
}

.bulk-actions-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--content-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 180px;
  z-index: 1001;
  margin-top: 4px;
  padding: 8px 0;
  list-style: none;
}

.bulk-actions-dropdown .dropdown-menu.show {
  display: block;
}

.bulk-actions-dropdown .dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.875rem;
}

.bulk-actions-dropdown .dropdown-item:hover {
  background-color: var(--sidebar-link-hover-bg);
  color: var(--text-primary);
}

.bulk-actions-dropdown .dropdown-divider {
  height: 1px;
  margin: 8px 0;
  overflow: hidden;
  background-color: var(--border-light);
}

.bulk-actions-dropdown .dropdown-item.action-delete {
  color: var(--danger-color);
}

.bulk-actions-dropdown .dropdown-item.action-delete:hover {
  background-color: var(--danger-light-bg);
  color: var(--danger-hover-color);
}

.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-controls.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background-color: var(--page-bg);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.page-info-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-controls .btn {
  font-size: 0.8125rem;
  padding: 6px 12px;
}

.pagination-controls .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty-state-card {
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-style: dashed;
  border-color: var(--border-color);
  background-color: transparent;
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 8px;
}

.empty-state-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.empty-state-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 380px;
  line-height: 1.5;
}

.empty-state-card .btn {
  margin-top: 16px;
}

.url-feedback-message {
  font-weight: 500;
  font-size: 0.75rem;
}

.url-feedback-message.text-success {
  color: var(--success-color);
}

.url-feedback-message.text-danger {
  color: var(--danger-color);
}

.url-feedback-message.text-muted {
  color: var(--text-muted);
  font-style: italic;
}

.input-group.is-valid {
  border-color: var(--success-color) !important;
  box-shadow: 0 0 0 2px rgba(var(--success-rgb), 0.15) !important;
}

.input-group.is-invalid {
  border-color: var(--danger-color) !important;
  box-shadow: 0 0 0 2px rgba(var(--danger-rgb), 0.15) !important;
}

.input-group:focus-within {
  border-color: var(--input-focus-border) !important;
  box-shadow: 0 0 0 2px var(--input-focus-shadow) !important;
}

.error-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 40px 0;
}

.error-card {
  text-align: center;
  padding: 40px 50px;
  max-width: 600px;
  width: 100%;
  border-color: var(--border-color);
}

.error-icon {
  font-size: 4rem;
  color: var(--danger-color);
  margin-bottom: 20px;
  line-height: 1;
}

.error-page-container:has(.fa-map-signs) .error-icon {
  color: var(--warning-color);
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0px;
  line-height: 1;
}

.error-message {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 10px;
  margin-bottom: 15px;
}

.error-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.error-details {
  background-color: var(--page-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: left;
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

textarea.markdown-input {
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background-color: var(--input-bg);
  color: var(--text-primary);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

textarea.markdown-input:focus {
  border-color: var(--input-focus-border);
  outline: 0;
  box-shadow: 0 0 0 2px var(--input-focus-shadow);
}

.EasyMDEContainer {
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  background-color: var(--input-bg);
  overflow: visible;
}

.EasyMDEContainer.EasyMDE--focused {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 2px var(--input-focus-shadow);
}

.EasyMDEContainer .CodeMirror {
  border: none;
  border-radius: 0;
  background-color: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  padding: 6px 0;
}

.EasyMDEContainer .editor-toolbar {
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--page-bg);
  padding: 4px;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  overflow-x: auto;
  z-index: 100;
}

.EasyMDEContainer .editor-toolbar a {
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm);
  border: none;
  margin: 2px;
  padding: 4px 6px;
  box-shadow: none;
}

.EasyMDEContainer .editor-toolbar a.active,
.EasyMDEContainer .editor-toolbar a:hover {
  background-color: var(--border-light);
  border: none;
  color: var(--text-primary) !important;
}

.EasyMDEContainer .editor-toolbar i {
  color: var(--text-primary);
}

.EasyMDEContainer .editor-toolbar i.separator {
  color: transparent !important;
}

.EasyMDEContainer .editor-statusbar {
  color: var(--text-muted);
  background-color: var(--page-bg);
  border-top: 1px solid var(--border-light);
  font-size: 0.7rem;
  padding: 4px 8px;
  min-height: auto;
  height: auto;
  line-height: 1.4;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.CodeMirror * {
  font-family: "Roboto Mono", monospace !important;
}

.cm-s-easymde .grammar-error,
.cm-s-easymde-dark .grammar-error {
  text-decoration: underline wavy var(--warning-color);
  cursor: help;
}

.EasyMDEContainer.invalid {
  border-color: var(--danger-color) !important;
}

.EasyMDEContainer.invalid.EasyMDE--focused {
  box-shadow: 0 0 0 2px rgba(var(--danger-rgb), 0.25) !important;
}

.editor-wrapper {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

#side-by-side-preview {
  display: none;
}

.EasyMDEContainer {
  width: 100%;
  transition: width 0.3s ease;
}

.editor-wrapper.side-by-side-active .EasyMDEContainer {
  width: 50%;
}

.editor-wrapper.side-by-side-active #side-by-side-preview {
  display: block;
  width: 50%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-y: auto;
  height: auto;
}

body.dark-mode .editor-wrapper.side-by-side-active #side-by-side-preview {
  border-color: var(--dark-border-light);
  background-color: var(--dark-content-bg);
}

.EasyMDEContainer .editor-toolbar a.side-by-side {
  margin-left: 0;
}

.EasyMDEContainer .editor-toolbar a.preview {
  margin-right: 0;
}

.EasyMDEContainer .editor-toolbar a.preview + .separator {
  display: none;
}

.editor-preview {
  padding: 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.7;
  background-color: var(--content-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: auto;
  height: 100%;
  box-sizing: border-box;
}

.editor-preview > *:first-child {
  margin-top: 0;
}

.editor-preview > *:last-child {
  margin-bottom: 0;
}

.editor-preview h1,
.editor-preview h2,
.editor-preview h3,
.editor-preview h4,
.editor-preview h5,
.editor-preview h6 {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 1.5em 0 1em 0;
}

.editor-preview h1 {
  font-size: 1.875rem;
}

.editor-preview h2 {
  font-size: 1.5rem;
  padding-bottom: 0.8em;
  border-bottom: 1px solid var(--border-light);
}

.editor-preview h3 {
  font-size: 1.25rem;
}

.editor-preview h4 {
  font-size: 1.125rem;
}

.editor-preview h5 {
  font-size: 1rem;
}

.editor-preview h6 {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.editor-preview p {
  margin-bottom: 1.5em;
}

.editor-preview ul,
.editor-preview ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}

.editor-preview li {
  margin-bottom: 0.6em;
}

.editor-preview ul li::marker {
  color: var(--text-muted);
}

.editor-preview a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  word-break: break-word;
}

.editor-preview a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.editor-preview code:not(pre > code) {
  background-color: var(--page-bg);
  color: var(--text-primary);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9em;
  vertical-align: middle;
  word-break: break-all;
  white-space: pre-wrap;
}

.editor-preview pre {
  background-color: var(--page-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.editor-preview pre code.hljs {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
}

.editor-preview blockquote {
  border-left: 4px solid var(--link-color);
  padding: 0.8em 1em;
  margin: 1.5em 0;
  color: var(--text-secondary);
  background-color: var(--page-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.editor-preview blockquote p:last-child {
  margin-bottom: 0;
}

.editor-preview hr {
  border: 0;
  height: 1px;
  background-color: var(--border-light);
  margin: 2em 0;
}

.editor-preview img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  display: block;
}

.editor-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px var(--shadow-xs);
  border: 1px solid var(--border-light);
  overflow-x: auto;
  display: block;
}

.editor-preview th,
.editor-preview td {
  border: 1px solid var(--border-light);
  padding: 10px;
  text-align: left;
}

.editor-preview th {
  background-color: var(--page-bg);
  font-weight: 600;
  color: var(--text-primary);
}

body.dark-mode .editor-preview {
  background-color: var(--dark-content-bg);
  color: var(--dark-text-secondary);
  border-color: var(--dark-border-light);
}

body.dark-mode .editor-preview h1,
body.dark-mode .editor-preview h2,
body.dark-mode .editor-preview h3,
body.dark-mode .editor-preview h4,
body.dark-mode .editor-preview h5,
body.dark-mode .editor-preview h6 {
  color: var(--dark-text-primary);
}

body.dark-mode .editor-preview h2 {
  border-bottom-color: var(--dark-border-light);
}

body.dark-mode .editor-preview a {
  color: var(--dark-link-color);
}

body.dark-mode .editor-preview a:hover {
  color: var(--dark-link-hover-color);
}

body.dark-mode .editor-preview code:not(pre > code) {
  background-color: var(--dark-page-bg);
  color: var(--dark-text-primary);
}

body.dark-mode .editor-preview pre {
  background-color: var(--dark-page-bg);
  border-color: var(--dark-border-light);
}

body.dark-mode .editor-preview blockquote {
  background-color: var(--dark-page-bg);
  border-left-color: var(--dark-link-color);
}

body.dark-mode .editor-preview hr {
  background-color: var(--dark-border-light);
}

body.dark-mode .editor-preview table {
  border-color: var(--dark-border-light);
}

body.dark-mode .editor-preview th,
body.dark-mode .editor-preview td {
  border-color: var(--dark-border-light);
}

body.dark-mode .editor-preview th {
  background-color: var(--dark-page-bg);
  color: var(--dark-text-primary);
}

.theme-toggle-btn {
  background-color: var(--theme-toggle-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  padding: 4px;
  position: relative;
  width: 68px;
  height: 36px;
}

.theme-toggle-btn:hover {
  background-color: var(--theme-toggle-hover-bg);
  border-color: var(--border-color);
}

.theme-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--theme-toggle-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
}

.body:not(.dark-mode) .theme-toggle-btn .fa-sun {
  color: var(--primary-color);
  transform: scale(1.05);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  margin: 4px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link i.fa-fw {
  width: 1.1em;
  text-align: center;
  font-size: 1.1em;
  opacity: 0.8;
  flex-shrink: 0;
}

.nav-link:hover {
  background-color: var(--sidebar-link-hover-bg);
  color: var(--text-primary);
}

.nav-link.active {
  background-color: var(--sidebar-link-active-bg);
  color: var(--sidebar-link-active-text);
  font-weight: 600;
}

.nav-link.active i {
  opacity: 1;
}

.sidebar-bottom-links .nav-link {
  margin-top: 4px;
  margin-bottom: 0;
}

.sidebar-bottom-links .nav-link:hover {
  background-color: var(--sidebar-link-hover-bg);
  color: var(--text-primary);
}

.donate-button-container {
  padding: 10px 24px;
  margin-top: 8px;
}

.nav-buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.nav-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: var(--text-secondary);
  background-color: var(--content-bg);
  transition: all 0.15s ease;
  text-decoration: none;
  min-width: 150px;
}

.nav-button:hover {
  background-color: var(--page-bg);
  border-color: var(--input-hover-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.nav-button.prev {
  justify-content: flex-start;
}

.nav-button.next {
  justify-content: flex-end;
}

.nav-button i {
  font-size: 0.9em;
  margin: 0 8px;
}

.nav-button.prev i {
  margin-right: 8px;
  margin-left: 0;
}

.nav-button.next i {
  margin-left: 8px;
  margin-right: 0;
}

.nav-buttons-container > .nav-button:only-child {
  flex-grow: 0;
  min-width: 200px;
}

.nav-buttons-container > .nav-button.prev:only-child {
  justify-content: center;
}

.nav-buttons-container > .nav-button.next:only-child {
  justify-content: center;
  margin-left: auto;
}

.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: var(--border-light);
  border-radius: var(--radius-sm);
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary-color);
  transition: width 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    transition: none;
  }
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}
@keyframes progress-bar-stripes {
  0% {
    background-position-x: 1rem;
  }
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--primary-color);
  animation: spin 1s ease infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner-border,
.spinner-grow {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -0.125em;
  border-radius: 50%;
  animation: 0.75s linear infinite spinner-border;
}

.spinner-border {
  border: 0.25em solid currentColor;
  border-right-color: transparent;
}
@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.spinner-grow {
  background-color: currentColor;
  opacity: 0;
  animation-name: spinner-grow;
}
@keyframes spinner-grow {
  0% {
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: none;
  }
}

.spinner-border-sm,
.spinner-grow-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

.text-primary {
  color: var(--primary-color) !important;
}
.text-secondary {
  color: var(--secondary-color) !important;
}
.text-success {
  color: var(--success-color) !important;
}
.text-danger {
  color: var(--danger-color) !important;
}
.text-warning {
  color: var(--warning-color) !important;
}
.text-info {
  color: var(--info-color) !important;
}
.text-light {
  color: var(--light-color) !important;
}
.text-dark {
  color: var(--dark-color) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-white {
  color: #fff !important;
}

.accordion .accordion-item {
  background-color: var(--content-bg);
  border: 1px solid var(--border-light);
}
.accordion .accordion-item:first-of-type {
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.accordion .accordion-item:first-of-type .accordion-button {
  border-top-left-radius: calc(var(--radius-md) - 1px);
  border-top-right-radius: calc(var(--radius-md) - 1px);
}
.accordion .accordion-item:not(:first-of-type) {
  border-top: 0;
}
.accordion .accordion-item:last-of-type {
  border-bottom-right-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.accordion .accordion-item:last-of-type .accordion-button.collapsed {
  border-bottom-right-radius: calc(var(--radius-md) - 1px);
  border-bottom-left-radius: calc(var(--radius-md) - 1px);
}
.accordion .accordion-item:last-of-type .accordion-collapse {
  border-bottom-right-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
  background-color: var(--content-bg);
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out,
    border-radius 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .accordion-button {
    transition: none;
  }
}
.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--sidebar-link-active-bg);
  box-shadow: inset 0 -1px 0 var(--border-light);
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}
.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231f2937'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .accordion-button::after {
    transition: none;
  }
}
.accordion-button:hover {
  z-index: 2;
}
.accordion-button:focus {
  z-index: 3;
  border-color: var(--input-focus-border);
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

.accordion-collapse {
  display: none;
}
.accordion-collapse.show {
  display: block;
}

.accordion-body {
  padding: 1rem 1.25rem;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  border-bottom: 1px solid var(--border-color);
}
.nav-tabs .nav-link {
  background: none;
  border: 1px solid transparent;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  color: var(--link-color);
  padding: 0.5rem 1rem;
  margin: 0 2px;
}
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: var(--border-light) var(--border-light) var(--border-color);
  isolation: isolate;
  color: var(--link-hover-color);
}
.nav-tabs .nav-link.disabled {
  color: var(--text-muted);
  background-color: transparent;
  border-color: transparent;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--text-primary);
  background-color: var(--content-bg);
  border-color: var(--border-color) var(--border-color) var(--content-bg);
  font-weight: 600;
}

.tab-content > .tab-pane {
  display: none;
}
.tab-content > .active {
  display: block;
}

.hidden {
  display: none !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y, 0));
  margin-right: calc(-0.5 * var(--bs-gutter-x, 24px));
  margin-left: calc(-0.5 * var(--bs-gutter-x, 24px));
}
.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x, 24px) * 0.5);
  padding-left: calc(var(--bs-gutter-x, 24px) * 0.5);
  margin-top: var(--bs-gutter-y, 0);
}

.col {
  flex: 1 0 0%;
  padding-right: 12px;
  padding-left: 12px;
}

.m-0 {
  margin: 0 !important;
}
.m-1 {
  margin: 4px !important;
}
.m-2 {
  margin: 8px !important;
}
.m-3 {
  margin: 12px !important;
}
.m-4 {
  margin: 16px !important;
}
.m-5 {
  margin: 24px !important;
}
.m-auto {
  margin: auto !important;
}

.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 4px !important;
}
.mt-2 {
  margin-top: 8px !important;
}
.mt-3 {
  margin-top: 12px !important;
}
.mt-4 {
  margin-top: 16px !important;
}
.mt-5 {
  margin-top: 24px !important;
}
.mt-auto {
  margin-top: auto !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 4px !important;
}
.mb-2 {
  margin-bottom: 8px !important;
}
.mb-3 {
  margin-bottom: 12px !important;
}
.mb-4 {
  margin-bottom: 16px !important;
}
.mb-5 {
  margin-bottom: 24px !important;
}
.mb-auto {
  margin-bottom: auto !important;
}

.ml-0,
.ms-0 {
  margin-left: 0 !important;
}
.ml-1,
.ms-1 {
  margin-left: 4px !important;
}
.ml-2,
.ms-2 {
  margin-left: 8px !important;
}
.ml-3,
.ms-3 {
  margin-left: 12px !important;
}
.ml-4,
.ms-4 {
  margin-left: 16px !important;
}
.ml-5,
.ms-5 {
  margin-left: 24px !important;
}
.ml-auto,
.ms-auto {
  margin-left: auto !important;
}

.mr-0,
.me-0 {
  margin-right: 0 !important;
}
.mr-1,
.me-1 {
  margin-right: 4px !important;
}
.mr-2,
.me-2 {
  margin-right: 8px !important;
}
.mr-3,
.me-3 {
  margin-right: 12px !important;
}
.mr-4,
.me-4 {
  margin-right: 16px !important;
}
.mr-5,
.me-5 {
  margin-right: 24px !important;
}
.mr-auto,
.me-auto {
  margin-right: auto !important;
}

.mx-0 {
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.mx-1 {
  margin-right: 4px !important;
  margin-left: 4px !important;
}
.mx-2 {
  margin-right: 8px !important;
  margin-left: 8px !important;
}
.mx-3 {
  margin-right: 12px !important;
  margin-left: 12px !important;
}
.mx-4 {
  margin-right: 16px !important;
  margin-left: 16px !important;
}
.mx-5 {
  margin-right: 24px !important;
  margin-left: 24px !important;
}
.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.my-1 {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}
.my-2 {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}
.my-3 {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}
.my-4 {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}
.my-5 {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}
.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.p-0 {
  padding: 0 !important;
}
.p-1 {
  padding: 4px !important;
}
.p-2 {
  padding: 8px !important;
}
.p-3 {
  padding: 12px !important;
}
.p-4 {
  padding: 16px !important;
}
.p-5 {
  padding: 24px !important;
}

.pt-0 {
  padding-top: 0 !important;
}
.pt-1 {
  padding-top: 4px !important;
}
.pt-2 {
  padding-top: 8px !important;
}
.pt-3 {
  padding-top: 12px !important;
}
.pt-4 {
  padding-top: 16px !important;
}
.pt-5 {
  padding-top: 24px !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}
.pb-1 {
  padding-bottom: 4px !important;
}
.pb-2 {
  padding-bottom: 8px !important;
}
.pb-3 {
  padding-bottom: 12px !important;
}
.pb-4 {
  padding-bottom: 16px !important;
}
.pb-5 {
  padding-bottom: 24px !important;
}

.pl-0,
.ps-0 {
  padding-left: 0 !important;
}
.pl-1,
.ps-1 {
  padding-left: 4px !important;
}
.pl-2,
.ps-2 {
  padding-left: 8px !important;
}
.pl-3,
.ps-3 {
  padding-left: 12px !important;
}
.pl-4,
.ps-4 {
  padding-left: 16px !important;
}
.pl-5,
.ps-5 {
  padding-left: 24px !important;
}

.pr-0,
.pe-0 {
  padding-right: 0 !important;
}
.pr-1,
.pe-1 {
  padding-right: 4px !important;
}
.pr-2,
.pe-2 {
  padding-right: 8px !important;
}
.pr-3,
.pe-3 {
  padding-right: 12px !important;
}
.pr-4,
.pe-4 {
  padding-right: 16px !important;
}
.pr-5,
.pe-5 {
  padding-right: 24px !important;
}

.px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}
.px-1 {
  padding-right: 4px !important;
  padding-left: 4px !important;
}
.px-2 {
  padding-right: 8px !important;
  padding-left: 8px !important;
}
.px-3 {
  padding-right: 12px !important;
  padding-left: 12px !important;
}
.px-4 {
  padding-right: 16px !important;
  padding-left: 16px !important;
}
.px-5 {
  padding-right: 24px !important;
  padding-left: 24px !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.py-1 {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
.py-2 {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.py-3 {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.py-4 {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.py-5 {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.d-none {
  display: none !important;
}
.d-inline {
  display: inline !important;
}
.d-inline-block {
  display: inline-block !important;
}
.d-block {
  display: block !important;
}
.d-grid {
  display: grid !important;
}
.d-table {
  display: table !important;
}
.d-table-row {
  display: table-row !important;
}
.d-table-cell {
  display: table-cell !important;
}
.d-flex {
  display: flex !important;
}
.d-inline-flex {
  display: inline-flex !important;
}

.flex-fill {
  flex: 1 1 auto !important;
}
.flex-row {
  flex-direction: row !important;
}
.flex-column {
  flex-direction: column !important;
}
.flex-row-reverse {
  flex-direction: row-reverse !important;
}
.flex-column-reverse {
  flex-direction: column-reverse !important;
}
.flex-grow-0 {
  flex-grow: 0 !important;
}
.flex-grow-1 {
  flex-grow: 1 !important;
}
.flex-shrink-0 {
  flex-shrink: 0 !important;
}
.flex-shrink-1 {
  flex-shrink: 1 !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.flex-nowrap {
  flex-wrap: nowrap !important;
}
.flex-wrap-reverse {
  flex-wrap: wrap-reverse !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}
.justify-content-end {
  justify-content: flex-end !important;
}
.justify-content-center {
  justify-content: center !important;
}
.justify-content-between {
  justify-content: space-between !important;
}
.justify-content-around {
  justify-content: space-around !important;
}
.justify-content-evenly {
  justify-content: space-evenly !important;
}

.align-items-start {
  align-items: flex-start !important;
}
.align-items-end {
  align-items: flex-end !important;
}
.align-items-center {
  align-items: center !important;
}
.align-items-baseline {
  align-items: baseline !important;
}
.align-items-stretch {
  align-items: stretch !important;
}

.align-content-start {
  align-content: flex-start !important;
}
.align-content-end {
  align-content: flex-end !important;
}
.align-content-center {
  align-content: center !important;
}
.align-content-between {
  align-content: space-between !important;
}
.align-content-around {
  align-content: space-around !important;
}
.align-content-stretch {
  align-content: stretch !important;
}

.align-self-auto {
  align-self: auto !important;
}
.align-self-start {
  align-self: flex-start !important;
}
.align-self-end {
  align-self: flex-end !important;
}
.align-self-center {
  align-self: center !important;
}
.align-self-baseline {
  align-self: baseline !important;
}
.align-self-stretch {
  align-self: stretch !important;
}

.order-first {
  order: -1 !important;
}
.order-0 {
  order: 0 !important;
}
.order-1 {
  order: 1 !important;
}
.order-2 {
  order: 2 !important;
}
.order-3 {
  order: 3 !important;
}
.order-4 {
  order: 4 !important;
}
.order-5 {
  order: 5 !important;
}
.order-last {
  order: 6 !important;
}

.w-25 {
  width: 25% !important;
}
.w-50 {
  width: 50% !important;
}
.w-75 {
  width: 75% !important;
}
.w-100 {
  width: 100% !important;
}
.w-auto {
  width: auto !important;
}

.mw-100 {
  max-width: 100% !important;
}

.h-25 {
  height: 25% !important;
}
.h-50 {
  height: 50% !important;
}
.h-75 {
  height: 75% !important;
}
.h-100 {
  height: 100% !important;
}
.h-auto {
  height: auto !important;
}

.mh-100 {
  max-height: 100% !important;
}

.gap-0 {
  gap: 0 !important;
}
.gap-1 {
  gap: 4px !important;
}
.gap-2 {
  gap: 8px !important;
}
.gap-3 {
  gap: 12px !important;
}
.gap-4 {
  gap: 16px !important;
}
.gap-5 {
  gap: 24px !important;
}

body.dark-mode {
  --sidebar-bg: var(--dark-sidebar-bg);
  --sidebar-text: var(--dark-sidebar-text);
  --sidebar-link-hover-bg: var(--dark-sidebar-link-hover-bg);
  --sidebar-link-active-bg: var(--dark-sidebar-link-active-bg);
  --sidebar-link-active-text: var(--dark-sidebar-link-active-text);
  --sidebar-border: var(--dark-sidebar-border);
  --sidebar-logo-text: var(--dark-sidebar-logo-text);
  --page-bg: var(--dark-page-bg);
  --content-bg: var(--dark-content-bg);
  --text-primary: var(--dark-text-primary);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  --border-color: var(--dark-border-color);
  --border-light: var(--dark-border-light);
  --link-color: var(--dark-link-color);
  --link-hover-color: var(--dark-link-hover-color);
  --primary-color: var(--dark-primary-color);
  --primary-hover-color: var(--dark-primary-hover-color);
  --primary-rgb: var(--dark-primary-rgb);
  --primary-light-bg: var(--dark-primary-light-bg);
  --primary-light-border: var(--dark-primary-light-border);
  --secondary-color: var(--dark-secondary-color);
  --secondary-hover-color: var(--dark-secondary-hover-color);
  --secondary-rgb: var(--dark-secondary-rgb);
  --secondary-light-bg: var(--dark-secondary-light-bg);
  --secondary-light-border: var(--dark-secondary-light-border);
  --danger-color: var(--dark-danger-color);
  --danger-hover-color: var(--dark-danger-hover-color);
  --danger-rgb: var(--dark-danger-rgb);
  --danger-light-bg: var(--dark-danger-light-bg);
  --danger-light-border: var(--dark-danger-light-border);
  --warning-color: var(--dark-warning-color);
  --warning-hover-color: var(--dark-warning-hover-color);
  --warning-rgb: var(--dark-warning-rgb);
  --warning-light-bg: var(--dark-warning-light-bg);
  --warning-light-border: var(--dark-warning-light-border);
  --success-color: var(--dark-success-color);
  --success-hover-color: var(--dark-success-hover-color);
  --success-rgb: var(--dark-success-rgb);
  --success-light-bg: var(--dark-success-light-bg);
  --success-light-border: var(--dark-success-light-border);
  --info-color: var(--dark-info-color);
  --info-hover-color: var(--dark-info-hover-color);
  --info-rgb: var(--dark-info-rgb);
  --info-light-bg: var(--dark-info-light-bg);
  --info-light-border: var(--dark-info-light-border);
  --light-color: var(--dark-light-color);
  --light-hover-color: var(--dark-light-hover-color);
  --light-rgb: var(--dark-light-rgb);
  --dark-color: var(--dark-dark-color);
  --dark-hover-color: var(--dark-dark-hover-color);
  --dark-rgb: var(--dark-dark-rgb);
  --theme-toggle-bg: var(--dark-theme-toggle-bg);
  --theme-toggle-icon: var(--dark-theme-toggle-icon);
  --theme-toggle-hover-bg: var(--dark-theme-toggle-hover-bg);
  --shadow-xs: var(--dark-shadow-xs);
  --shadow-sm: var(--dark-shadow-sm);
  --shadow-md: var(--dark-shadow-md);
  --shadow-lg: var(--dark-shadow-lg);
  --input-bg: var(--dark-input-bg);
  --input-border: var(--dark-input-border);
  --input-hover-border: var(--dark-input-hover-border);
  --input-focus-border: var(--dark-input-focus-border);
  --input-focus-shadow: var(--dark-input-focus-shadow);
  --input-disabled-bg: var(--dark-input-disabled-bg);
  --input-disabled-border: var(--dark-input-disabled-border);
  --search-focus-bg: var(--dark-search-focus-bg);
}

body.dark-mode ::selection {
  background-color: #004daa;
  color: #e8e6e3;
}

body.dark-mode .sidebar-logo i {
  color: var(--dark-primary-color);
}

body.dark-mode .nav-link:hover {
  color: var(--dark-text-primary);
}

body.dark-mode .sidebar-bottom-links .nav-link:hover {
  color: var(--dark-text-primary);
}

body.dark-mode .theme-toggle-btn {
  border-color: var(--dark-border-light);
}

body.dark-mode .theme-toggle-btn:hover {
  border-color: var(--dark-border-color);
}

body.dark-mode .theme-toggle-btn .fa-moon {
  color: var(--dark-primary-color);
  transform: scale(1.05);
}

body.dark-mode #sidebar-toggle-btn {
  color: var(--dark-text-primary);
}
body.dark-mode #sidebar-toggle-btn:hover {
  color: var(--dark-primary-color);
}

body.dark-mode .btn-primary {
  background-color: var(--dark-primary-color);
  border-color: var(--dark-primary-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-primary:hover {
  background-color: var(--dark-primary-hover-color);
  border-color: var(--dark-primary-hover-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-outline-primary {
  color: var(--dark-primary-color);
  border-color: var(--dark-primary-color);
}
body.dark-mode .btn-outline-primary:hover {
  color: var(--dark-page-bg);
  background-color: var(--dark-primary-color);
  border-color: var(--dark-primary-color);
}

body.dark-mode .btn-secondary {
  background-color: var(--dark-secondary-color);
  border-color: var(--dark-secondary-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-secondary:hover {
  background-color: var(--dark-secondary-hover-color);
  border-color: var(--dark-secondary-hover-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-outline-secondary {
  color: var(--dark-secondary-color);
  border-color: var(--dark-secondary-color);
}
body.dark-mode .btn-outline-secondary:hover {
  color: var(--dark-page-bg);
  background-color: var(--dark-secondary-color);
  border-color: var(--dark-secondary-color);
}

body.dark-mode .btn-success {
  background-color: var(--dark-success-color);
  border-color: var(--dark-success-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-success:hover {
  background-color: var(--dark-success-hover-color);
  border-color: var(--dark-success-hover-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-outline-success {
  color: var(--dark-success-color);
  border-color: var(--dark-success-color);
}
body.dark-mode .btn-outline-success:hover {
  color: var(--dark-page-bg);
  background-color: var(--dark-success-color);
  border-color: var(--dark-success-color);
}

body.dark-mode .btn-danger {
  background-color: var(--dark-danger-color);
  border-color: var(--dark-danger-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-danger:hover {
  background-color: var(--dark-danger-hover-color);
  border-color: var(--dark-danger-hover-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-outline-danger {
  color: var(--dark-danger-color);
  border-color: var(--dark-danger-color);
}
body.dark-mode .btn-outline-danger:hover {
  color: var(--dark-page-bg);
  background-color: var(--dark-danger-color);
  border-color: var(--dark-danger-color);
}

body.dark-mode .btn-warning {
  background-color: var(--dark-warning-color);
  border-color: var(--dark-warning-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-warning:hover {
  background-color: var(--dark-warning-hover-color);
  border-color: var(--dark-warning-hover-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-outline-warning {
  color: var(--dark-warning-color);
  border-color: var(--dark-warning-color);
}
body.dark-mode .btn-outline-warning:hover {
  color: var(--dark-page-bg);
  background-color: var(--dark-warning-color);
  border-color: var(--dark-warning-color);
}

body.dark-mode .btn-info {
  background-color: var(--dark-info-color);
  border-color: var(--dark-info-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-info:hover {
  background-color: var(--dark-info-hover-color);
  border-color: var(--dark-info-hover-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-outline-info {
  color: var(--dark-info-color);
  border-color: var(--dark-info-color);
}
body.dark-mode .btn-outline-info:hover {
  color: var(--dark-page-bg);
  background-color: var(--dark-info-color);
  border-color: var(--dark-info-color);
}

body.dark-mode .btn-light {
  background-color: var(--dark-light-color);
  border-color: var(--dark-border-color);
  color: var(--dark-dark-color);
}
body.dark-mode .btn-light:hover {
  background-color: var(--dark-light-hover-color);
  border-color: var(--dark-input-hover-border);
  color: var(--dark-dark-hover-color);
}
body.dark-mode .btn-outline-light {
  color: var(--dark-light-color);
  border-color: var(--dark-light-color);
}
body.dark-mode .btn-outline-light:hover {
  color: var(--dark-page-bg);
  background-color: var(--dark-light-color);
  border-color: var(--dark-light-color);
}

body.dark-mode .btn-dark {
  background-color: var(--dark-dark-color);
  border-color: var(--dark-dark-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-dark:hover {
  background-color: var(--dark-dark-hover-color);
  border-color: var(--dark-dark-hover-color);
  color: var(--dark-page-bg);
}
body.dark-mode .btn-outline-dark {
  color: var(--dark-dark-color);
  border-color: var(--dark-dark-color);
}
body.dark-mode .btn-outline-dark:hover {
  color: var(--dark-page-bg);
  background-color: var(--dark-dark-color);
  border-color: var(--dark-dark-color);
}

body.dark-mode .btn-unarchive {
  color: var(--dark-text-secondary);
}

body.dark-mode .btn-unarchive:hover {
  background-color: var(--dark-success-light-bg);
  color: var(--dark-success-hover-color);
}
body.dark-mode .btn-delete:hover {
  background-color: var(--dark-danger-light-bg);
  color: var(--dark-danger-color);
}

body.dark-mode .btn-edit:hover {
  background-color: var(--dark-warning-light-bg);
  color: var(--dark-warning-color);
}

body.dark-mode .btn-view:hover {
  background-color: var(--dark-success-light-bg);
  color: var(--dark-success-color);
}

body.dark-mode .btn-archive:hover {
  background-color: var(--dark-warning-light-bg);
  color: var(--dark-warning-color);
}

body.dark-mode .btn-publish-staged {
  color: var(--dark-success-color);
}

body.dark-mode .btn-publish-staged:hover {
  background-color: var(--dark-success-light-bg);
  color: var(--dark-success-hover-color);
}

body.dark-mode .pagination-controls.card-footer {
  background-color: var(--dark-page-bg);
  border-top-color: var(--dark-border-light);
}

body.dark-mode .tag-badge {
  background-color: var(--dark-sidebar-link-hover-bg);
  color: var(--dark-text-secondary);
}

body.dark-mode .form-control:disabled,
body.dark-mode .form-control[readonly] {
  background-color: var(--dark-input-disabled-bg);
  border-color: var(--dark-input-disabled-border);
}

body.dark-mode select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b2aba1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
body.dark-mode select.form-control:disabled {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

body.dark-mode .form-control.is-valid,
body.dark-mode .was-validated .form-control:valid {
  border-color: var(--dark-success-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2348c763' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}
body.dark-mode .form-control.is-valid:focus,
body.dark-mode .was-validated .form-control:valid:focus {
  border-color: var(--dark-success-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--dark-success-rgb), 0.25);
}

body.dark-mode .form-control.is-invalid,
body.dark-mode .was-validated .form-control:invalid {
  border-color: var(--dark-danger-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ff5f56'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff5f56' stroke='none'/%3e%3c/svg%3e");
}
body.dark-mode .form-control.is-invalid:focus,
body.dark-mode .was-validated .form-control:invalid:focus {
  border-color: var(--dark-danger-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--dark-danger-rgb), 0.25);
}

body.dark-mode .input-group-prefix {
  border-color: var(--dark-input-border);
  background-color: var(--dark-input-bg);
}

body.dark-mode .input-group-prefix .prefix-text {
  color: var(--dark-text-muted);
  background-color: var(--dark-page-bg);
  border-right-color: var(--dark-border-light);
}

body.dark-mode .input-group-prefix .prefixed-input {
  color: var(--dark-text-primary);
}

body.dark-mode .input-group-prefix:focus-within {
  border-color: var(--dark-input-focus-border);
  box-shadow: 0 0 0 2px var(--dark-input-focus-shadow);
}

body.dark-mode .input-group-prefix .prefixed-input::placeholder {
  color: var(--dark-text-muted);
}

body.dark-mode .cm-s-easymde .grammar-error,
body.dark-mode .cm-s-easymde-dark .grammar-error {
  text-decoration-color: var(--dark-warning-color);
}

body.dark-mode .EasyMDEContainer {
  border-color: var(--dark-input-border);
  background-color: var(--dark-input-bg);
}

body.dark-mode .EasyMDEContainer.EasyMDE--focused {
  border-color: var(--dark-input-focus-border);
  box-shadow: 0 0 0 2px var(--dark-input-focus-shadow);
}

body.dark-mode .EasyMDEContainer .CodeMirror {
  color: var(--dark-text-primary);
}

body.dark-mode .EasyMDEContainer .editor-toolbar {
  border-bottom-color: var(--dark-border-light);
  background-color: var(--dark-page-bg);
}

body.dark-mode .EasyMDEContainer .editor-toolbar a {
  color: var(--dark-text-secondary) !important;
}

body.dark-mode .EasyMDEContainer .editor-toolbar a.active,
body.dark-mode .EasyMDEContainer .editor-toolbar a:hover {
  background-color: var(--dark-border-light);
  color: var(--dark-text-primary) !important;
}

body.dark-mode .EasyMDEContainer .editor-statusbar {
  color: var(--dark-text-muted);
  background-color: var(--dark-page-bg);
  border-top-color: var(--dark-border-light);
}

body.dark-mode .EasyMDEContainer.invalid.EasyMDE--focused {
  box-shadow: 0 0 0 2px rgba(var(--dark-danger-rgb), 0.25) !important;
}

body.dark-mode .action-badge {
  background-color: var(--dark-secondary-light-bg);
  color: var(--dark-text-secondary);
  border-color: var(--dark-border-color);
}

body.dark-mode #details-modal-content {
  background-color: var(--dark-page-bg);
  border-color: var(--dark-border-light);
  color: var(--dark-text-secondary);
}

body.dark-mode .modal-footer {
  background-color: var(--dark-page-bg);
}

body.dark-mode .error-details {
  color: var(--dark-text-secondary);
}

body.dark-mode .bulk-actions-container {
  background-color: var(--dark-primary-light-bg);
  color: var(--dark-primary-color);
  border-color: var(--dark-primary-light-border);
}

body.dark-mode .bulk-actions-dropdown .dropdown-toggle {
  background-color: var(--dark-content-bg);
  border-color: var(--dark-border-color);
  color: var(--dark-text-secondary);
}

body.dark-mode .bulk-actions-dropdown .dropdown-toggle:hover {
  background-color: var(--dark-sidebar-link-hover-bg);
}

body.dark-mode .bulk-actions-dropdown .dropdown-item {
  color: var(--dark-text-primary);
}

body.dark-mode .bulk-actions-dropdown .dropdown-item:hover {
  background-color: var(--dark-sidebar-link-hover-bg);
}

body.dark-mode .bulk-actions-dropdown .dropdown-item.action-delete {
  color: var(--dark-danger-color);
}

body.dark-mode .bulk-actions-dropdown .dropdown-item.action-delete:hover {
  background-color: var(--dark-danger-light-bg);
  color: var(--dark-danger-hover-color);
}

body.dark-mode :focus-visible {
  outline-color: var(--dark-primary-color);
}

body.dark-mode .alert-primary {
  color: var(--dark-primary-color);
  background-color: var(--dark-primary-light-bg);
  border-color: var(--dark-primary-light-border);
}
body.dark-mode .alert-primary .alert-icon {
  color: var(--dark-primary-color);
}

body.dark-mode .alert-secondary {
  color: var(--dark-secondary-color);
  background-color: var(--dark-secondary-light-bg);
  border-color: var(--dark-secondary-light-border);
}
body.dark-mode .alert-secondary .alert-icon {
  color: var(--dark-secondary-color);
}

body.dark-mode .alert-danger {
  color: var(--dark-danger-color);
  background-color: var(--dark-danger-light-bg);
  border-color: var(--dark-danger-light-border);
}
body.dark-mode .alert-danger .alert-icon {
  color: var(--dark-danger-color);
}

body.dark-mode .alert-warning {
  color: var(--dark-warning-color);
  background-color: var(--dark-warning-light-bg);
  border-color: var(--dark-warning-light-border);
}
body.dark-mode .alert-warning .alert-icon {
  color: var(--dark-warning-color);
}

body.dark-mode .alert-info {
  color: var(--dark-info-color);
  background-color: var(--dark-info-light-bg);
  border-color: var(--dark-info-light-border);
}
body.dark-mode .alert-info .alert-icon {
  color: var(--dark-info-color);
}

body.dark-mode .alert-success {
  color: var(--dark-success-color);
  background-color: var(--dark-success-light-bg);
  border-color: var(--dark-success-light-border);
}
body.dark-mode .alert-success .alert-icon {
  color: var(--dark-success-color);
}

body.dark-mode .alert-light {
  color: var(--dark-text-primary);
  background-color: var(--dark-secondary-light-bg);
  border-color: var(--dark-secondary-light-border);
}
body.dark-mode .alert-light .alert-icon {
  color: var(--dark-text-primary);
}

body.dark-mode .alert-dark {
  color: var(--dark-page-bg);
  background-color: var(--dark-dark-color);
  border-color: var(--dark-dark-hover-color);
}
body.dark-mode .alert-dark .alert-icon {
  color: var(--dark-page-bg);
}

body.dark-mode .badge-primary {
  background-color: var(--dark-primary-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .badge-secondary {
  background-color: var(--dark-secondary-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .badge-success {
  background-color: var(--dark-success-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .badge-danger {
  background-color: var(--dark-danger-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .badge-warning {
  background-color: var(--dark-warning-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .badge-info {
  background-color: var(--dark-info-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .badge-light {
  background-color: var(--dark-light-color) !important;
  color: var(--dark-dark-color) !important;
}
body.dark-mode .badge-dark {
  background-color: var(--dark-dark-color) !important;
  color: var(--dark-page-bg) !important;
}

body.dark-mode .nav-buttons-container {
  border-top-color: var(--dark-border-light);
}

body.dark-mode .nav-button {
  border-color: var(--dark-border-color);
  color: var(--dark-text-secondary);
  background-color: var(--dark-content-bg);
}

body.dark-mode .nav-button:hover {
  background-color: var(--dark-page-bg);
  border-color: var(--dark-input-hover-border);
  color: var(--dark-text-primary);
  box-shadow: var(--dark-shadow-xs);
}

body.dark-mode .top-bar .collapsible-header:hover {
  background-color: var(--dark-sidebar-link-hover-bg);
  color: var(--dark-text-primary);
}

body.dark-mode .top-bar .collapsible-header.is-expanded {
  background-color: var(--dark-sidebar-link-active-bg);
  color: var(--dark-sidebar-link-active-text);
}

body.dark-mode .top-bar .collapsible-content {
  background-color: var(--dark-content-bg);
  border-color: var(--dark-border-light);
}

body.dark-mode .top-bar .collapsible-content .nav-link {
  color: var(--dark-sidebar-text);
}

body.dark-mode .top-bar .collapsible-content .nav-link:hover {
  background-color: var(--dark-sidebar-link-hover-bg);
  color: var(--dark-text-primary);
}

body.dark-mode .top-bar .collapsible-content .nav-link.active {
  background-color: var(--dark-sidebar-link-active-bg);
  color: var(--dark-sidebar-link-active-text);
}

body.dark-mode .global-search-input {
  border-color: var(--dark-input-border);
  background-color: var(--dark-input-bg);
  color: var(--dark-text-primary);
}

body.dark-mode .global-search-input:focus {
  border-color: var(--dark-input-focus-border);
  box-shadow: 0 0 0 2px var(--dark-input-focus-shadow);
  background-color: var(--dark-search-focus-bg);
}

body.dark-mode .global-search-input::placeholder {
  color: var(--dark-text-muted);
}

body.dark-mode .global-search-button {
  color: var(--dark-text-muted);
}

body.dark-mode .global-search-input:focus + .global-search-button {
  color: var(--dark-primary-color);
}

body.dark-mode .card-header {
  background-color: var(--dark-content-bg);
  border-bottom-color: var(--dark-border-light);
}
body.dark-mode .card-footer {
  background-color: var(--dark-page-bg);
  border-top-color: var(--dark-border-light);
}

body.dark-mode .form-switch .form-check-input {
  background-color: var(--dark-border-color);
  border-color: var(--dark-border-color);
}

body.dark-mode .form-switch .form-check-input::before {
  background-color: var(--dark-text-secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .form-switch .form-check-input:checked {
  background-color: var(--dark-primary-color);
  border-color: var(--dark-primary-color);
  background-image: none !important;
}

body.dark-mode .form-switch .form-check-input:checked::before {
  background-color: var(--dark-content-bg);
}

body.dark-mode .form-switch .form-check-input:focus {
  border-color: var(--dark-input-focus-border);
  box-shadow: 0 0 0 0.25rem var(--dark-input-focus-shadow);
  background-image: none !important;
}

body.dark-mode .form-check-label {
  color: var(--dark-text-primary);
}

body.dark-mode .form-check-input {
  background-color: var(--dark-input-bg);
  border-color: var(--dark-input-border);
}

body.dark-mode .form-check-input:checked {
  background-color: var(--dark-primary-color);
  border-color: var(--dark-primary-color);
}

body.dark-mode .form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23181a1b' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

body.dark-mode .form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23181a1b'/%3e%3c/svg%3e");
}

body.dark-mode .form-check.is-valid .form-check-input,
body.dark-mode .was-validated .form-check-input:valid {
  border-color: var(--dark-success-color);
}
body.dark-mode .form-check.is-valid .form-check-input:checked,
body.dark-mode .was-validated .form-check-input:valid:checked {
  background-color: var(--dark-success-color);
}
body.dark-mode .form-check.is-valid .form-check-label,
body.dark-mode .was-validated .form-check-input:valid ~ .form-check-label {
  color: var(--dark-success-color);
}
body.dark-mode .form-check.is-valid.form-switch .form-check-input,
body.dark-mode .was-validated .form-switch .form-check-input:valid {
  border-color: var(--dark-success-color);
}
body.dark-mode .form-check.is-valid.form-switch .form-check-input:checked,
body.dark-mode .was-validated .form-switch .form-check-input:valid:checked {
  background-color: var(--dark-success-color);
}

body.dark-mode .form-check.is-invalid .form-check-input,
body.dark-mode .was-validated .form-check-input:invalid {
  border-color: var(--dark-danger-color);
}
body.dark-mode .form-check.is-invalid .form-check-input:checked,
body.dark-mode .was-validated .form-check-input:invalid:checked {
  background-color: var(--dark-danger-color);
}
body.dark-mode .form-check.is-invalid .form-check-label,
body.dark-mode .was-validated .form-check-input:invalid ~ .form-check-label {
  color: var(--dark-danger-color);
}
body.dark-mode .form-check.is-invalid.form-switch .form-check-input,
body.dark-mode .was-validated .form-switch .form-check-input:invalid {
  border-color: var(--dark-danger-color);
}
body.dark-mode .form-check.is-invalid.form-switch .form-check-input:checked,
body.dark-mode .was-validated .form-switch .form-check-input:invalid:checked {
  background-color: var(--dark-danger-color);
}

body.dark-mode .progress {
  background-color: var(--dark-border-light);
}
body.dark-mode .progress-bar {
  background-color: var(--dark-primary-color);
  color: var(--dark-page-bg);
}
body.dark-mode .progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.25) 75%, transparent 75%, transparent);
}

body.dark-mode .accordion .accordion-item {
  background-color: var(--dark-content-bg);
  border-color: var(--dark-border-light);
}
body.dark-mode .accordion-button {
  color: var(--dark-text-primary);
  background-color: var(--dark-content-bg);
}
body.dark-mode .accordion-button:not(.collapsed) {
  color: var(--dark-primary-color);
  background-color: var(--dark-sidebar-link-active-bg);
  box-shadow: inset 0 -1px 0 var(--dark-border-light);
}
body.dark-mode .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233391ff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
body.dark-mode .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e8e6e3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
body.dark-mode .accordion-button:focus {
  border-color: var(--dark-input-focus-border);
  box-shadow: 0 0 0 0.25rem var(--dark-input-focus-shadow);
}

body.dark-mode .nav-tabs {
  border-bottom-color: var(--dark-border-color);
}
body.dark-mode .nav-tabs .nav-link {
  color: var(--dark-link-color);
}
body.dark-mode .nav-tabs .nav-link:hover,
body.dark-mode .nav-tabs .nav-link:focus {
  border-color: var(--dark-border-light) var(--dark-border-light) var(--dark-border-color);
  color: var(--dark-link-hover-color);
}
body.dark-mode .nav-tabs .nav-link.disabled {
  color: var(--dark-text-muted);
}
body.dark-mode .nav-tabs .nav-link.active,
body.dark-mode .nav-tabs .nav-item.show .nav-link {
  color: var(--dark-text-primary);
  background-color: var(--dark-content-bg);
  border-color: var(--dark-border-color) var(--dark-border-color) var(--dark-content-bg);
}

body.dark-mode .text-primary {
  color: var(--dark-primary-color) !important;
}
body.dark-mode .text-secondary {
  color: var(--dark-text-secondary) !important;
}
body.dark-mode .text-success {
  color: var(--dark-success-color) !important;
}
body.dark-mode .text-danger {
  color: var(--dark-danger-color) !important;
}
body.dark-mode .text-warning {
  color: var(--dark-warning-color) !important;
}
body.dark-mode .text-info {
  color: var(--dark-info-color) !important;
}
body.dark-mode .text-light {
  color: var(--dark-light-color) !important;
}
body.dark-mode .text-dark {
  color: var(--dark-dark-color) !important;
}
body.dark-mode .text-muted {
  color: var(--dark-text-muted) !important;
}
body.dark-mode .text-white {
  color: var(--dark-text-primary) !important;
}

body.dark-mode .bg-primary {
  background-color: var(--dark-primary-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .bg-secondary {
  background-color: var(--dark-secondary-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .bg-success {
  background-color: var(--dark-success-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .bg-danger {
  background-color: var(--dark-danger-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .bg-warning {
  background-color: var(--dark-warning-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .bg-info {
  background-color: var(--dark-info-color) !important;
  color: var(--dark-page-bg) !important;
}
body.dark-mode .bg-light {
  background-color: var(--dark-light-color) !important;
  color: var(--dark-dark-color) !important;
}
body.dark-mode .bg-dark {
  background-color: var(--dark-dark-color) !important;
  color: var(--dark-page-bg) !important;
}

body.dark-mode .url-feedback-message.text-success {
  color: var(--dark-success-color);
}
body.dark-mode .url-feedback-message.text-danger {
  color: var(--dark-danger-color);
}
body.dark-mode .url-feedback-message.text-muted {
  color: var(--dark-text-muted);
}
body.dark-mode .input-group.is-valid {
  border-color: var(--dark-success-color) !important;
  box-shadow: 0 0 0 2px rgba(var(--dark-success-rgb), 0.2) !important;
}
body.dark-mode .input-group.is-invalid {
  border-color: var(--dark-danger-color) !important;
  box-shadow: 0 0 0 2px rgba(var(--dark-danger-rgb), 0.2) !important;
}
body.dark-mode .input-group:focus-within {
  border-color: var(--dark-input-focus-border) !important;
  box-shadow: 0 0 0 2px var(--dark-input-focus-shadow) !important;
}

body.dark-mode .spinner {
  border-left-color: var(--dark-primary-color);
}

body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}
body.sidebar-collapsed .sidebar-header {
  padding: 0;
  justify-content: center;
}
body.sidebar-collapsed .sidebar-logo {
  gap: 0;
  width: 100%;
  justify-content: center;
}
body.sidebar-collapsed .sidebar-logo img {
  max-width: 40px;
  max-height: 40px;
  margin-left: 0;
  margin-right: 0;
}
body.sidebar-collapsed .sidebar-logo span {
  display: none;
}
body.sidebar-collapsed .sidebar-nav .nav-link {
  padding: 10px 0;
  justify-content: center;
  margin: 4px 12px;
}
body.sidebar-collapsed .sidebar-nav .nav-link span {
  display: none;
}
body.sidebar-collapsed .sidebar-nav .nav-link i.fa-fw {
  margin-right: 0;
  font-size: 1.3em;
}
body.sidebar-collapsed .sidebar-nav .project-name {
  display: none;
}
body.sidebar-collapsed .sidebar-bottom-links .nav-link {
  padding: 10px 0;
  justify-content: center;
}
body.sidebar-collapsed .sidebar-bottom-links .nav-link span {
  display: none;
}
body.sidebar-collapsed .sidebar-bottom-links .nav-link i.fa-fw {
  margin-right: 0;
  font-size: 1.3em;
}
body.sidebar-collapsed .sidebar-footer {
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
body.sidebar-collapsed .theme-toggle-btn {
  width: 36px;
}
body.sidebar-collapsed:not(.dark-mode) .theme-toggle-btn .theme-icon-wrapper:nth-child(2) {
  display: none;
}
body.sidebar-collapsed.dark-mode .theme-toggle-btn .theme-icon-wrapper:nth-child(1) {
  display: none;
}
body.sidebar-collapsed .main-content-wrapper {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}
body.sidebar-collapsed .donate-button-container {
  display: flex;
  padding: 10px 12px;
  justify-content: center;
}
body.sidebar-collapsed .donate-button-container .donate-btn {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
}
body.sidebar-collapsed .donate-button-container .donate-btn i {
  margin-left: unset;
  margin-right: unset;
}
body.sidebar-collapsed .donate-button-container .donate-btn span {
  display: none;
}

@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }
  .d-sm-inline {
    display: inline !important;
  }
  .d-sm-inline-block {
    display: inline-block !important;
  }
  .d-sm-block {
    display: block !important;
  }
  .d-sm-grid {
    display: grid !important;
  }
  .d-sm-table {
    display: table !important;
  }
  .d-sm-table-row {
    display: table-row !important;
  }
  .d-sm-table-cell {
    display: table-cell !important;
  }
  .d-sm-flex {
    display: flex !important;
  }
  .d-sm-inline-flex {
    display: inline-flex !important;
  }

  .flex-sm-fill {
    flex: 1 1 auto !important;
  }
  .flex-sm-row {
    flex-direction: row !important;
  }
  .flex-sm-column {
    flex-direction: column !important;
  }
  .flex-sm-row-reverse {
    flex-direction: row-reverse !important;
  }
  .flex-sm-column-reverse {
    flex-direction: column-reverse !important;
  }
  .flex-sm-grow-0 {
    flex-grow: 0 !important;
  }
  .flex-sm-grow-1 {
    flex-grow: 1 !important;
  }
  .flex-sm-shrink-0 {
    flex-shrink: 0 !important;
  }
  .flex-sm-shrink-1 {
    flex-shrink: 1 !important;
  }
  .flex-sm-wrap {
    flex-wrap: wrap !important;
  }
  .flex-sm-nowrap {
    flex-wrap: nowrap !important;
  }
  .flex-sm-wrap-reverse {
    flex-wrap: wrap-reverse !important;
  }

  .justify-content-sm-start {
    justify-content: flex-start !important;
  }
  .justify-content-sm-end {
    justify-content: flex-end !important;
  }
  .justify-content-sm-center {
    justify-content: center !important;
  }
  .justify-content-sm-between {
    justify-content: space-between !important;
  }
  .justify-content-sm-around {
    justify-content: space-around !important;
  }
  .justify-content-sm-evenly {
    justify-content: space-evenly !important;
  }

  .align-items-sm-start {
    align-items: flex-start !important;
  }
  .align-items-sm-end {
    align-items: flex-end !important;
  }
  .align-items-sm-center {
    align-items: center !important;
  }
  .align-items-sm-baseline {
    align-items: baseline !important;
  }
  .align-items-sm-stretch {
    align-items: stretch !important;
  }

  .align-content-sm-start {
    align-content: flex-start !important;
  }
  .align-content-sm-end {
    align-content: flex-end !important;
  }
  .align-content-sm-center {
    align-content: center !important;
  }
  .align-content-sm-between {
    align-content: space-between !important;
  }
  .align-content-sm-around {
    align-content: space-around !important;
  }
  .align-content-sm-stretch {
    align-content: stretch !important;
  }

  .align-self-sm-auto {
    align-self: auto !important;
  }
  .align-self-sm-start {
    align-self: flex-start !important;
  }
  .align-self-sm-end {
    align-self: flex-end !important;
  }
  .align-self-sm-center {
    align-self: center !important;
  }
  .align-self-sm-baseline {
    align-self: baseline !important;
  }
  .align-self-sm-stretch {
    align-self: stretch !important;
  }

  .order-sm-first {
    order: -1 !important;
  }
  .order-sm-0 {
    order: 0 !important;
  }
  .order-sm-1 {
    order: 1 !important;
  }
  .order-sm-2 {
    order: 2 !important;
  }
  .order-sm-3 {
    order: 3 !important;
  }
  .order-sm-4 {
    order: 4 !important;
  }
  .order-sm-5 {
    order: 5 !important;
  }
  .order-sm-last {
    order: 6 !important;
  }

  .m-sm-0 {
    margin: 0 !important;
  }
  .m-sm-1 {
    margin: 4px !important;
  }
  .m-sm-2 {
    margin: 8px !important;
  }
  .m-sm-3 {
    margin: 12px !important;
  }
  .m-sm-4 {
    margin: 16px !important;
  }
  .m-sm-5 {
    margin: 24px !important;
  }
  .m-sm-auto {
    margin: auto !important;
  }
  .mt-sm-0 {
    margin-top: 0 !important;
  }
  .mt-sm-1 {
    margin-top: 4px !important;
  }
  .mt-sm-2 {
    margin-top: 8px !important;
  }
  .mt-sm-3 {
    margin-top: 12px !important;
  }
  .mt-sm-4 {
    margin-top: 16px !important;
  }
  .mt-sm-5 {
    margin-top: 24px !important;
  }
  .mt-sm-auto {
    margin-top: auto !important;
  }
  .mb-sm-0 {
    margin-bottom: 0 !important;
  }
  .mb-sm-1 {
    margin-bottom: 4px !important;
  }
  .mb-sm-2 {
    margin-bottom: 8px !important;
  }
  .mb-sm-3 {
    margin-bottom: 12px !important;
  }
  .mb-sm-4 {
    margin-bottom: 16px !important;
  }
  .mb-sm-5 {
    margin-bottom: 24px !important;
  }
  .mb-sm-auto {
    margin-bottom: auto !important;
  }
  .ms-sm-0 {
    margin-left: 0 !important;
  }
  .ms-sm-1 {
    margin-left: 4px !important;
  }
  .ms-sm-2 {
    margin-left: 8px !important;
  }
  .ms-sm-3 {
    margin-left: 12px !important;
  }
  .ms-sm-4 {
    margin-left: 16px !important;
  }
  .ms-sm-5 {
    margin-left: 24px !important;
  }
  .ms-sm-auto {
    margin-left: auto !important;
  }
  .me-sm-0 {
    margin-right: 0 !important;
  }
  .me-sm-1 {
    margin-right: 4px !important;
  }
  .me-sm-2 {
    margin-right: 8px !important;
  }
  .me-sm-3 {
    margin-right: 12px !important;
  }
  .me-sm-4 {
    margin-right: 16px !important;
  }
  .me-sm-5 {
    margin-right: 24px !important;
  }
  .me-sm-auto {
    margin-right: auto !important;
  }
  .mx-sm-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .mx-sm-1 {
    margin-right: 4px !important;
    margin-left: 4px !important;
  }
  .mx-sm-2 {
    margin-right: 8px !important;
    margin-left: 8px !important;
  }
  .mx-sm-3 {
    margin-right: 12px !important;
    margin-left: 12px !important;
  }
  .mx-sm-4 {
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
  .mx-sm-5 {
    margin-right: 24px !important;
    margin-left: 24px !important;
  }
  .mx-sm-auto {
    margin-right: auto !important;
    margin-left: auto !important;
  }
  .my-sm-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .my-sm-1 {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }
  .my-sm-2 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
  .my-sm-3 {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }
  .my-sm-4 {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }
  .my-sm-5 {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
  .my-sm-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

  .p-sm-0 {
    padding: 0 !important;
  }
  .p-sm-1 {
    padding: 4px !important;
  }
  .p-sm-2 {
    padding: 8px !important;
  }
  .p-sm-3 {
    padding: 12px !important;
  }
  .p-sm-4 {
    padding: 16px !important;
  }
  .p-sm-5 {
    padding: 24px !important;
  }
  .pt-sm-0 {
    padding-top: 0 !important;
  }
  .pt-sm-1 {
    padding-top: 4px !important;
  }
  .pt-sm-2 {
    padding-top: 8px !important;
  }
  .pt-sm-3 {
    padding-top: 12px !important;
  }
  .pt-sm-4 {
    padding-top: 16px !important;
  }
  .pt-sm-5 {
    padding-top: 24px !important;
  }
  .pb-sm-0 {
    padding-bottom: 0 !important;
  }
  .pb-sm-1 {
    padding-bottom: 4px !important;
  }
  .pb-sm-2 {
    padding-bottom: 8px !important;
  }
  .pb-sm-3 {
    padding-bottom: 12px !important;
  }
  .pb-sm-4 {
    padding-bottom: 16px !important;
  }
  .pb-sm-5 {
    padding-bottom: 24px !important;
  }
  .ps-sm-0 {
    padding-left: 0 !important;
  }
  .ps-sm-1 {
    padding-left: 4px !important;
  }
  .ps-sm-2 {
    padding-left: 8px !important;
  }
  .ps-sm-3 {
    padding-left: 12px !important;
  }
  .ps-sm-4 {
    padding-left: 16px !important;
  }
  .ps-sm-5 {
    padding-left: 24px !important;
  }
  .pe-sm-0 {
    padding-right: 0 !important;
  }
  .pe-sm-1 {
    padding-right: 4px !important;
  }
  .pe-sm-2 {
    padding-right: 8px !important;
  }
  .pe-sm-3 {
    padding-right: 12px !important;
  }
  .pe-sm-4 {
    padding-right: 16px !important;
  }
  .pe-sm-5 {
    padding-right: 24px !important;
  }
  .px-sm-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  .px-sm-1 {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }
  .px-sm-2 {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
  .px-sm-3 {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
  .px-sm-4 {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
  .px-sm-5 {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }
  .py-sm-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .py-sm-1 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .py-sm-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .py-sm-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .py-sm-4 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .py-sm-5 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .gap-sm-0 {
    gap: 0 !important;
  }
  .gap-sm-1 {
    gap: 4px !important;
  }
  .gap-sm-2 {
    gap: 8px !important;
  }
  .gap-sm-3 {
    gap: 12px !important;
  }
  .gap-sm-4 {
    gap: 16px !important;
  }
  .gap-sm-5 {
    gap: 24px !important;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-group-full {
    grid-column: span 2 !important;
  }
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
  .d-md-inline {
    display: inline !important;
  }
  .d-md-inline-block {
    display: inline-block !important;
  }
  .d-md-block {
    display: block !important;
  }
  .d-md-grid {
    display: grid !important;
  }
  .d-md-table {
    display: table !important;
  }
  .d-md-table-row {
    display: table-row !important;
  }
  .d-md-table-cell {
    display: table-cell !important;
  }
  .d-md-flex {
    display: flex !important;
  }
  .d-md-inline-flex {
    display: inline-flex !important;
  }

  .flex-md-fill {
    flex: 1 1 auto !important;
  }
  .flex-md-row {
    flex-direction: row !important;
  }
  .flex-md-column {
    flex-direction: column !important;
  }
  .flex-md-row-reverse {
    flex-direction: row-reverse !important;
  }
  .flex-md-column-reverse {
    flex-direction: column-reverse !important;
  }
  .flex-md-grow-0 {
    flex-grow: 0 !important;
  }
  .flex-md-grow-1 {
    flex-grow: 1 !important;
  }
  .flex-md-shrink-0 {
    flex-shrink: 0 !important;
  }
  .flex-md-shrink-1 {
    flex-shrink: 1 !important;
  }
  .flex-md-wrap {
    flex-wrap: wrap !important;
  }
  .flex-md-nowrap {
    flex-wrap: nowrap !important;
  }
  .flex-md-wrap-reverse {
    flex-wrap: wrap-reverse !important;
  }

  .justify-content-md-start {
    justify-content: flex-start !important;
  }
  .justify-content-md-end {
    justify-content: flex-end !important;
  }
  .justify-content-md-center {
    justify-content: center !important;
  }
  .justify-content-md-between {
    justify-content: space-between !important;
  }
  .justify-content-md-around {
    justify-content: space-around !important;
  }
  .justify-content-md-evenly {
    justify-content: space-evenly !important;
  }

  .align-items-md-start {
    align-items: flex-start !important;
  }
  .align-items-md-end {
    align-items: flex-end !important;
  }
  .align-items-md-center {
    align-items: center !important;
  }
  .align-items-md-baseline {
    align-items: baseline !important;
  }
  .align-items-md-stretch {
    align-items: stretch !important;
  }

  .align-content-md-start {
    align-content: flex-start !important;
  }
  .align-content-md-end {
    align-content: flex-end !important;
  }
  .align-content-md-center {
    align-content: center !important;
  }
  .align-content-md-between {
    align-content: space-between !important;
  }
  .align-content-md-around {
    align-content: space-around !important;
  }
  .align-content-md-stretch {
    align-content: stretch !important;
  }

  .align-self-md-auto {
    align-self: auto !important;
  }
  .align-self-md-start {
    align-self: flex-start !important;
  }
  .align-self-md-end {
    align-self: flex-end !important;
  }
  .align-self-md-center {
    align-self: center !important;
  }
  .align-self-md-baseline {
    align-self: baseline !important;
  }
  .align-self-md-stretch {
    align-self: stretch !important;
  }

  .order-md-first {
    order: -1 !important;
  }
  .order-md-0 {
    order: 0 !important;
  }
  .order-md-1 {
    order: 1 !important;
  }
  .order-md-2 {
    order: 2 !important;
  }
  .order-md-3 {
    order: 3 !important;
  }
  .order-md-4 {
    order: 4 !important;
  }
  .order-md-5 {
    order: 5 !important;
  }
  .order-md-last {
    order: 6 !important;
  }

  .m-md-0 {
    margin: 0 !important;
  }
  .m-md-1 {
    margin: 4px !important;
  }
  .m-md-2 {
    margin: 8px !important;
  }
  .m-md-3 {
    margin: 12px !important;
  }
  .m-md-4 {
    margin: 16px !important;
  }
  .m-md-5 {
    margin: 24px !important;
  }
  .m-md-auto {
    margin: auto !important;
  }
  .mt-md-0 {
    margin-top: 0 !important;
  }
  .mt-md-1 {
    margin-top: 4px !important;
  }
  .mt-md-2 {
    margin-top: 8px !important;
  }
  .mt-md-3 {
    margin-top: 12px !important;
  }
  .mt-md-4 {
    margin-top: 16px !important;
  }
  .mt-md-5 {
    margin-top: 24px !important;
  }
  .mt-md-auto {
    margin-top: auto !important;
  }
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
  .mb-md-1 {
    margin-bottom: 4px !important;
  }
  .mb-md-2 {
    margin-bottom: 8px !important;
  }
  .mb-md-3 {
    margin-bottom: 12px !important;
  }
  .mb-md-4 {
    margin-bottom: 16px !important;
  }
  .mb-md-5 {
    margin-bottom: 24px !important;
  }
  .mb-md-auto {
    margin-bottom: auto !important;
  }
  .ms-md-0 {
    margin-left: 0 !important;
  }
  .ms-md-1 {
    margin-left: 4px !important;
  }
  .ms-md-2 {
    margin-left: 8px !important;
  }
  .ms-md-3 {
    margin-left: 12px !important;
  }
  .ms-md-4 {
    margin-left: 16px !important;
  }
  .ms-md-5 {
    margin-left: 24px !important;
  }
  .ms-md-auto {
    margin-left: auto !important;
  }
  .me-md-0 {
    margin-right: 0 !important;
  }
  .me-md-1 {
    margin-right: 4px !important;
  }
  .me-md-2 {
    margin-right: 8px !important;
  }
  .me-md-3 {
    margin-right: 12px !important;
  }
  .me-md-4 {
    margin-right: 16px !important;
  }
  .me-md-5 {
    margin-right: 24px !important;
  }
  .me-md-auto {
    margin-right: auto !important;
  }
  .mx-md-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .mx-md-1 {
    margin-right: 4px !important;
    margin-left: 4px !important;
  }
  .mx-md-2 {
    margin-right: 8px !important;
    margin-left: 8px !important;
  }
  .mx-md-3 {
    margin-right: 12px !important;
    margin-left: 12px !important;
  }
  .mx-md-4 {
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
  .mx-md-5 {
    margin-right: 24px !important;
    margin-left: 24px !important;
  }
  .mx-md-auto {
    margin-right: auto !important;
    margin-left: auto !important;
  }
  .my-md-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .my-md-1 {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }
  .my-md-2 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
  .my-md-3 {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }
  .my-md-4 {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }
  .my-md-5 {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
  .my-md-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

  .p-md-0 {
    padding: 0 !important;
  }
  .p-md-1 {
    padding: 4px !important;
  }
  .p-md-2 {
    padding: 8px !important;
  }
  .p-md-3 {
    padding: 12px !important;
  }
  .p-md-4 {
    padding: 16px !important;
  }
  .p-md-5 {
    padding: 24px !important;
  }
  .pt-md-0 {
    padding-top: 0 !important;
  }
  .pt-md-1 {
    padding-top: 4px !important;
  }
  .pt-md-2 {
    padding-top: 8px !important;
  }
  .pt-md-3 {
    padding-top: 12px !important;
  }
  .pt-md-4 {
    padding-top: 16px !important;
  }
  .pt-md-5 {
    padding-top: 24px !important;
  }
  .pb-md-0 {
    padding-bottom: 0 !important;
  }
  .pb-md-1 {
    padding-bottom: 4px !important;
  }
  .pb-md-2 {
    padding-bottom: 8px !important;
  }
  .pb-md-3 {
    padding-bottom: 12px !important;
  }
  .pb-md-4 {
    padding-bottom: 16px !important;
  }
  .pb-md-5 {
    padding-bottom: 24px !important;
  }
  .ps-md-0 {
    padding-left: 0 !important;
  }
  .ps-md-1 {
    padding-left: 4px !important;
  }
  .ps-md-2 {
    padding-left: 8px !important;
  }
  .ps-md-3 {
    padding-left: 12px !important;
  }
  .ps-md-4 {
    padding-left: 16px !important;
  }
  .ps-md-5 {
    padding-left: 24px !important;
  }
  .pe-md-0 {
    padding-right: 0 !important;
  }
  .pe-md-1 {
    padding-right: 4px !important;
  }
  .pe-md-2 {
    padding-right: 8px !important;
  }
  .pe-md-3 {
    padding-right: 12px !important;
  }
  .pe-md-4 {
    padding-right: 16px !important;
  }
  .pe-md-5 {
    padding-right: 24px !important;
  }
  .px-md-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  .px-md-1 {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }
  .px-md-2 {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
  .px-md-3 {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
  .px-md-4 {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
  .px-md-5 {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }
  .py-md-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .py-md-1 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .py-md-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .py-md-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .py-md-4 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .py-md-5 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .gap-md-0 {
    gap: 0 !important;
  }
  .gap-md-1 {
    gap: 4px !important;
  }
  .gap-md-2 {
    gap: 8px !important;
  }
  .gap-md-3 {
    gap: 12px !important;
  }
  .gap-md-4 {
    gap: 16px !important;
  }
  .gap-md-5 {
    gap: 24px !important;
  }

  .form-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .form-group-span-2 {
    grid-column: span 2;
  }
  .form-group-span-3 {
    grid-column: span 3;
  }
  .form-group-span-4 {
    grid-column: span 4;
  }
  .form-group-span-6 {
    grid-column: span 6;
  }
  .form-grid > .form-group {
    grid-column: span 2;
  }
  .form-group-full {
    grid-column: span 6 !important;
  }
  .form-group:has(#content) {
    grid-column: span 6;
  }
  .form-group-full.template-selector-group {
    grid-column: span 6;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }
  .d-lg-inline {
    display: inline !important;
  }
  .d-lg-inline-block {
    display: inline-block !important;
  }
  .d-lg-block {
    display: block !important;
  }
  .d-lg-grid {
    display: grid !important;
  }
  .d-lg-table {
    display: table !important;
  }
  .d-lg-table-row {
    display: table-row !important;
  }
  .d-lg-table-cell {
    display: table-cell !important;
  }
  .d-lg-flex {
    display: flex !important;
  }
  .d-lg-inline-flex {
    display: inline-flex !important;
  }

  .flex-lg-fill {
    flex: 1 1 auto !important;
  }
  .flex-lg-row {
    flex-direction: row !important;
  }
  .flex-lg-column {
    flex-direction: column !important;
  }
  .flex-lg-row-reverse {
    flex-direction: row-reverse !important;
  }
  .flex-lg-column-reverse {
    flex-direction: column-reverse !important;
  }
  .flex-lg-grow-0 {
    flex-grow: 0 !important;
  }
  .flex-lg-grow-1 {
    flex-grow: 1 !important;
  }
  .flex-lg-shrink-0 {
    flex-shrink: 0 !important;
  }
  .flex-lg-shrink-1 {
    flex-shrink: 1 !important;
  }
  .flex-lg-wrap {
    flex-wrap: wrap !important;
  }
  .flex-lg-nowrap {
    flex-wrap: nowrap !important;
  }
  .flex-lg-wrap-reverse {
    flex-wrap: wrap-reverse !important;
  }

  .justify-content-lg-start {
    justify-content: flex-start !important;
  }
  .justify-content-lg-end {
    justify-content: flex-end !important;
  }
  .justify-content-lg-center {
    justify-content: center !important;
  }
  .justify-content-lg-between {
    justify-content: space-between !important;
  }
  .justify-content-lg-around {
    justify-content: space-around !important;
  }
  .justify-content-lg-evenly {
    justify-content: space-evenly !important;
  }

  .align-items-lg-start {
    align-items: flex-start !important;
  }
  .align-items-lg-end {
    align-items: flex-end !important;
  }
  .align-items-lg-center {
    align-items: center !important;
  }
  .align-items-lg-baseline {
    align-items: baseline !important;
  }
  .align-items-lg-stretch {
    align-items: stretch !important;
  }

  .align-content-lg-start {
    align-content: flex-start !important;
  }
  .align-content-lg-end {
    align-content: flex-end !important;
  }
  .align-content-lg-center {
    align-content: center !important;
  }
  .align-content-lg-between {
    align-content: space-between !important;
  }
  .align-content-lg-around {
    align-content: space-around !important;
  }
  .align-content-lg-stretch {
    align-content: stretch !important;
  }

  .align-self-lg-auto {
    align-self: auto !important;
  }
  .align-self-lg-start {
    align-self: flex-start !important;
  }
  .align-self-lg-end {
    align-self: flex-end !important;
  }
  .align-self-lg-center {
    align-self: center !important;
  }
  .align-self-lg-baseline {
    align-self: baseline !important;
  }
  .align-self-lg-stretch {
    align-self: stretch !important;
  }

  .order-lg-first {
    order: -1 !important;
  }
  .order-lg-0 {
    order: 0 !important;
  }
  .order-lg-1 {
    order: 1 !important;
  }
  .order-lg-2 {
    order: 2 !important;
  }
  .order-lg-3 {
    order: 3 !important;
  }
  .order-lg-4 {
    order: 4 !important;
  }
  .order-lg-5 {
    order: 5 !important;
  }
  .order-lg-last {
    order: 6 !important;
  }

  .m-lg-0 {
    margin: 0 !important;
  }
  .m-lg-1 {
    margin: 4px !important;
  }
  .m-lg-2 {
    margin: 8px !important;
  }
  .m-lg-3 {
    margin: 12px !important;
  }
  .m-lg-4 {
    margin: 16px !important;
  }
  .m-lg-5 {
    margin: 24px !important;
  }
  .m-lg-auto {
    margin: auto !important;
  }
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  .mt-lg-1 {
    margin-top: 4px !important;
  }
  .mt-lg-2 {
    margin-top: 8px !important;
  }
  .mt-lg-3 {
    margin-top: 12px !important;
  }
  .mt-lg-4 {
    margin-top: 16px !important;
  }
  .mt-lg-5 {
    margin-top: 24px !important;
  }
  .mt-lg-auto {
    margin-top: auto !important;
  }
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  .mb-lg-1 {
    margin-bottom: 4px !important;
  }
  .mb-lg-2 {
    margin-bottom: 8px !important;
  }
  .mb-lg-3 {
    margin-bottom: 12px !important;
  }
  .mb-lg-4 {
    margin-bottom: 16px !important;
  }
  .mb-lg-5 {
    margin-bottom: 24px !important;
  }
  .mb-lg-auto {
    margin-bottom: auto !important;
  }
  .ms-lg-0 {
    margin-left: 0 !important;
  }
  .ms-lg-1 {
    margin-left: 4px !important;
  }
  .ms-lg-2 {
    margin-left: 8px !important;
  }
  .ms-lg-3 {
    margin-left: 12px !important;
  }
  .ms-lg-4 {
    margin-left: 16px !important;
  }
  .ms-lg-5 {
    margin-left: 24px !important;
  }
  .ms-lg-auto {
    margin-left: auto !important;
  }
  .me-lg-0 {
    margin-right: 0 !important;
  }
  .me-lg-1 {
    margin-right: 4px !important;
  }
  .me-lg-2 {
    margin-right: 8px !important;
  }
  .me-lg-3 {
    margin-right: 12px !important;
  }
  .me-lg-4 {
    margin-right: 16px !important;
  }
  .me-lg-5 {
    margin-right: 24px !important;
  }
  .me-lg-auto {
    margin-right: auto !important;
  }
  .mx-lg-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .mx-lg-1 {
    margin-right: 4px !important;
    margin-left: 4px !important;
  }
  .mx-lg-2 {
    margin-right: 8px !important;
    margin-left: 8px !important;
  }
  .mx-lg-3 {
    margin-right: 12px !important;
    margin-left: 12px !important;
  }
  .mx-lg-4 {
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
  .mx-lg-5 {
    margin-right: 24px !important;
    margin-left: 24px !important;
  }
  .mx-lg-auto {
    margin-right: auto !important;
    margin-left: auto !important;
  }
  .my-lg-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .my-lg-1 {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }
  .my-lg-2 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
  .my-lg-3 {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }
  .my-lg-4 {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }
  .my-lg-5 {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
  .my-lg-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

  .p-lg-0 {
    padding: 0 !important;
  }
  .p-lg-1 {
    padding: 4px !important;
  }
  .p-lg-2 {
    padding: 8px !important;
  }
  .p-lg-3 {
    padding: 12px !important;
  }
  .p-lg-4 {
    padding: 16px !important;
  }
  .p-lg-5 {
    padding: 24px !important;
  }
  .pt-lg-0 {
    padding-top: 0 !important;
  }
  .pt-lg-1 {
    padding-top: 4px !important;
  }
  .pt-lg-2 {
    padding-top: 8px !important;
  }
  .pt-lg-3 {
    padding-top: 12px !important;
  }
  .pt-lg-4 {
    padding-top: 16px !important;
  }
  .pt-lg-5 {
    padding-top: 24px !important;
  }
  .pb-lg-0 {
    padding-bottom: 0 !important;
  }
  .pb-lg-1 {
    padding-bottom: 4px !important;
  }
  .pb-lg-2 {
    padding-bottom: 8px !important;
  }
  .pb-lg-3 {
    padding-bottom: 12px !important;
  }
  .pb-lg-4 {
    padding-bottom: 16px !important;
  }
  .pb-lg-5 {
    padding-bottom: 24px !important;
  }
  .ps-lg-0 {
    padding-left: 0 !important;
  }
  .ps-lg-1 {
    padding-left: 4px !important;
  }
  .ps-lg-2 {
    padding-left: 8px !important;
  }
  .ps-lg-3 {
    padding-left: 12px !important;
  }
  .ps-lg-4 {
    padding-left: 16px !important;
  }
  .ps-lg-5 {
    padding-left: 24px !important;
  }
  .pe-lg-0 {
    padding-right: 0 !important;
  }
  .pe-lg-1 {
    padding-right: 4px !important;
  }
  .pe-lg-2 {
    padding-right: 8px !important;
  }
  .pe-lg-3 {
    padding-right: 12px !important;
  }
  .pe-lg-4 {
    padding-right: 16px !important;
  }
  .pe-lg-5 {
    padding-right: 24px !important;
  }
  .px-lg-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  .px-lg-1 {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }
  .px-lg-2 {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
  .px-lg-3 {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
  .px-lg-4 {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
  .px-lg-5 {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }
  .py-lg-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .py-lg-1 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .py-lg-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .py-lg-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .py-lg-4 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .py-lg-5 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .gap-lg-0 {
    gap: 0 !important;
  }
  .gap-lg-1 {
    gap: 4px !important;
  }
  .gap-lg-2 {
    gap: 8px !important;
  }
  .gap-lg-3 {
    gap: 12px !important;
  }
  .gap-lg-4 {
    gap: 16px !important;
  }
  .gap-lg-5 {
    gap: 24px !important;
  }

  .mobile-nav-toggle {
    display: none;
  }
  .page-wrapper {
    flex-direction: row;
  }
  .sidebar {
    transform: none;
  }
}

@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }
  .d-xl-inline {
    display: inline !important;
  }
  .d-xl-inline-block {
    display: inline-block !important;
  }
  .d-xl-block {
    display: block !important;
  }
  .d-xl-grid {
    display: grid !important;
  }
  .d-xl-table {
    display: table !important;
  }
  .d-xl-table-row {
    display: table-row !important;
  }
  .d-xl-table-cell {
    display: table-cell !important;
  }
  .d-xl-flex {
    display: flex !important;
  }
  .d-xl-inline-flex {
    display: inline-flex !important;
  }

  .flex-xl-fill {
    flex: 1 1 auto !important;
  }
  .flex-xl-row {
    flex-direction: row !important;
  }
  .flex-xl-column {
    flex-direction: column !important;
  }
  .flex-xl-row-reverse {
    flex-direction: row-reverse !important;
  }
  .flex-xl-column-reverse {
    flex-direction: column-reverse !important;
  }
  .flex-xl-grow-0 {
    flex-grow: 0 !important;
  }
  .flex-xl-grow-1 {
    flex-grow: 1 !important;
  }
  .flex-xl-shrink-0 {
    flex-shrink: 0 !important;
  }
  .flex-xl-shrink-1 {
    flex-shrink: 1 !important;
  }
  .flex-xl-wrap {
    flex-wrap: wrap !important;
  }
  .flex-xl-nowrap {
    flex-wrap: nowrap !important;
  }
  .flex-xl-wrap-reverse {
    flex-wrap: wrap-reverse !important;
  }

  .justify-content-xl-start {
    justify-content: flex-start !important;
  }
  .justify-content-xl-end {
    justify-content: flex-end !important;
  }
  .justify-content-xl-center {
    justify-content: center !important;
  }
  .justify-content-xl-between {
    justify-content: space-between !important;
  }
  .justify-content-xl-around {
    justify-content: space-around !important;
  }
  .justify-content-xl-evenly {
    justify-content: space-evenly !important;
  }

  .align-items-xl-start {
    align-items: flex-start !important;
  }
  .align-items-xl-end {
    align-items: flex-end !important;
  }
  .align-items-xl-center {
    align-items: center !important;
  }
  .align-items-xl-baseline {
    align-items: baseline !important;
  }
  .align-items-xl-stretch {
    align-items: stretch !important;
  }

  .align-content-xl-start {
    align-content: flex-start !important;
  }
  .align-content-xl-end {
    align-content: flex-end !important;
  }
  .align-content-xl-center {
    align-content: center !important;
  }
  .align-content-xl-between {
    align-content: space-between !important;
  }
  .align-content-xl-around {
    align-content: space-around !important;
  }
  .align-content-xl-stretch {
    align-content: stretch !important;
  }

  .align-self-xl-auto {
    align-self: auto !important;
  }
  .align-self-xl-start {
    align-self: flex-start !important;
  }
  .align-self-xl-end {
    align-self: flex-end !important;
  }
  .align-self-xl-center {
    align-self: center !important;
  }
  .align-self-xl-baseline {
    align-self: baseline !important;
  }
  .align-self-xl-stretch {
    align-self: stretch !important;
  }

  .order-xl-first {
    order: -1 !important;
  }
  .order-xl-0 {
    order: 0 !important;
  }
  .order-xl-1 {
    order: 1 !important;
  }
  .order-xl-2 {
    order: 2 !important;
  }
  .order-xl-3 {
    order: 3 !important;
  }
  .order-xl-4 {
    order: 4 !important;
  }
  .order-xl-5 {
    order: 5 !important;
  }
  .order-xl-last {
    order: 6 !important;
  }

  .m-xl-0 {
    margin: 0 !important;
  }
  .m-xl-1 {
    margin: 4px !important;
  }
  .m-xl-2 {
    margin: 8px !important;
  }
  .m-xl-3 {
    margin: 12px !important;
  }
  .m-xl-4 {
    margin: 16px !important;
  }
  .m-xl-5 {
    margin: 24px !important;
  }
  .m-xl-auto {
    margin: auto !important;
  }
  .mt-xl-0 {
    margin-top: 0 !important;
  }
  .mt-xl-1 {
    margin-top: 4px !important;
  }
  .mt-xl-2 {
    margin-top: 8px !important;
  }
  .mt-xl-3 {
    margin-top: 12px !important;
  }
  .mt-xl-4 {
    margin-top: 16px !important;
  }
  .mt-xl-5 {
    margin-top: 24px !important;
  }
  .mt-xl-auto {
    margin-top: auto !important;
  }
  .mb-xl-0 {
    margin-bottom: 0 !important;
  }
  .mb-xl-1 {
    margin-bottom: 4px !important;
  }
  .mb-xl-2 {
    margin-bottom: 8px !important;
  }
  .mb-xl-3 {
    margin-bottom: 12px !important;
  }
  .mb-xl-4 {
    margin-bottom: 16px !important;
  }
  .mb-xl-5 {
    margin-bottom: 24px !important;
  }
  .mb-xl-auto {
    margin-bottom: auto !important;
  }
  .ms-xl-0 {
    margin-left: 0 !important;
  }
  .ms-xl-1 {
    margin-left: 4px !important;
  }
  .ms-xl-2 {
    margin-left: 8px !important;
  }
  .ms-xl-3 {
    margin-left: 12px !important;
  }
  .ms-xl-4 {
    margin-left: 16px !important;
  }
  .ms-xl-5 {
    margin-left: 24px !important;
  }
  .ms-xl-auto {
    margin-left: auto !important;
  }
  .me-xl-0 {
    margin-right: 0 !important;
  }
  .me-xl-1 {
    margin-right: 4px !important;
  }
  .me-xl-2 {
    margin-right: 8px !important;
  }
  .me-xl-3 {
    margin-right: 12px !important;
  }
  .me-xl-4 {
    margin-right: 16px !important;
  }
  .me-xl-5 {
    margin-right: 24px !important;
  }
  .me-xl-auto {
    margin-right: auto !important;
  }
  .mx-xl-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .mx-xl-1 {
    margin-right: 4px !important;
    margin-left: 4px !important;
  }
  .mx-xl-2 {
    margin-right: 8px !important;
    margin-left: 8px !important;
  }
  .mx-xl-3 {
    margin-right: 12px !important;
    margin-left: 12px !important;
  }
  .mx-xl-4 {
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
  .mx-xl-5 {
    margin-right: 24px !important;
    margin-left: 24px !important;
  }
  .mx-xl-auto {
    margin-right: auto !important;
    margin-left: auto !important;
  }
  .my-xl-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .my-xl-1 {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }
  .my-xl-2 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
  .my-xl-3 {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }
  .my-xl-4 {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }
  .my-xl-5 {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
  .my-xl-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

  .p-xl-0 {
    padding: 0 !important;
  }
  .p-xl-1 {
    padding: 4px !important;
  }
  .p-xl-2 {
    padding: 8px !important;
  }
  .p-xl-3 {
    padding: 12px !important;
  }
  .p-xl-4 {
    padding: 16px !important;
  }
  .p-xl-5 {
    padding: 24px !important;
  }
  .pt-xl-0 {
    padding-top: 0 !important;
  }
  .pt-xl-1 {
    padding-top: 4px !important;
  }
  .pt-xl-2 {
    padding-top: 8px !important;
  }
  .pt-xl-3 {
    padding-top: 12px !important;
  }
  .pt-xl-4 {
    padding-top: 16px !important;
  }
  .pt-xl-5 {
    padding-top: 24px !important;
  }
  .pb-xl-0 {
    padding-bottom: 0 !important;
  }
  .pb-xl-1 {
    padding-bottom: 4px !important;
  }
  .pb-xl-2 {
    padding-bottom: 8px !important;
  }
  .pb-xl-3 {
    padding-bottom: 12px !important;
  }
  .pb-xl-4 {
    padding-bottom: 16px !important;
  }
  .pb-xl-5 {
    padding-bottom: 24px !important;
  }
  .ps-xl-0 {
    padding-left: 0 !important;
  }
  .ps-xl-1 {
    padding-left: 4px !important;
  }
  .ps-xl-2 {
    padding-left: 8px !important;
  }
  .ps-xl-3 {
    padding-left: 12px !important;
  }
  .ps-xl-4 {
    padding-left: 16px !important;
  }
  .ps-xl-5 {
    padding-left: 24px !important;
  }
  .pe-xl-0 {
    padding-right: 0 !important;
  }
  .pe-xl-1 {
    padding-right: 4px !important;
  }
  .pe-xl-2 {
    padding-right: 8px !important;
  }
  .pe-xl-3 {
    padding-right: 12px !important;
  }
  .pe-xl-4 {
    padding-right: 16px !important;
  }
  .pe-xl-5 {
    padding-right: 24px !important;
  }
  .px-xl-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  .px-xl-1 {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }
  .px-xl-2 {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
  .px-xl-3 {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
  .px-xl-4 {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
  .px-xl-5 {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }
  .py-xl-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .py-xl-1 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .py-xl-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .py-xl-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .py-xl-4 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .py-xl-5 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .gap-xl-0 {
    gap: 0 !important;
  }
  .gap-xl-1 {
    gap: 4px !important;
  }
  .gap-xl-2 {
    gap: 8px !important;
  }
  .gap-xl-3 {
    gap: 12px !important;
  }
  .gap-xl-4 {
    gap: 16px !important;
  }
  .gap-xl-5 {
    gap: 24px !important;
  }
}

@media (max-width: 1199px) {
  :root {
    --sidebar-width: 240px;
  }

  .form-card {
    padding: 24px 28px;
  }

  .page-content {
    padding: 28px;
  }
}

@media (max-width: 991.98px) {
  :root {
    --sidebar-width: 260px;
  }

  .page-wrapper {
    overflow-x: hidden;
  }

  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
    max-width: 85%;
    box-shadow: var(--shadow-sm);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  body.sidebar-collapsed .sidebar {
    width: var(--sidebar-width);
  }
  body.sidebar-collapsed .main-content-wrapper {
    margin-left: 0;
    width: 100%;
  }
  body.sidebar-collapsed .sidebar-logo img {
    max-width: 100%;
    max-height: var(--topbar-height);
  }
  body.sidebar-collapsed .sidebar-nav .nav-link span,
  body.sidebar-collapsed .sidebar-bottom-links .nav-link span,
  body.sidebar-collapsed .sidebar-nav .project-name {
    display: block;
  }
  body.sidebar-collapsed .sidebar-nav .nav-link,
  body.sidebar-collapsed .sidebar-bottom-links .nav-link {
    justify-content: flex-start;
    padding: 10px 24px;
  }
  body.sidebar-collapsed .sidebar-nav .nav-link i.fa-fw {
    font-size: 1.1em;
  }

  .main-content-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .mobile-nav-toggle {
    display: block;
  }

  #sidebar-toggle-btn {
    display: none !important;
  }

  .top-bar {
    padding: 0 16px;
    gap: 4px;
  }

  .top-bar .collapsible-header {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .top-bar .collapsible-header span {
    display: none;
  }

  .top-bar .collapsible-header .collapse-icon {
    margin-left: 0;
  }

  .mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .mobile-menu-open .overlay-backdrop {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .global-search-input:focus {
    width: 220px;
  }
}

@media (max-width: 767px) {
  :root {
    --topbar-height: var(--topbar-mobile-height);
  }

  .sidebar-header {
    height: var(--topbar-height);
  }

  .page-content {
    padding: 20px;
  }

  .top-bar {
    padding: 0 12px;
    height: var(--topbar-height);
    flex-wrap: wrap;
  }

  .top-bar-right {
    display: none;
  }

  .global-search-form {
    width: 100%;
  }

  .global-search-input {
    width: 100%;
    min-width: 0;
  }

  .global-search-input:focus {
    width: 100%;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .content-header h1 {
    font-size: 1.375rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .filter-group {
    order: 1;
    flex-grow: 1;
    margin-right: 0;
  }

  .search-group {
    order: 2;
    flex-grow: 1;
    max-width: none;
    margin-right: 0;
  }

  #refresh-entries-btn {
    order: 3;
    margin-left: auto;
  }

  .header-actions a.btn-primary {
    order: 4;
    width: 100%;
    margin-top: 8px;
  }

  .form-card {
    padding: 20px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .actions-cell .btn-icon {
    width: 28px;
    height: 28px;
  }

  .actions-cell .btn-icon i {
    font-size: 0.85rem;
  }

  .error-card {
    padding: 30px 20px;
  }

  .error-code {
    font-size: 4rem;
  }

  .error-message {
    font-size: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .filter-select {
    max-width: unset;
  }

  .pagination-controls.card-footer {
    justify-content: center;
  }

  .pagination-controls.card-footer .page-info-text {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    order: -1;
  }
}

@media (max-width: 576px) {
  .page-content {
    padding: 16px;
  }

  .form-card {
    padding: 16px;
  }

  .pagination-controls {
    justify-content: center;
    padding: 10px;
  }

  .page-info-text {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    order: -1;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-message {
    font-size: 1.25rem;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

  .actions-cell {
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-buttons-container {
    flex-direction: column;
  }

  .nav-button {
    width: 100%;
  }

  .nav-button.prev {
    justify-content: center;
  }

  .nav-button.next {
    justify-content: center;
    margin-left: 0;
  }

  .header-actions {
    gap: 10px;
  }

  .filter-group,
  .search-group {
    width: 100%;
  }

  #refresh-entries-btn {
    margin-left: 0;
    flex-grow: 1;
  }

  .header-actions a.btn-primary {
    margin-top: 0;
  }

  .global-search-input {
    font-size: 0.875rem;
  }
}

@media print {
  .sidebar,
  .top-bar,
  .sidebar-footer,
  .content-footer,
  .form-actions,
  .pagination-controls,
  .btn-primary,
  .btn,
  .header-actions,
  .bulk-actions-container,
  .mobile-nav-toggle,
  #sidebar-toggle-btn,
  .global-search-form,
  .alert-dismissible .btn-close,
  .accordion-button::after,
  .theme-toggle-btn {
    display: none !important;
  }

  .main-content-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .page-content {
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc !important;
  }
  .card-header,
  .card-footer {
    background-color: #fff !important;
  }

  body.admin-body {
    background-color: white;
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .data-table th,
  .data-table td {
    border-color: #ccc;
  }

  .badge {
    border: 1px solid #ccc;
    background-color: #fff !important;
    color: #000 !important;
  }

  .alert {
    border: 1px solid #ccc !important;
    background-color: #fff !important;
    color: #000 !important;
  }
  .alert .alert-icon {
    color: #000 !important;
  }

  .progress {
    background-color: #e9ecef !important;
  }
  .progress-bar {
    background-color: #000 !important;
  }

  .table-responsive {
    overflow: visible !important;
  }

  .d-print-none {
    display: none !important;
  }
  .d-print-inline {
    display: inline !important;
  }
  .d-print-inline-block {
    display: inline-block !important;
  }
  .d-print-block {
    display: block !important;
  }
  .d-print-grid {
    display: grid !important;
  }
  .d-print-table {
    display: table !important;
  }
  .d-print-table-row {
    display: table-row !important;
  }
  .d-print-table-cell {
    display: table-cell !important;
  }
  .d-print-flex {
    display: flex !important;
  }
  .d-print-inline-flex {
    display: inline-flex !important;
  }
}

.pricing-slider-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.slider-wrapper {
  margin: 2rem 0;
}

.credits-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
  outline: none;
  appearance: none;
  margin: 1rem 0;
}

.credits-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.credits-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-display {
  text-align: center;
  margin: 2rem 0;
}

.credits-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.price-per-credit {
  color: var(--text-muted);
  font-size: 1rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.buy-button {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  margin-top: 2rem;
}

.processing-indicator {
  display: none;
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
}
