/* ==========================================================================
   Dark Theme Stylesheet for United Cargo (Sneat Template)
   ========================================================================== */

:root {
  --theme-transition-duration: 0.25s;
}

html.dark-style,
html[data-bs-theme="dark"],
[data-bs-theme="dark"] {
  --bs-body-bg: #232333;
  --bs-body-bg-rgb: 35, 35, 51;
  --bs-body-color: #a3a4cc;
  --bs-body-color-rgb: 163, 164, 204;
  --bs-heading-color: #dbddeb;
  --bs-emphasis-color: #e1def5;
  --bs-emphasis-color-rgb: 225, 222, 245;
  --bs-secondary-color: #8688a2;
  --bs-secondary-bg: #323249;
  --bs-tertiary-color: #797c9a;
  --bs-tertiary-bg: #2b2c40;
  --bs-border-color: #444564;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.08);
  --bs-card-bg: #2b2c40;
  --bs-card-cap-bg: transparent;
  --bs-card-border-color: #3b3c56;
  --bs-modal-bg: #2b2c40;
  --bs-modal-border-color: #444564;
  --bs-dropdown-bg: #2b2c40;
  --bs-dropdown-border-color: #444564;
  --bs-dropdown-link-color: #dbddeb;
  --bs-dropdown-link-hover-color: #696cff;
  --bs-dropdown-link-hover-bg: rgba(105, 108, 255, 0.14);
  --bs-dropdown-divider-bg: #3b3c56;
  --bs-light: #323249;
  --bs-light-rgb: 50, 50, 73;
  --bs-dark: #e1def5;
  --bs-dark-rgb: 225, 222, 245;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Core Layout & Backgrounds
   -------------------------------------------------------------------------- */
html.dark-style body {
  background-color: #232333 !important;
  color: #a3a4cc !important;
}

html.dark-style .layout-wrapper,
html.dark-style .layout-page,
html.dark-style .content-wrapper {
  background-color: #232333 !important;
}

html.dark-style .content-backdrop {
  background-color: rgba(15, 17, 26, 0.6) !important;
}

/* --------------------------------------------------------------------------
   Vertical Menu (Sidebar)
   -------------------------------------------------------------------------- */
html.dark-style #layout-menu.bg-menu-theme,
html.dark-style .layout-menu.bg-menu-theme {
  background-color: #2b2c40 !important;
  border-right: 1px solid #34354c !important;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.35) !important;
}

html.dark-style #layout-menu .app-brand {
  border-bottom: 1px solid #34354c;
}

html.dark-style .app-brand-text,
html.dark-style .menu-text {
  color: #dbddeb !important;
}

html.dark-style .menu-header {
  color: #797c9a !important;
}

html.dark-style .menu-inner-shadow {
  background: linear-gradient(#2b2c40 41%, rgba(43, 44, 64, 0.11) 95%, rgba(43, 44, 64, 0)) !important;
}

html.dark-style .menu-item .menu-link {
  color: #a3a4cc !important;
}

html.dark-style .menu-item .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #dbddeb !important;
}

html.dark-style .menu-item.active > .menu-link {
  background-color: #696cff !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(105, 108, 255, 0.48) !important;
}

html.dark-style .menu-sub {
  background: transparent !important;
}

html.dark-style .menu-sub .menu-item .menu-link {
  color: #8c8fae !important;
}

html.dark-style .menu-sub .menu-item .menu-link:hover {
  color: #dbddeb !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
}

html.dark-style .menu-sub .menu-item.active > .menu-link {
  color: #696cff !important;
  background-color: rgba(105, 108, 255, 0.14) !important;
}

html.dark-style #layout-menu .app-brand .layout-menu-toggle {
  border-color: #2b2c40 !important;
  background-color: #696cff !important;
}

/* --------------------------------------------------------------------------
   Top Navbar
   -------------------------------------------------------------------------- */
html.dark-style #layout-navbar.bg-navbar-theme,
html.dark-style .layout-navbar.bg-navbar-theme {
  background-color: rgba(43, 44, 64, 0.96) !important;
  color: #dbddeb !important;
  border: 1px solid #3b3c56;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px);
}

html.dark-style #layout-navbar .form-control {
  background: transparent !important;
  color: #dbddeb !important;
}

html.dark-style #layout-navbar .form-control::placeholder {
  color: #797c9a !important;
}

html.dark-style #layout-navbar .bx-search {
  color: #797c9a !important;
}

html.dark-style .branch-country {
  background: #323249 !important;
  border-color: #444564 !important;
  color: #dbddeb !important;
}

html.dark-style .country-flag {
  border-color: #444564 !important;
}

html.dark-style .navbar-user-name {
  color: #dbddeb !important;
}

/* --------------------------------------------------------------------------
   Theme Switcher Button
   -------------------------------------------------------------------------- */
.theme-switcher-btn {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

html:not(.dark-style) .theme-switcher-btn {
  background-color: #f5f8fc;
  border: 1px solid #e1e8f0;
  color: #566a7f;
}

html:not(.dark-style) .theme-switcher-btn:hover {
  background-color: #e8ecf4;
  color: #696cff;
  transform: rotate(-15deg);
}

html.dark-style .theme-switcher-btn {
  background-color: #323249;
  border: 1px solid #444564;
  color: #ffab00;
}

html.dark-style .theme-switcher-btn:hover {
  background-color: #3f405c;
  color: #ffd074;
  transform: rotate(20deg);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
html.dark-style .card {
  background-color: #2b2c40 !important;
  border: 1px solid #3b3c56 !important;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25) !important;
  color: #a3a4cc;
}

html.dark-style .card-header,
html.dark-style .card-footer {
  border-color: #3b3c56 !important;
  background-color: transparent !important;
  color: #dbddeb !important;
}

html.dark-style .card-title,
html.dark-style .card-header h1,
html.dark-style .card-header h2,
html.dark-style .card-header h3,
html.dark-style .card-header h4,
html.dark-style .card-header h5,
html.dark-style .card-header h6 {
  color: #dbddeb !important;
}

/* --------------------------------------------------------------------------
   Forms & Controls
   -------------------------------------------------------------------------- */
html.dark-style .form-control,
html.dark-style .form-select,
html.dark-style textarea {
  background-color: #2b2c40 !important;
  border-color: #444564 !important;
  color: #dbddeb !important;
}

html.dark-style .form-control::placeholder,
html.dark-style textarea::placeholder {
  color: #797c9a !important;
}

html.dark-style .form-control:focus,
html.dark-style .form-select:focus,
html.dark-style textarea:focus {
  border-color: #696cff !important;
  background-color: #2b2c40 !important;
  color: #dbddeb !important;
  box-shadow: 0 0 0.25rem 0.05rem rgba(105, 108, 255, 0.25) !important;
}

html.dark-style .form-control:disabled,
html.dark-style .form-control[readonly],
html.dark-style .form-select:disabled {
  background-color: #222332 !important;
  border-color: #383952 !important;
  color: #6b6d8c !important;
}

html.dark-style .form-label {
  color: #b4b7d6 !important;
}

html.dark-style .input-group-text {
  background-color: #323249 !important;
  border-color: #444564 !important;
  color: #dbddeb !important;
}

html.dark-style .form-check-input {
  background-color: #2b2c40;
  border-color: #444564;
}

html.dark-style .form-check-input:checked {
  background-color: #696cff;
  border-color: #696cff;
}

html.dark-style .form-check-label {
  color: #a3a4cc;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
html.dark-style .table {
  color: #a3a4cc !important;
  border-color: #3b3c56 !important;
}

html.dark-style .table thead th,
html.dark-style .table th {
  background-color: #26273b !important;
  color: #dbddeb !important;
  border-color: #3b3c56 !important;
}

html.dark-style .table tbody td,
html.dark-style .table td {
  background-color: transparent;
  border-color: #383952 !important;
  color: #a3a4cc !important;
}

html.dark-style .table-hover tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.035) !important;
  color: #dbddeb !important;
}

html.dark-style .table-striped tbody tr:nth-of-type(odd) td {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

html.dark-style .table-responsive {
  border-color: #3b3c56 !important;
}

html.dark-style .table-border-bottom-0 {
  border-bottom-color: #3b3c56 !important;
}

/* --------------------------------------------------------------------------
   Dropdowns & Modals
   -------------------------------------------------------------------------- */
html.dark-style .dropdown-menu {
  background-color: #2b2c40 !important;
  border: 1px solid #444564 !important;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.5) !important;
}

html.dark-style .dropdown-item {
  color: #dbddeb !important;
}

html.dark-style .dropdown-item:hover,
html.dark-style .dropdown-item:focus {
  background-color: rgba(105, 108, 255, 0.14) !important;
  color: #696cff !important;
}

html.dark-style .dropdown-divider {
  border-color: #3b3c56 !important;
}

html.dark-style .dropdown-header {
  color: #797c9a !important;
}

html.dark-style .modal-content {
  background-color: #2b2c40 !important;
  border: 1px solid #444564 !important;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.6) !important;
  color: #dbddeb !important;
}

html.dark-style .modal-header,
html.dark-style .modal-footer {
  border-color: #3b3c56 !important;
}

html.dark-style .modal-title {
  color: #dbddeb !important;
}

html.dark-style .btn-close {
  filter: invert(1) grayscale(100%) !important;
}

/* --------------------------------------------------------------------------
   Badges & Soft Badges
   -------------------------------------------------------------------------- */
html.dark-style .bg-label-primary {
  background-color: rgba(105, 108, 255, 0.16) !important;
  color: #8c8eff !important;
}

html.dark-style .bg-label-secondary {
  background-color: rgba(133, 146, 163, 0.16) !important;
  color: #a7acb2 !important;
}

html.dark-style .bg-label-success {
  background-color: rgba(113, 221, 55, 0.16) !important;
  color: #71dd37 !important;
}

html.dark-style .bg-label-info {
  background-color: rgba(3, 195, 236, 0.16) !important;
  color: #03c3ec !important;
}

html.dark-style .bg-label-warning {
  background-color: rgba(255, 171, 0, 0.16) !important;
  color: #ffab00 !important;
}

html.dark-style .bg-label-danger {
  background-color: rgba(255, 62, 29, 0.16) !important;
  color: #ff3e1d !important;
}

html.dark-style .bg-label-dark {
  background-color: rgba(219, 222, 224, 0.16) !important;
  color: #dbdee0 !important;
}

html.dark-style .badge-soft-primary { background-color: rgba(105, 108, 255, 0.2) !important; color: #8c8eff !important; }
html.dark-style .badge-soft-success { background-color: rgba(113, 221, 55, 0.2) !important; color: #71dd37 !important; }
html.dark-style .badge-soft-warning { background-color: rgba(255, 171, 0, 0.2) !important; color: #ffab00 !important; }
html.dark-style .badge-soft-info { background-color: rgba(3, 195, 236, 0.2) !important; color: #03c3ec !important; }
html.dark-style .badge-soft-secondary { background-color: rgba(133, 146, 163, 0.2) !important; color: #a7acb2 !important; }
html.dark-style .badge-soft-danger { background-color: rgba(255, 62, 29, 0.2) !important; color: #ff3e1d !important; }

/* --------------------------------------------------------------------------
   Buttons & Outlines
   -------------------------------------------------------------------------- */
html.dark-style .btn-outline-secondary {
  color: #a3a4cc !important;
  border-color: #444564 !important;
}

html.dark-style .btn-outline-secondary:hover {
  background-color: #3b3c56 !important;
  color: #dbddeb !important;
}

html.dark-style .btn-outline-primary {
  color: #8c8eff !important;
  border-color: #696cff !important;
}

html.dark-style .btn-outline-primary:hover {
  background-color: #696cff !important;
  color: #fff !important;
}

html.dark-style .btn-default {
  background-color: #323249 !important;
  border-color: #444564 !important;
  color: #dbddeb !important;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
html.dark-style .page-link {
  background-color: #2b2c40 !important;
  border-color: #444564 !important;
  color: #a3a4cc !important;
}

html.dark-style .page-item.active .page-link {
  background-color: #696cff !important;
  border-color: #696cff !important;
  color: #fff !important;
}

html.dark-style .page-item.disabled .page-link {
  background-color: #232333 !important;
  border-color: #383952 !important;
  color: #686b88 !important;
}

/* --------------------------------------------------------------------------
   Nav Tabs & Accordions
   -------------------------------------------------------------------------- */
html.dark-style .nav-tabs .nav-link {
  color: #a3a4cc !important;
}

html.dark-style .nav-tabs .nav-link.active {
  background-color: #2b2c40 !important;
  border-color: #444564 #444564 #2b2c40 !important;
  color: #696cff !important;
}

html.dark-style .nav-tabs {
  border-color: #444564 !important;
}

html.dark-style .accordion-item {
  background-color: #2b2c40 !important;
  border-color: #3b3c56 !important;
}

html.dark-style .accordion-button {
  background-color: #2b2c40 !important;
  color: #dbddeb !important;
}

html.dark-style .accordion-button:not(.collapsed) {
  background-color: rgba(105, 108, 255, 0.12) !important;
  color: #696cff !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
html.dark-style footer.content-footer,
html.dark-style .bg-footer-theme {
  background-color: #2b2c40 !important;
  border-top: 1px solid #3b3c56 !important;
  color: #8688a2 !important;
}

html.dark-style footer.content-footer .text-body,
html.dark-style footer.content-footer .footer-link {
  color: #8688a2 !important;
}

/* --------------------------------------------------------------------------
   Typography & Utilities
   -------------------------------------------------------------------------- */
html.dark-style h1, html.dark-style h2, html.dark-style h3,
html.dark-style h4, html.dark-style h5, html.dark-style h6 {
  color: #dbddeb !important;
}

html.dark-style .text-dark {
  color: #dbddeb !important;
}

html.dark-style .text-muted {
  color: #797c9a !important;
}

html.dark-style .text-body {
  color: #a3a4cc !important;
}

html.dark-style hr {
  border-color: #3b3c56 !important;
  opacity: 1;
}

html.dark-style .border-top,
html.dark-style .border-bottom,
html.dark-style .border-start,
html.dark-style .border-end,
html.dark-style .border {
  border-color: #3b3c56 !important;
}

html.dark-style .bg-light {
  background-color: #26273b !important;
  color: #dbddeb !important;
}

html.dark-style .bg-white {
  background-color: #2b2c40 !important;
  color: #a3a4cc !important;
}

/* --------------------------------------------------------------------------
   Custom UnitedCargo Components
   -------------------------------------------------------------------------- */
html.dark-style .kyc-upload-dropzone {
  background-color: #252638 !important;
  border-color: #696cff !important;
}

html.dark-style .kyc-upload-dropzone:hover,
html.dark-style .kyc-upload-dropzone.dragover {
  background-color: #2e2f47 !important;
}

html.dark-style .kyc-thumb-card {
  background-color: #2b2c40 !important;
  border-color: #444564 !important;
}

html.dark-style .kyc-thumb-img-wrapper {
  background-color: #232333 !important;
}

html.dark-style .kyc-thumb-info {
  background-color: #2b2c40 !important;
  border-color: #3b3c56 !important;
  color: #dbddeb !important;
}

html.dark-style .kyc-thumb-info span {
  color: #dbddeb !important;
}

/* Invoice edit bottom sticky bar */
html.dark-style .sticky-bottom,
html.dark-style .card.position-sticky {
  background-color: #2b2c40 !important;
  border-color: #444564 !important;
}

