.select2-container {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  position: relative;
  vertical-align: middle; }
.select2-container .select2-selection--single {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  height: auto;
}

.select2-container .select2-selection__icon {
  margin-right: 6px;
}

.select2-container .select2-selection__text {
  display: inline;
  vertical-align: middle;
}

.select2-container .dropdown-menu > li > a {
  white-space: inherit;
}

.select2-container .select2-results__message {
  padding-left: 15px;
  padding-right: 15px;
}

.select2-container .select2-selection__icon img {
  max-width: calc(1em + 3px);
  max-height: calc(1em + 3px);
}
.select2-container .select2-selection__id-1 {
  min-width: 22px;
}

.select2-container .select2-selection__id-2 {
  min-width: 30px;
}

.select2-container .select2-selection__id-3 {
  min-width: 38px;
}

.select2-container .select2-selection__id-4 {
  min-width: 45px;
}

.select2-container .select2-selection__id-5 {
  min-width: 52px;
}

.select2-container .select2-selection__id-6 {
  min-width: 60px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }
.select2-container .select2-selection--single .select2-selection__clear {
  position: relative; }
.select2-container .select2-selection--multiple {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  min-height: 32px;
  user-select: none;
  -webkit-user-select: none; }
.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: inline-block;
  overflow: hidden;
  padding-left: 8px;
  text-overflow: ellipsis;
  white-space: nowrap; }
.select2-container .select2-search--inline {
  float: left; }

.select2-dropdown {
  display: block !important;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 5;
  margin-top: 0px !important;
}

.select2-results {
  display: block; }

.select2-results__options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  position: relative;
  box-shadow: none;
  border-radius: 0px;
  border: none;
}

.select2-results__option {
  display: block;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #333;
  user-select: none;
  -webkit-user-select: none;
}

.select2-results__option a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.42857143;
  color: #333;
  text-decoration: none;
}

.select2-results__option[aria-selected] {
  cursor: pointer; }

.select2-container--open .select2-dropdown {
  left: 0; }

.select2-container--open .select2-dropdown--above {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; }

.select2-container--open .select2-dropdown--below {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.select2-search--dropdown {
  display: block;
  padding: 8px;
  position: relative;
}
.select2-search--dropdown.select2-search--hide {
  display: none;
}
.select2-search__field {
  padding-left: 28px;
}

.select2-search__field-wrapper {
  position: relative;
}
.select2-search__field-icon {
  position: absolute;
  height: 100%;
  min-height: 100%;
  padding-left: 8px;
  display:flex;
  align-items: center;
}

.select2-search__field-icon span {
  vertical-align: middle;
  display:table-cell;
}

.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0); }

.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important; }

.select2-container--default .select2-selection--single {}
.select2-container--default .select2-selection--single .select2-selection__rendered {}
.select2-container--default .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold; }
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #999; }
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  position: absolute;
  top: 0px;
  right: 12px;
  width: 20px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0; }

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #eee;
  cursor: default; }
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  display: none; }

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px; }

.select2-container--default .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text; }
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0 5px;
  width: 100%; }
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: #999;
  margin-top: 5px;
  float: left; }
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-top: 5px;
  margin-right: 10px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #e4e4e4;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 5px;
  padding: 0 5px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #999;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-right: 2px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #333; }


.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: solid black 1px;
  outline: 0; }

.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: #eee;
  cursor: default; }

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  display: none; }

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; }


.select2-container--default .select2-results > .select2-results__options {
  max-height: 320px;
  overflow-y: auto; }

.select2-container--default .select2-results__option[role=group] {
  padding: 0; }

.select2-container--default .select2-results__option[aria-disabled=true] {
  color: #999; }

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #ddd; }

.select2-container--default .select2-results__option .select2-results__option {
  padding-left: 1em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
  padding-left: 0; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -1em;
  padding-left: 2em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -2em;
  padding-left: 3em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -3em;
  padding-left: 4em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -4em;
  padding-left: 5em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -5em;
  padding-left: 6em; }

.select2-container--default .select2-results__option--highlighted[aria-selected] {}

.select2-container--default .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px; }

.select2-container--classic .select2-selection--single {
  background-color: #f7f7f7;
  border: 1px solid #aaa;
  border-radius: 4px;
  outline: 0;
  background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
  background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
  background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
.select2-container--classic .select2-selection--single:focus {
  border: 1px solid #5897fb; }
.select2-container--classic .select2-selection--single .select2-selection__rendered {
  color: #444;
  line-height: 28px; }
.select2-container--classic .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-right: 10px; }
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
  color: #999; }
.select2-container--classic .select2-selection--single .select2-selection__arrow {
  background-color: #ddd;
  border: none;
  border-left: 1px solid #aaa;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  height: 26px;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
  background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0; }


.select2-container--classic.select2-container--open .select2-selection--single {
  border: 1px solid #5897fb; }
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
  background: transparent;
  border: none; }
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px; }

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
  background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
  background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
  background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
  background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }

.select2-container--classic .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text;
  outline: 0; }
.select2-container--classic .select2-selection--multiple:focus {
  border: 1px solid #5897fb; }
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
  list-style: none;
  margin: 0;
  padding: 0 5px; }
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
  display: none; }
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
  background-color: #e4e4e4;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 5px;
  padding: 0 5px; }
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
  color: #888;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-right: 2px; }
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #555; }

.select2-container--classic.select2-container--open .select2-selection--multiple {
  border: 1px solid #5897fb; }

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; }

.select2-container--classic .select2-dropdown--above {
  border-bottom: none; }

.select2-container--classic .select2-dropdown--below {
  border-top: none; }

.select2-container--classic .select2-results > .select2-results__options {
  max-height: 320px;
  overflow-y: auto;
}

.select2-container--classic .select2-results__option[role=group] {
  padding: 0; }

.select2-container--classic .select2-results__option[aria-disabled=true] {
  color: grey; }

.select2-container--classic .select2-results__option--highlighted[aria-selected] {
  background-color: #3875d7;
  color: white; }

.select2-container--classic .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px; }

.select2-container--classic.select2-container--open .select2-dropdown {
  border-color: #5897fb; }

/* RTL */
.select2-dropdown[dir="rtl"] {
  direction: rtl;
}
.select2-container[dir="rtl"] .select2-results__option,
.select2-container[dir="rtl"] .select2-results__option a {
  text-align: right;
}
.select2-container[dir="rtl"] .select2-selection__icon {
  margin-right: 0px;
  margin-left: 6px;
}
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  padding-left: 20px;
}

.select2-dropdown[dir="rtl"] .select2-search__field{
  padding-left: 0px;
  padding-right: 28px;
}

.select2-dropdown[dir="rtl"] .select2-search__field-icon {
  padding-left: 0px;
  padding-right: 8px;
}

.select2-dropdown[dir="rtl"]  .select2-results__message {
  text-align: right;
}

.select2-dropdown[dir="rtl"]  .dropdown-menu > li > a {
  text-align: right;
}

.select2-dropdown[dir="rtl"] .select2-selection__icon {
  margin-right: 0px;
  margin-left: 6px;
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left; }

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 12px;
  right: auto; }
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
  float: right; }

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  margin-left: 5px;
  margin-right: auto; }

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  float: right; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  margin-left: 5px;
  margin-right: auto; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto; }

.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left; }

.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  border: none;
  border-right: 1px solid #aaa;
  border-radius: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  left: 1px;
  right: auto; }
@media (max-width: 767px) {
  tr.hidden {
    display: none !important;
  }
}

.search-dropdown .input-wrapper {
  position: relative;
}

.search-dropdown .input-wrapper .form-control {
  padding-left: calc(10px + 24px);
  padding-right: calc(10px + 24px);
}

.search-dropdown .input-wrapper .input-wrapper__prepend,
.search-dropdown .input-wrapper .input-wrapper__append {
  position: absolute;
  background: none;
  border: none;
  top: 50%;
  transform: translateY(-50%);
  padding: 0px 2px;
}

.search-dropdown .input-wrapper .input-wrapper__prepend:hover,
.search-dropdown .input-wrapper .input-wrapper__append:hover {
  opacity: 0.5;
}

.search-dropdown .input-wrapper .input-wrapper__prepend {
  left: 12px;
}

.search-dropdown .input-wrapper .input-wrapper__append {
  right: 8px;
}

/* RTL */
.search-dropdown[dir="rtl"] .input-wrapper .input-wrapper__prepend {
  right: 12px;
  left: auto;
}

.search-dropdown[dir="rtl"] .input-wrapper .input-wrapper__append {
  right: auto;
  left: 8px;
}

.spin-loader {-webkit-animation-name: spin-loader;-webkit-animation-duration: 1000ms;-webkit-animation-iteration-count: infinite;-webkit-animation-timing-function: linear;-moz-animation-name: spin-loader;-moz-animation-duration: 1000ms;-moz-animation-iteration-count: infinite;-moz-animation-timing-function: linear;-ms-animation-name: spin-loader;-ms-animation-duration: 1000ms;-ms-animation-iteration-count: infinite;-ms-animation-timing-function: linear;animation-name: spin-loader;animation-duration: 1000ms;animation-iteration-count: infinite;animation-timing-function: linear;}@-moz-keyframes spin-loader {from { -moz-transform: rotate(0deg); }to { -moz-transform: rotate(360deg); }}@-webkit-keyframes spin-loader {from { -webkit-transform: rotate(0deg); }to { -webkit-transform: rotate(360deg); }}@keyframes spin-loader {from {transform:rotate(0deg);}to {transform:rotate(360deg);}}

/* Global Styles */
:root {
    --primary-gradient: linear-gradient(45deg, #007bff, #00c6ff);
    --secondary-gradient: linear-gradient(45deg, #6c757d, #868e96);
    --border-radius: 15px;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --sidebar-width: 260px;
    --header-height: 60px;
}

/* Reset Layout */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #1a1f2c;
    color: #fff;
}

/* Layout Container */
#wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #242938;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    position: relative;
    transition: margin 0.3s ease;
    width: calc(100% - 240px);
    background: #1a1f2c;
}

/* Content Area */
.content_area {
    padding: 80px 20px 20px;
    min-height: calc(100vh - 60px);
    background: #f8f9fa;
}

/* Header */
.top_header {
    position: fixed;
    top: 0;
    right: 0;
    left: 260px;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    transition: left 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-260px);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top_header {
        left: 0;
        width: 100%;
    }

    .content_area {
        padding: 70px 15px 15px;
    }
}

@media (max-width: 768px) {
    .content_area {
        padding: 65px 12px 12px;
    }
}

/* Fix for mobile menu toggle */
.menu_toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 991px) {
    .menu_toggle {
        display: block;
    }
}

/* Overlay for mobile menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 991px) {
    .sidebar-overlay.active {
        display: block;
    }
}

/* Grid System Fixes */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, 
.col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, 
.col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, 
.col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, 
.col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, 
.col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, 
.col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, 
.col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, 
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, 
.col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, 
.col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 10px;
    padding-left: 10px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Custom Components */
.balance-dropdown__container {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.nightmode .balance-dropdown__container {
    background: #2d2d2d;
}

/* Fix for specific elements */
#block_95 .card {
    margin-top: 20px !important;
    padding: 20px !important;
}

#block_95 textarea {
    height: 150px;
    resize: vertical;
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: var(--primary-gradient);
}

/* Container Fixes */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Card Grid Fixes */
.card-grid {
    display: grid;
    grid-gap: 20px;
    margin: 0;
    padding: 0;
}

/* New Order Page Layout */
.def_wraper {
    width: 100%;
    margin: 0;
    padding: 15px 0;
}

.user_statistic_wraper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 0 15px;
}

.statistic__item {
    background: #242938;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.statistic__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.statistic__item .icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.statistic__item .icon img {
    max-width: 100%;
    height: auto;
}

.user__data {
    flex: 1;
}

.user__data span {
    color: #8a8d93;
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

.user__data h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* Category Filter */
.category_filter_wrap {
    margin: 20px 15px;
}

.filter_btn_wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.btn_filter {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn_filter:hover,
.btn_filter.active {
    background: #2d71f6;
    border-color: #2d71f6;
}

.btn_filter i {
    font-size: 16px;
    color: inherit;
}

/* New Order Form */
.newordersr {
    padding: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    height: auto;
}

.form-control:focus {
    background: #242938;
    border-color: #2d71f6;
    color: #fff;
    box-shadow: none;
}

/* Description Tab */
.descriptions_box {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

/* Responsive Fixes */
@media (max-width: 1200px) {
    .user_statistic_wraper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .filter_btn_wrap {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .user_statistic_wraper {
        grid-template-columns: 1fr;
    }
    
    .filter_btn_wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark Mode Support */
.nightmode .statistic__item {
    background: #2d2d2d;
}

.nightmode .user__data span {
    color: #999;
}

.nightmode .user__data h4 {
    color: #fff;
}

.nightmode .btn_filter {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
}

.nightmode .descriptions_box {
    background: #2d2d2d;
}

.nightmode .form-control {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
}

/* Main Layout Styles */
body {
    background: #1a1f2c;
    color: #fff;
}

.main-content {
    margin-left: 240px;
    width: calc(100% - 240px);
    min-height: 100vh;
    background: #1a1f2c;
}

/* Sidebar Styles */
.sidebar {
    width: 240px;
    background: #242938;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* Header Stats Cards */
.user_statistic_wraper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 0 15px;
}

.statistic__item {
    background: #242938;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.statistic__item .icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.user__data span {
    color: #8a8d93;
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

.user__data h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* Category Filter Buttons */
.category_filter_wrap {
    margin: 20px 15px;
}

.filter_btn_wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.btn_filter {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn_filter:hover,
.btn_filter.active {
    background: #2d71f6;
    border-color: #2d71f6;
}

.btn_filter i {
    font-size: 16px;
    color: inherit;
}

/* Form Controls */
.form-control {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    height: auto;
}

.form-control:focus {
    background: #242938;
    border-color: #2d71f6;
    color: #fff;
    box-shadow: none;
}

/* Search Box */
.search-dropdown .input-wrapper {
    margin-bottom: 20px;
}

.search-dropdown .input-wrapper .form-control {
    padding-left: 40px;
    background: #242938;
}

.search-dropdown .input-wrapper .input-wrapper__prepend {
    left: 15px;
    color: #8a8d93;
}

/* Select2 Customization */
.select2-container .select2-selection--single {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    height: 45px;
    padding: 8px 15px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
    line-height: 28px;
}

.select2-dropdown {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.select2-container--default .select2-results__option {
    color: #fff;
    padding: 8px 15px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #2d71f6;
}

/* Description Box */
.descriptions_box {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

/* Submit Button */
.btn-primary {
    background: #2d71f6;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1b5fd9;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .user_statistic_wraper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .filter_btn_wrap {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .user_statistic_wraper {
        grid-template-columns: 1fr;
    }
    
    .filter_btn_wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark Theme Specific */
.card {
    background: #242938;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
}

.nav-pills .nav-link {
    color: #8a8d93;
    padding: 8px 15px;
    border-radius: 8px;
}

.nav-pills .nav-link.active {
    background: #2d71f6;
    color: #fff;
}

/* Fix for Select2 in Dark Theme */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #fff transparent;
}