@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap");

:root {
  /* Modern Palette */
  --bg-main: #f8f9fa;
  /* Lighter, cleaner background */
  --bg-sidebar: rgba(255, 255, 255, 0.85);
  --bg-header: rgba(255, 255, 255, 0.85);
  /* Glassmorphism header */

  --color-primary: #6366f1;
  /* Indigo-500 - Modern Purple/Blue */
  --color-primary-hover: #4f46e5;
  --color-secondary: #ec4899;
  /* Pink-500 */
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  --color-text: #1e293b;
  /* Slate-800 */
  --color-text-weak: #64748b;
  /* Slate-500 */
  --color-text-weakest: #94a3b8;
  /* Slate-400 */
  --color-text-light: #ffffff;

  --border-color: #e2e8f0;
  /* Slate-200 */
  --border-color-secondary: #f1f5f9;
  --white: #ffffff;
  --light: #f8f9fa;

  /* Typography */
  --main-font: "Inter", sans-serif;
  --heading-font: "Outfit", sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Legacy overrides mapped */
  --font-xs: 10px/1.8 var(--main-font);
  --font-s: 13px/1.9 var(--main-font);
  --font-m: 16px/2 var(--main-font);
  --font-l: 20px/1.3 var(--main-font);
  --font-xl: 32px/1.6 var(--main-font);
  --font-xxl: 42px/1.1 var(--main-font);
  --font-xxxl: 80px/1.1 var(--main-font);
}

.lSub,
.lSub td,
.lSub input,
.lSub select,
.lSub .selectize-input,
.lSub .selectize-control.single .lSub .selectize-input.input-active {
  background: #ddd !important;
}

.input-suggest {
  padding: 12px;
  width: 100%;
  border-radius: 0 !important;
  height: 40px;
}

.upload-box {
  /*border: .5px solid #CCC;*/
  position: relative;
}

.order-img img {
  width: 100%;
  height: auto;
}

.login-bg {
  background: url("../images/bg.jpeg") no-repeat center right;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.image-swatch img {
  width: 80px;
  height: auto;
}

.selectize-dropdown {
  min-width: 200px !important;
}

.preview img {
  width: 60%;
  height: auto;
}

.images img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.custom-control-label {
  padding-top: 3px;
}

.cursor-pointer {
  cursor: pointer;
}

.material-icons {
  font-size: 18px !important;
}

.modal-content {
  border: 1px solid #f2f6f7;
  border-radius: 3px;
}

.modal-header {
  border: 0;
}

.modal-header .close,
.modal-header .close:hover,
.modal-header .close:focus {
  outline: 0;
  border: 0;
}

.modal-title {
  font-size: 16px;
}

.modal-body {
  padding-top: 0;
  padding-bottom: 0;
}

.modal-footer {
  border: 0;
}

.semi-bold {
  font-weight: 500 !important;
}

#goto {
  padding: 7.5px 12px;
  border: 1px solid #ced4da;
}

.btn {
  padding: 6px 12px;
}

.btn-rounded {
  border-radius: 100px !important;
  padding: 3px 20px;
}

.a-color-inherit a {
  color: inherit;
  text-decoration: none;
}

.custom-control-input:checked~.custom-control-label::before {
  color: #fff;
  border-color: rgba(78, 55, 182, 0.5);
  background-color: #7252d3;
}

/*.btn-primary, .btn-primary:focus {
  background-color: #7252D3;
  border-color: rgba(78, 55, 182, 0.5);
}

.btn-primary:hover {
  background-color: #845ae0;
  border-color: rgba(78, 55, 182, 0.5);
}*/

.card-default {
  border: 0;
}

.card-default .card-header {
  border: 0;
  background: #ffffff;
}

.card-default .card-header .card-title {
  margin: 0;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
}

.card-default .card-body {
  padding-top: 0;
}

p {
  line-height: 180%;
}

body {
  color: #353f4d;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  line-height: 16px;
  background: var(--bg-main);
}

main {
  padding-left: 260px;
  /* Sidebar width + gap */
  padding-top: 80px;
  padding-right: 20px;
  padding-bottom: 30px;
  transition: padding-left 0.3s ease;
}

header.main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color) !important;
  display: flex;
  align-items: center;
  padding: 0 30px 0 260px;
  /* Match sidebar width */
  box-shadow: var(--shadow-sm);
}

header.main .heading {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
  padding-left: 0 !important;
  /* Reset old padding */
}

header.main .profile-dropdown {
  margin-left: auto;
}

header.main .profile-dropdown .avatar {
  cursor: pointer;
}

.d-flex .right {
  margin-left: auto;
}

.d-flex .center {
  margin-right: auto;
  margin-left: auto;
}

.d-flex .left {
  margin-right: auto;
}

[class^="bi-"] {
  font-size: 18px;
}

/* Modern Sidebar */
.menu {
  position: fixed;
  top: 80px;
  /* Below header */
  left: 20px;
  bottom: 20px;
  width: 260px;
  /* Slightly wider */
  z-index: 101;
  background: rgba(255, 255, 255, 0.85);
  /* More translucent */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  /* Larger radius */
  padding: 24px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

/* Mobile Toggle Logic */
.menu:hover {
  /* No hover expansion needed by default */
}

/* Hide scrollbar */
.menu::-webkit-scrollbar {
  width: 4px;
}

.menu::-webkit-scrollbar-track {
  background: transparent;
}

.menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.menu ul {
  padding-left: 0;
}

.menu li {
  list-style: none;
  padding: 0;
  margin-bottom: 6px;
  /* More spacing */
}

.menu li .item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  /* Pill shape */
  color: var(--color-text-weak);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  background: transparent;
}

.menu li .item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-text);
  transform: translateX(3px);
}

.menu li.active .item {
  background: var(--color-primary);
  /* Full pill */
  color: white;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.menu li.active .item:hover {
  transform: none;
}

.menu li .item>a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* Fix for direct text in single-level items */
.menu li .item>a {
  font-size: 0.95rem;
  /* Ensure font size here too */
}

/* Targets both span.title AND text node (inherently) via flex gap/margin */
.menu li .item .title {
  flex: 1;
  margin-left: 14px;
}

/* For items where text is direct child of 'a' (like Dashboard/Templates) */
.menu li .item>a:not(:has(.title)) {
  /* This selector approach is modern, but let's stick to flex manipulation safer for all browsers if needed, or just target the ICON order */
}

/* Better approach: Push icon to right */
.menu li .item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: 0.8;
  margin-left: auto;
  /* Push icon to the right end */
}

/* Move Title Spacing to A tag if possible, or just reset margins */
.menu li .item .title {
  margin-left: 0;
  /* Reset */
  margin-right: auto;
  /* Push everything else right */
  order: -1;
  /* Ensure title is first visually? No, HTML order is Link(Text) -> Icon */
}

/* Let's re-examine HTML: 
   Dashboard: <a><span class="title">Dash</span></a> <span class="icon">...</span>
   Templates: <a>Templates</a> <span class="icon">...</span>
   
   Structure is: 
   .item { flex }
     > a { width: 100% } (Text is here)
     > .icon
   
   If 'a' is 100%, it pushes icon out.
   
   Fix: 'a' should take available space, not 100%.
*/
.menu li .item>a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 1;
  /* Take available space */
  /* width: 100%; REMOVE THIS */
}

.menu li .item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.menu li .item .icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.menu li .item .arrow {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
  opacity: 0.6;
  margin-left: auto;
  /* Push arrow to right if title text is short */
}

/* Active State Arrow */
.menu li.active .item .arrow {
  transform: rotate(90deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  opacity: 1;
}

/* Submenus */
.menu li ul {
  display: none;
  padding: 5px 0 5px 0;
  margin-left: 28px;
  /* Align with text */
  border-left: 2px solid rgba(0, 0, 0, 0.05);
  /* Guide line */
}

.menu li.active ul {
  display: block;
  animation: slideDown 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu li ul li {
  margin-bottom: 2px;
}

.menu li ul li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--color-text-weak);
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
  position: relative;
  left: -2px;
  /* Close to border */
}

.menu li ul li a:hover {
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.05);
  /* Subtle primary tint */
  padding-left: 22px;
  /* Slide effect */
}

.menu li.divider {
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  /* Dotted divider */
  margin: 10px 10px 10px 20px;
  padding: 0;
  height: 1px;
}

background: transparent;
/* No bg for subitems, just text color */
}

.menu li ul li.divider {
  border-bottom: 1px solid var(--border-color);
  margin: 5px 10px;
}

.full-height {
  height: 100vh;
}

/* Modern Inputs */
.btn,
.form-control,
.selectize-input,
.selectize-control.single .selectize-input {
  border-radius: var(--radius-sm);
}

.form-control {
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  height: auto;
  min-height: 42px;
  font-size: 0.95rem;
  color: var(--color-text);
  background: white;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  /* Primary focus ring */
  border-color: var(--color-primary);
}

.form-group label {
  display: block;
  color: var(--color-text);
  transition: font-size 150ms cubic-bezier(0.4, 0, 0.2, 1),
    color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  height: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

/* Form Group - Floating Label Style */
.form-group-default {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 15px;
  position: relative;
  transition: all 0.2s ease;
}



.form-group-default.focused {
  border: 1px solid #7252d3;
  border-right-color: #7252d3 !important;
  border-bottom-color: #7252d3 !important;
}

.form-group-default.focused label {
  font-size: 12px;
  color: var(--color-text-weak);
}

.form-group-default .form-control {
  border: none;
  padding: 0;
  font: var(--font-s);
  height: 25px;
  min-height: 25px;
  padding: 0;
  margin-top: -4px;
  background: none;
}

.form-group-attached .form-group.form-group-default {
  border-radius: 0;
  margin-bottom: 0;
}

.form-group-attached>div {
  margin: 0;
}

.form-group-attached>div:first-child.row>[class*="col-"]:first-child .form-group-default {
  border-top-left-radius: 2px;
}

.form-group-attached>div:first-child.row>[class*="col-"]:last-child .form-group-default {
  border-top-right-radius: 2px;
}

.form-group-attached>div:first-child.form-group-default {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.form-group-attached>div:last-child.row>[class*="col-"]:first-child .form-group-default {
  border-bottom-left-radius: 2px;
}

.form-group-attached>div:last-child.row>[class*="col-"]:last-child .form-group-default {
  border-bottom-right-radius: 2px;
}

.form-group-attached>div:last-child.form-group-default {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

.form-group-attached>div.row>[class*="col-"] {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.form-group-attached>div.row>[class*="col-"]:not(:only-child):not(:last-child)>.form-group-default {
  border-right-color: transparent;
}

.form-group-attached>div:not(:last-child) .form-group-default,
.form-group-attached>div:not(:last-child).form-group-default {
  border-bottom-color: transparent;
}

.form-group-attached .selectize-input {
  padding: 0;
  min-height: auto;
  border-radius: 0;
  border: 0;
  min-width: 100%;
}

.form-group-attached .selectize-input.focus {
  box-shadow: none;
}

/* Form layouts  : Responsive Handlers
--------------------------------------------------
*/
@media (max-width: 767px) {
  .form-group-attached .form-group-default {
    border-right-color: rgba(33, 33, 33, 0.14) !important;
  }
}

@media only screen and (min-width: 768px) {
  .form-group-attached>div.row>[class*="col-"] .form-group {
    height: 100%;
    width: 100%;
  }
}

.dropdown-menu {
  font: var(--font-s);
  border-color: var(--border-color);
}

.dropdown-divider {
  border-color: var(--border-color);
}

.dropdown-menu>li,
.dropdown-menu>.dropdown-item {
  line-height: 20px;
  color: var(--color-text);
  padding: 4px 8px 4px 16px;
  border-radius: 3px;
  display: block;
  clear: both;
  white-space: nowrap;
  text-align: left;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
}

.card-link {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: #7252d3;
  position: relative;
}

.card-link:after {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  content: "\e409" !important;
  font-size: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.breadcrumb {
  border-radius: 0;
  background: #ffffff;
  padding: 20px;
  border-bottom: 1px solid rgba(224, 224, 224, 0.7) !important;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  margin-bottom: 25px !important;
}

.breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb-item+.breadcrumb-item::before {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  content: "\e409" !important;
}

.breadcrumb .active,
.breadcrumb .active a {
  color: #7252d3;
}

.table-custom {
  border-bottom: 1px solid rgba(224, 224, 224, 0.7) !important;
}

.table-custom thead th {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: #000;
  font-weight: bold;
  vertical-align: middle !important;
}

.table-custom th {
  padding: 5px 10px;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border: 1px solid rgba(224, 224, 224, 0.7) !important;
}

.table-custom td {
  background: #ffffff;
  padding: 10px;
  border-color: rgba(224, 224, 224, 0.7);
}

.table-custom td.td-link {
  padding: 0;
}

.table-custom td.td-link a {
  display: block;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.table-custom td.td-input {
  padding: 0;
}

.table-dynamic td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 5px 10px;
}

.table-custom td.td-input input[type="text"],
.table-custom td.td-input input[type="number"],
.table-custom td.td-input select {
  border: 0;
  padding: 12px;
  width: 100%;
  border-radius: 0 !important;
  height: 40px;
}

.table-custom td.td-input .selectize-input {
  padding: 0px 12px;
  border: 0;
  border-radius: 0 !important;
}

.table-custom td.td-input .selectize-control.single .selectize-selected-item {
  padding: 12px 0;
}

.table-custom td.td-input .selectize-control.multi .selectize-selected-item {}

.table-custom td.td-input .selectize-control,
.table-custom td.td-input .selectize-input {
  min-height: 40px;
}

.table-data-grid {
  background: #fff;
}

.table-data-grid th {
  font-size: 10px !important;
  text-transform: uppercase;
}

.table-data-grid td {
  font-size: 14px !important;
}

.table-data-grid th,
.table-data-grid td {
  padding: 5px 3px !important;
  border: 1px solid rgba(224, 224, 224, 0.7) !important;
  white-space: nowrap;
}

.table-data-grid td.td-link {
  padding: 0 !important;
  height: inherit;
}

.table-data-grid td.td-link a {
  display: block;
  padding: 5px 3px !important;
  color: initial;
  text-decoration: none;
  height: 100%;
}

.table-data-grid td.td-grid {
  padding: 0 !important;
  height: inherit;
}

.table-data-grid td.td-grid div {
  display: block;
  padding: 5px 3px !important;
  color: initial;
  text-decoration: none;
  height: 100%;
}

.card .table-custom td:first-child {
  border-width: 1px 1px 1px 0;
}

.card .table-custom td:last-child {
  border-width: 1px 0 1px 1px;
}

.selectize-dropdown {
  z-index: 9999999 !important;
}

.selectize-dropdown .color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.selectize-selected-item .color-swatch {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.table-custom .selectize-control.single .item {
  padding: 12px;
}

.color-swatch-tag {
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.color-swatch {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.5px;
  border: 0;
}

.avatar.avatar-a {
  background: #d65745;
  color: #;
  border-color: #d65745;
}

.avatar.avatar-b {
  background: #d8823b;
  color: #ffffff;
  border-color: #d8823b;
}

.avatar.avatar-c {
  background: #f7ce46;
  color: #ffffff;
  border-color: #f7ce46;
}

.avatar.avatar-d {
  background: #d2c29a;
  color: #ffffff;
  border-color: #d2c29a;
}

.avatar.avatar-e {
  background: #38485c;
  color: #ffffff;
  border-color: #38485c;
}

.avatar.avatar-f {
  background: #2b2b2b;
  color: #ff8f36;
  border-color: #2b2b2b;
}

.avatar.avatar-g {
  background: #925eb1;
  color: #ffffff;
  border-color: #925eb1;
}

.avatar.avatar-h {
  background: #476e7f;
  color: #ffffff;
  border-color: #476e7f;
}

.avatar.avatar-i {
  background: #5197d5;
  color: #ffffff;
  border-color: #5197d5;
}

.avatar.avatar-j {
  background: #65c87a;
  color: #ffffff;
  border-color: #65c87a;
}

.avatar.avatar-k {
  background: #58b99d;
  color: #ffffff;
  border-color: #58b99d;
}

.avatar.avatar-l {
  background: #bec3c6;
  color: #ffffff;
  border-color: #bec3c6;
}

.avatar.avatar-m {
  background: #818c8d;
  color: #ffffff;
  border-color: #818c8d;
}

.avatar.avatar-n {
  background: #3e5e43;
  color: #ffffff;
  border-color: #3e5e43;
}

.avatar.avatar-o {
  background: #7061bf;
  color: #ffffff;
  border-color: #7061bf;
}

.avatar.avatar-p {
  background: #5a4636;
  color: #ffffff;
  border-color: #5a4636;
}

.avatar.avatar-q {
  background: #58375c;
  color: #ffffff;
  border-color: #58375c;
}

.avatar.avatar-r {
  background: #c85d5d;
  color: #ffffff;
  border-color: #c85d5d;
}

.avatar.avatar-s {
  background: #95ae3f;
  color: #ffffff;
  border-color: #95ae3f;
}

.avatar.avatar-t {
  background: #70342d;
  color: #ffffff;
  border-color: #70342d;
}

.avatar.avatar-u {
  background: #897361;
  color: #ffffff;
  border-color: #897361;
}

.avatar.avatar-v {
  background: #9cabd1;
  color: #ffffff;
  border-color: #9cabd1;
}

.avatar.avatar-w {
  background: #3d4c7d;
  color: #ffffff;
  border-color: #3d4c7d;
}

.avatar.avatar-x {
  background: #515a5a;
  color: #ffffff;
  border-color: #515a5a;
}

.avatar.avatar-y {
  background: #00838f;
  color: #ffffff;
  border-color: #00838f;
}

.avatar.avatar-z {
  background: #ab47bc;
  color: #00c0f9;
  border-color: #ab47bc;
}

/*.avatar.avatar-a {
  background: #FEEBE7;
  color: #F3755D;
  border-color: #fac7be;
}

.avatar.avatar-b {
  background: #E3DFF8;
  color: #7D5AF2;
  border-color: #cabcf9;
}

.avatar.avatar-c {
  background: #EBEDF2;
  color: #798499;
  border-color: #c9cdd6;
}

.avatar.avatar-d {
  background: #E0FAF1;
  color: #26D091;
  border-color: #a5eed3;
}

.avatar.avatar-e {
  background: #FCE8F5;
  color: #EE4BB2;
  border-color: #fdf3fa;
}

.avatar.avatar-f {
  background: #FFEFE1;
  color: #FF8F36;
  border-color: #ffd2ae;
}

.avatar.avatar-g {
  background: #FEEBE7;
  color: #F3755D;
  border-color: #fac7be;
}

.avatar.avatar-h {
  background: #E3DFF8;
  color: #7D5AF2;
  border-color: #cabcf9;
}

.avatar.avatar-i {
  background: #EBEDF2;
  color: #798499;
  border-color: #c9cdd6;
}

.avatar.avatar-j {
  background: #E0FAF1;
  color: #26D091;
  border-color: #a5eed3;
}

.avatar.avatar-k {
  background: #FCE8F5;
  color: #EE4BB2;
  border-color: #fdf3fa;
}

.avatar.avatar-l {
  background: #FFEFE1;
  color: #FF8F36;
  border-color: #ffd2ae;
}

.avatar.avatar-m {
  background: #FEEBE7;
  color: #F3755D;
  border-color: #fac7be;
}

.avatar.avatar-n {
  background: #E3DFF8;
  color: #7D5AF2;
  border-color: #cabcf9;
}

.avatar.avatar-o {
  background: #EBEDF2;
  color: #798499;
  border-color: #c9cdd6;
}

.avatar.avatar-p {
  background: #E3DFF8;
  color: #7D5AF2;
  border-color: #cabcf9;
}

.avatar.avatar-q {
  background: #FCE8F5;
  color: #EE4BB2;
  border-color: #fdf3fa;
}

.avatar.avatar-r {
  background: #FFEFE1;
  color: #FF8F36;
  border-color: #ffd2ae;
}

.avatar.avatar-s {
  background: #FEEBE7;
  color: #F3755D;
  border-color: #fac7be;
}

.avatar.avatar-t {
  background: #E3DFF8;
  color: #7D5AF2;
  border-color: #cabcf9;
}

.avatar.avatar-u {
  background: #EBEDF2;
  color: #798499;
  border-color: #c9cdd6;
}

.avatar.avatar-v {
  background: #E0FAF1;
  color: #26D091;
  border-color: #a5eed3;
}

.avatar.avatar-w {
  background: #FCE8F5;
  color: #EE4BB2;
  border-color: #fdf3fa;
}

.avatar.avatar-x {
  background: #FFEFE1;
  color: #FF8F36;
  border-color: #ffd2ae;
}

.avatar.avatar-y {
  background: #FEEBE7;
  color: #F3755D;
  border-color: #fac7be;
}

.avatar.avatar-z {
  background: #CCF4FE;
  color: #00C0F9;
  border-color: #00C0F9;
}*/

/* Modern Button - Primary */
.btn-primary,
.btn-primary:focus {
  color: #fff;
  background-color: var(--color-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  /* Pill shape */
  padding: 6px 20px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary.hover:not(.active),
.btn-primary:hover:not(.active) {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary.active,
.btn-primary:active {
  background-color: var(--color-primary-hover);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  transform: translateY(0);
}

.btn-primary .badge {
  color: var(--color-primary);
  background-color: #fff;
}

.btn-success,
.btn-success:focus {
  color: #fff;
  background-color: #19ad79;
  border: 1px solid rgba(13, 147, 91, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-success.active,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success.active:focus,
.btn-success:not(:disabled):not(.disabled):active:focus,
.btn-success:not(:disabled):not(.disabled):active:hover,
.btn-success .show .dropdown-toggle.btn-success {
  background-color: #0fa465;
  color: #fff;
  border: 1px solid rgba(13, 147, 91, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
  box-shadow: none;
}

.btn-success.hover:not(.active),
.btn-success:hover:not(.active),
.btn-success .show .dropdown-toggle.btn-success {
  background-color: #26bf93;
  color: #fff;
  border: 1px solid rgba(13, 147, 91, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-success.disabled,
.btn-success.disabled:hover,
.btn-success.disabled:focus,
.btn-success.disabled:active,
.btn-success.disabled.active,
.btn-success[disabled],
.btn-success[disabled]:hover,
.btn-success[disabled]:focus,
.btn-success[disabled]:active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success,
fieldset[disabled] .btn-success:hover,
fieldset[disabled] .btn-success:focus,
fieldset[disabled] .btn-success:active,
fieldset[disabled] .btn-success.active {
  background-color: #19ad79;
  border: 1px solid rgba(13, 147, 91, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-success .badge {
  color: #19ad79;
  background-color: #fff;
}

.btn-complete,
.btn-complete:focus {
  color: #fff;
  background-color: #0072ec;
  border: 1px solid rgba(0, 79, 191, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-complete.active,
.btn-complete:not(:disabled):not(.disabled):active,
.btn-complete.active:focus,
.btn-complete:not(:disabled):not(.disabled):active:focus,
.btn-complete:not(:disabled):not(.disabled):active:hover,
.btn-complete .show .dropdown-toggle.btn-complete {
  background-color: #0059d4;
  color: #fff;
  border: 1px solid rgba(0, 79, 191, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
  box-shadow: none;
}

.btn-complete.hover:not(.active),
.btn-complete:hover:not(.active),
.btn-complete .show .dropdown-toggle.btn-complete {
  background-color: #0f8ff9;
  color: #fff;
  border: 1px solid rgba(0, 79, 191, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-complete.disabled,
.btn-complete.disabled:hover,
.btn-complete.disabled:focus,
.btn-complete.disabled:active,
.btn-complete.disabled.active,
.btn-complete[disabled],
.btn-complete[disabled]:hover,
.btn-complete[disabled]:focus,
.btn-complete[disabled]:active,
.btn-complete[disabled].active,
fieldset[disabled] .btn-complete,
fieldset[disabled] .btn-complete:hover,
fieldset[disabled] .btn-complete:focus,
fieldset[disabled] .btn-complete:active,
fieldset[disabled] .btn-complete.active {
  background-color: #0072ec;
  border: 1px solid rgba(0, 79, 191, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-complete .badge {
  color: #0072ec;
  background-color: #fff;
}

.btn-info,
.btn-info:focus {
  color: #fff;
  background-color: #3b4752;
  border: 1px solid rgba(43, 57, 71, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-info.active,
.btn-info:not(:disabled):not(.disabled):active,
.btn-info.active:focus,
.btn-info:not(:disabled):not(.disabled):active:focus,
.btn-info:not(:disabled):not(.disabled):active:hover,
.btn-info .show .dropdown-toggle.btn-info {
  background-color: #2f3e50;
  color: #fff;
  border: 1px solid rgba(43, 57, 71, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
  box-shadow: none;
}

.btn-info.hover:not(.active),
.btn-info:hover:not(.active),
.btn-info .show .dropdown-toggle.btn-info {
  background-color: #475b6b;
  color: #fff;
  border: 1px solid rgba(43, 57, 71, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-info.disabled,
.btn-info.disabled:hover,
.btn-info.disabled:focus,
.btn-info.disabled:active,
.btn-info.disabled.active,
.btn-info[disabled],
.btn-info[disabled]:hover,
.btn-info[disabled]:focus,
.btn-info[disabled]:active,
.btn-info[disabled].active,
fieldset[disabled] .btn-info,
fieldset[disabled] .btn-info:hover,
fieldset[disabled] .btn-info:focus,
fieldset[disabled] .btn-info:active,
fieldset[disabled] .btn-info.active {
  background-color: #3b4752;
  border: 1px solid rgba(43, 57, 71, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-info .badge {
  color: #3b4752;
  background-color: #fff;
}

.btn-warning,
.btn-warning:focus {
  color: #4b4b4b;
  background-color: #ffd945;
  border: 1px solid rgba(218, 171, 45, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-warning.active,
.btn-warning:not(:disabled):not(.disabled):active,
.btn-warning.active:focus,
.btn-warning:not(:disabled):not(.disabled):active:focus,
.btn-warning:not(:disabled):not(.disabled):active:hover,
.btn-warning .show .dropdown-toggle.btn-warning {
  background-color: #f0bc34;
  color: #4b4b4b;
  border: 1px solid rgba(218, 171, 45, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
  box-shadow: none;
}

.btn-warning.hover:not(.active),
.btn-warning:hover:not(.active),
.btn-warning .show .dropdown-toggle.btn-warning {
  background-color: #ffe858;
  color: #4b4b4b;
  border: 1px solid rgba(218, 171, 45, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-warning.disabled,
.btn-warning.disabled:hover,
.btn-warning.disabled:focus,
.btn-warning.disabled:active,
.btn-warning.disabled.active,
.btn-warning[disabled],
.btn-warning[disabled]:hover,
.btn-warning[disabled]:focus,
.btn-warning[disabled]:active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning,
fieldset[disabled] .btn-warning:hover,
fieldset[disabled] .btn-warning:focus,
fieldset[disabled] .btn-warning:active,
fieldset[disabled] .btn-warning.active {
  background-color: #ffd945;
  border: 1px solid rgba(218, 171, 45, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-warning .badge {
  color: #ffd945;
  background-color: #4b4b4b;
}

.btn-danger,
.btn-danger:focus {
  color: #fff;
  background-color: #d83c31;
  border: 1px solid rgba(185, 30, 30, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-danger.active,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger.active:focus,
.btn-danger:not(:disabled):not(.disabled):active:focus,
.btn-danger:not(:disabled):not(.disabled):active:hover,
.btn-danger .show .dropdown-toggle.btn-danger {
  background-color: #cd2121;
  color: #fff;
  border: 1px solid rgba(185, 30, 30, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
  box-shadow: none;
}

.btn-danger.hover:not(.active),
.btn-danger:hover:not(.active),
.btn-danger .show .dropdown-toggle.btn-danger {
  background-color: #e6533c;
  color: #fff;
  border: 1px solid rgba(185, 30, 30, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-danger.disabled,
.btn-danger.disabled:hover,
.btn-danger.disabled:focus,
.btn-danger.disabled:active,
.btn-danger.disabled.active,
.btn-danger[disabled],
.btn-danger[disabled]:hover,
.btn-danger[disabled]:focus,
.btn-danger[disabled]:active,
.btn-danger[disabled].active,
fieldset[disabled] .btn-danger,
fieldset[disabled] .btn-danger:hover,
fieldset[disabled] .btn-danger:focus,
fieldset[disabled] .btn-danger:active,
fieldset[disabled] .btn-danger.active {
  background-color: #d83c31;
  border: 1px solid rgba(185, 30, 30, 0.5);
  border-bottom: 1px solid rgba(33, 33, 33, 0.22);
}

.btn-danger .badge {
  color: #d83c31;
  background-color: #fff;
}

.btn-default {
  background: #fff;
  color: #4b4b4b;
}

.btn-default:not(:disabled):not(.disabled):active:hover,
.btn-default.active,
.btn-default:active,
.btn-default.active:focus,
.btn-default:active:focus {
  background: #e0e0e0;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-bottom: 1px solid rgba(33, 33, 33, 0.29);
  color: #4b4b4b;
}

.btn-default.active {
  background: #e0e0e0;
  animation-name: toggle;
  animation-duration: 300ms;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  color: #212121;
}

.btn-default.hover:not(.active),
.btn-default:hover:not(.active) {
  background: #f4f4f4;
  color: #212121;
}

.filetree {
  max-height: 190px;
  overflow: scroll;
}

.filetree>ul {
  margin: 0;
  padding: 10px;
}

.filetree>ul ul {
  margin: 0;
  padding: 3px 0 3px 0;
}

.filetree li {
  list-style: none;
  padding: 3px 3px 3px 16px;
}

.filetree li:last-of-type {
  padding: 3px 3px 0px 16px;
}

.filetree li a {
  color: #9ca4b4;
}

.filetree li a:hover {
  color: #d6dae0;
}

.filetree input[type="radio"] {
  margin: 0 10px;
}

.filetree .directory {
  background-image: url("../images/directory.svg");
  background-position: 0px 7px;
  background-repeat: no-repeat;
  background-size: 12px;
}

.filetree .file {
  background-image: url("../images/file.svg");
  background-position: 0px 7px;
  background-repeat: no-repeat;
  background-size: 12px;
}

th .row-table {
  border-top: 1px solid rgba(224, 224, 224, 0.7) !important;
}

.row-table [class*="col-"] {
  border-right: 1px solid rgba(224, 224, 224, 0.7) !important;
}

.row-table [class*="col-"]:last-child {
  border-right: 0px !important;
}

.table-custom th {
  background: #fff;
}

tr.bg-light td {
  background: inherit;
}

tr.bg-light input,
tr.bg-light .selectize-input {
  background-color: #f8f9fa !important;
}

tr.valign-middle td {
  vertical-align: middle !important;
}

.sub-table {
  width: 100%;
}

tr.divider {
  border: 0 !important;
}

tr.divider td {
  background: var(--bg-main);
  height: 20px;
  padding: 0;
  border: 0 !important;
}

.sub-table th {
  font-size: 10px;
  padding: 3px;
  border: 1px solid rgba(224, 224, 224, 0.7) !important;
  border-width: 0 1px !important;
}

.sub-table td {
  font-size: 10px;
  padding: 3px;
  border: 1px solid rgba(224, 224, 224, 0.7) !important;
  border-width: 1px 1px 1px 1px !important;
}

.sub-table .row-table [class*="col-"] {
  padding: 3px;
}

.td-delete,
.td-delete td,
.td-delete input[type="text"],
.td-delete input[type="number"],
.td-delete select,
.td-delete .selectize-input,
.td-delete .bg-light {
  color: #721c24 !important;
  background-color: #f8d7da !important;
  border-color: #f5c6cb !important;
}

tr.td-delete.bg-light input,
tr.td-delete.bg-light .selectize-input {
  background-color: #f8d7da !important;
}

.sticky-table {
  max-width: 100%;
  /*max-height: 80vh;*/
  height: auto;
  overflow-y: visible;
  overflow-x: auto;
  /*border-top: 1px solid #ddd;*/
  /*border-bottom: 1px solid #ddd;*/
  padding: 0 !important;
  transition: width 2s;
  outline: 1px solid #555;
}

.sticky-table,
.sticky-table * {
  -webkit-transition: all 0s;
  -moz-transition: all 0s;
  -o-transition: all 0s;
  transition: all 0s;
}

.sticky-table table {
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  border-spacing: 0;
  padding: 0 !important;
  border-collapse: collapse;
  border: 0 !important;
}

.sticky-table table tr.sticky-header th,
.sticky-table table tr.sticky-header td,
.sticky-table table tr.sticky-footer th,
.sticky-table table tr.sticky-footer td {
  background-color: #fff;
  border-top: 0;
  position: relative;
  position: -webkit-sticky;
  position: -ms-sticky;
  position: sticky;
  outline: 1px solid #555;
  z-index: 5;
}

.sticky-table table tr.sticky-header th,
.sticky-table table tr.sticky-header td {
  top: 0;
}

.sticky-table table tr.sticky-footer th,
.sticky-table table tr.sticky-footer td {
  bottom: 0;
}

.sticky-table table td.sticky-cell,
.sticky-table table th.sticky-cell,
.sticky-table table td.sticky-cell-opposite,
.sticky-table table th.sticky-cell-opposite {
  background-color: #fff;
  /*outline: 1px solid #ddd;*/
  outline: 1px solid #555;
  border: 0 !important;
  position: relative;
  position: -webkit-sticky;
  position: -ms-sticky;
  position: sticky;
  z-index: 10;
}

.sticky-table.sticky-ltr-cells table td.sticky-cell,
.sticky-table.sticky-ltr-cells table th.sticky-cell,
.sticky-table.sticky-rtl-cells table td.sticky-cell-opposite,
.sticky-table.sticky-rtl-cells table th.sticky-cell-opposite {
  left: 0;
}

.sticky-table.sticky-rtl-cells table td.sticky-cell,
.sticky-table.sticky-rtl-cells table th.sticky-cell,
.sticky-table.sticky-ltr-cells table td.sticky-cell-opposite,
.sticky-table.sticky-ltr-cells table th.sticky-cell-opposite {
  right: 0;
}

.sticky-table table tr.sticky-header td.sticky-cell,
.sticky-table table tr.sticky-header th.sticky-cell,
.sticky-table table tr.sticky-header td.sticky-cell-opposite,
.sticky-table table tr.sticky-header th.sticky-cell-opposite,
.sticky-table table tr.sticky-footer td.sticky-cell,
.sticky-table table tr.sticky-footer th.sticky-cell,
.sticky-table table tr.sticky-footer td.sticky-cell-opposite,
.sticky-table table tr.sticky-footer th.sticky-cell-opposite {
  z-index: 15;
}

/* Modern Card */
.card {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: white;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 20px;
}

.card .card-header .card-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--color-text);
  margin: 0;
  text-transform: uppercase;
}

.card .card-body {
  padding: 20px;
}

/* Stats Card Variant */
.card-stats {
  display: flex;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.card-stats .icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
}

.card-stats .content .title {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-weak);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.card-stats .content .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--color-text);
}

/* Modern Tables */
.table-custom {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* For rounded corners */
}

.table-custom thead th {
  background: #f8fafc;
  color: var(--color-text-weak);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  border-top: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-custom tbody td {
  padding: 14px 15px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color-secondary);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: background 0.1s ease;
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

.table-custom tbody tr:hover td {
  background: #f8fafc;
}

.table-custom .td-link a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.table-custom .td-link a:hover {
  color: var(--color-primary);
}

/* Badge Tweaks */
.btn-rounded {
  border-radius: 99px !important;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: none;
}

.btn-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: none;
}

.btn-dark {
  background: rgba(30, 41, 59, 0.1);
  color: #475569;
  border: none;
}