/* Add consistent spacing system */
:root {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
}

/* Improve card styling */
.mud-card {
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.mud-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Enhanced button styling */
.mud-button {
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  transition: all 0.2s ease !important;
}

.hide-select td .mud-checkbox,
.hide-select td .mud-checkbox-root,
.hide-select td input[type="checkbox"] {
    visibility: hidden; /* keeps layout aligned */
    pointer-events: none;
}

.mud-button:hover {
  transform: translateY(-1px) !important;
}

/*.mud-button.mud-button-excel-green {*/
/*    background-color: #1d6f42 !important;*/
/*    color: white !important;*/
/*}*/

/*.mud-button.mud-button-excel-green:hover {*/
/*    transform: translateY(-1px) !important;*/
/*}*/

.mud-button.mud-button-filled.mud-button-excel-green {
    background-color: #1D6F42 !important;
    color: white !important;
}

.mud-button.mud-button-filled.mud-button-excel-green:hover {
    background-color: #155a35 !important;
}

/* Enhanced drawer styling */
.mud-drawer {
  border-right: 1px solid var(--mud-palette-divider) !important;
  background: var(--mud-palette-drawer-background) !important;
}

/* Better navigation menu */
.mud-nav-menu {
  padding: var(--spacing-md) !important;
  background-color: transparent !important;
}

.mud-nav-link {
  border-radius: 8px !important;
  margin: 2px 0 !important;
  transition: all 0.2s ease !important;
}

.mud-nav-link:hover {
  background-color: rgba(0, 105, 248, 0.12) !important;
  transform: translateX(4px) !important;
}

/* Enhanced app bar */
.mud-appbar,
.mud-appbar .mud-toolbar {
  background: linear-gradient(135deg, #0069f8 0%, #0056d6 100%) !important;
  box-shadow: none !important;
}

.mud-appbar {
  box-shadow: 0 4px 12px rgba(0, 105, 248, 0.3) !important;
}

/* Remove MudLayout's appbar right padding that creates visible gutter */
.mud-layout .mud-appbar:not(.enhanced-appbar) {
  padding-right: 0 !important;
}

/* Ensure enhanced-appbar right padding takes precedence over MudLayout's override */
.mud-layout .enhanced-appbar {
  padding-right: 24px !important;
}

/* Enhanced storage grid styling */
.grid-item-storage {
  border: 2px solid #10b981 !important;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.grid-item-storage:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.grid-item-storage.focused {
  border: 1px solid #f59e0b !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2) !important;
}

/* Improved grid item states */
.storage-state-display .storage-block-occupied {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-radius: 4px !important;
}

.storage-state-display .storage-block-empty {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
  border: 1px solid #d1d5db !important;
  border-radius: 4px !important;
}

/* Enhanced dashboard cards */
.revo-global-dash-card {
  background: linear-gradient(135deg, #0069f8 0%, #0056d6 100%) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 105, 248, 0.2) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
}

.revo-global-dash-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0, 105, 248, 0.3) !important;
}

.revo-global-dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

/* Enhanced form styling */
.mud-input {
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

/* Picker inputs - match outlined text field styling */
.mud-picker .mud-input-control .mud-input-outlined {
  background-color: transparent !important;
}

.mud-input:focus-within {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 105, 248, 0.15) !important;
}

/* Better table styling */
.mud-table {
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.mud-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  font-weight: 600 !important;
}

/* Smooth loading animations */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
  background-size: 200% 100% !important;
  animation: loading 1.5s infinite !important;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Page transitions */
.page-transition {
  animation: fadeIn 0.3s ease-in-out !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .mud-drawer {
    width: 280px !important;
  }
  
  .mud-container {
    padding: var(--spacing-sm) !important;
  }
  
  .revo-global-dash-card {
    height: 120px !important;
  }
}

/* Touch-friendly interactions */
@media (hover: none) {
  .mud-button:hover {
    transform: none !important;
  }
  
  .grid-item-storage:hover {
    transform: none !important;
  }
}

/* Better focus indicators */
.mud-button:focus,
.mud-input:focus,
.mud-nav-link:focus {
  outline: 2px solid #0069f8 !important;
  outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  .mud-card {
    border: 2px solid #000000 !important;
  }
  
  .grid-item-storage {
    border: 1px solid #000000 !important;
  }
}

.nav-card-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
}

.nav-card-row {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: stretch;
}

.nav-card-row .mud-grid {
    height: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-card-row .mud-grid-item {
    display: flex;
    height: 100%;
    padding: 8px;
}

/* Remove padding from first items in each row so they align with page edge */
.nav-card-row .mud-grid-item:first-child {
    padding-left: 0 !important;
}

/* Remove top padding from first row */
.nav-card-row:first-child .mud-grid-item {
    padding-top: 0 !important;
}

/* Remove bottom padding from last row */
.nav-card-row:last-child .mud-grid-item {
    padding-bottom: 0 !important;
}

.nav-card-row .mud-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.nav-card-row .mud-card-content {
    flex: 1;
}

/* Hardware acceleration for animations */
.mud-card,
.grid-item-storage,
.revo-global-dash-card {
  will-change: transform !important;
  backface-visibility: hidden !important;
}

/* Reduce paint operations */
.mud-drawer,
.mud-appbar {
  will-change: transform !important;
}

.blurry-dialog {
    backdrop-filter: blur(10px);
}

.focused {
    filter: brightness(80%);
    border: 2px solid yellow !important;
}

.overlapping {
    background-color: red !important;
}

.layout-wrapper {
    z-index: 9;
}

/*Warehouse styles*/

.align-right input {
    text-align: right;
}

.align-right {
    text-align: right !important;
}

.bin-display {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
}

#layout-wrapper {
    overflow: hidden;
}

#grid-width-label {
    position: relative;
    left: 39%;
    top: -17px;
}

#grid-height-label {
    position: relative;
    top: 46%;
    left: -33px;
    transform: rotate(-90deg);
}

#grid-details-container {
    background-color: #2ea6cb;
    z-index: 2;
}

.grid-item {
    overflow: hidden;
    text-align: center;
}

.grid-item-actions {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    z-index: 999;
}

.grid-item-area .grid-item-actions {
    visibility: visible !important;
}

.grid-item-label {
    vertical-align: middle;
    padding-top: 15%;
    font-size: 0.8em;
}

.large-grid-item-label {
    vertical-align: middle;
    padding-top: 15%;
    font-size: larger;
}

.grid-item-height-label {
    position: absolute;
    top: 50%;
    left: 0;
    font-size: 0.8em;
}

.grid-item-width-label {
    position: absolute;
    left: 50%;
    top: 0;
    font-size: 0.8em;
}

.resize {
    resize: both;
    z-index: 1000 !important;
}


.grid-item-area {
    border: 2px solid deepskyblue;
    background-color: lightskyblue;
    position: absolute;
}

.grid-item-section {
    /*border: 2px solid hotpink;*/
    /*background-color: pink;*/
    position: absolute;
}


.grid-item-storage:hover > .options-display {
    visibility: hidden;
}

.grid-item-driveway {
    border: 2px solid darkslategray;
    background-color: gray;
    background-image: linear-gradient(transparent 50%, rgba(255, 255, 255, .5) 50%);
    background-size: 50px 50px;
    position: absolute;
}

.grid-item-unusable-space {
    border: 2px solid darkslateblue;
    background-image: repeating-linear-gradient(45deg,
    slateblue 10px,
    slateblue 12px,
    transparent 12px,
    transparent 20px);
    position: absolute;
}

.hide {
    display: none;
    visibility: hidden;
}

.action-buttons {
    margin-bottom: 10px;
}

.grid-item-storage {
    border: 1px solid green;
}

.grid-item-storage {
    background-color: palegreen;
    position: absolute;
}

.grid-item-storage.focused {
    border: 1px solid yellow !important;
}

.grid-item-bin-stack {
    position: absolute;
}

.grid-item-bin-heap {
    position: absolute;
}

.grid-item-bin {
    position: absolute;
    border: 2px dashed green;
}


/*Warehouse Planner styles*/
#layout-wrapper {
    overflow: hidden;
}

.grid-item {
    overflow: hidden;
    text-align: center;
}

#grid-info-panel {
    border: 2px solid black;
    left: 75%;
    position: relative;
    width: 20%;
    overflow-y: scroll;
}

.grid-item-area-display {
    border: 2px solid deepskyblue;
    position: absolute;
}

.grid-item-section-display {
    /*border: 2px solid hotpink;*/
    position: absolute;
}

.grid-item-storage-display {
    border: 1px solid #4d4d4d;
}
.item_count0{
 background-color: #a7f3d0;
}

.item_count1{
    background-color: #375330;
}
.item_count2{
    background-color: #337133;
}
.item_count3{
    background-color: #13a513;
}
.item_count4{
    background-color: #00ff05;
}
.grid-item-driveway-display {
    border: 2px solid darkslategray;
    background-color: gray;
    background-image: linear-gradient(transparent 50%, rgba(255, 255, 255, .5) 50%);
    background-size: 50px 50px;
    position: absolute;
}

.grid-item-unusable-space-display {
    border: 2px solid darkslateblue;
    background-image: repeating-linear-gradient(45deg,
    slateblue 10px,
    slateblue 12px,
    transparent 12px,
    transparent 20px);
    position: absolute;
}

.grid-item-storage-display-zoomed {
    border: 1px solid #4d4d4d;
    margin-top: -2%;
}

.grid-item-storage-display.with-background {
    background-color: palegreen;
}

.bin-item-stack {
    border: 1px solid #4d4d4d;
    /*height: 25%;*/
    width: 100%;
    /*position: relative;*/
    /*left: 35%;*/
    /*text-align: center;*/
    align-content: center;
}

.bin-item-stack.one-stacked {
    top: 30%;
}

.bin-item-stack.two-stacked {
    top: 25%;
}

.bin-item-stack.three-stacked {
    top: 20%;
}

.bin-item-stack.four-stacked {
    top: 15%;
}

.bin-item-stack.five-stacked {
    top: 10%;
}

.empty-bin-stack {
    background-color: green;
}

.half-bin-stack {
    background-color: orange;
}

.full-bin-stack {
    background-color: red;
}

.storage-state-display {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: stretch;
    gap: 4px;
}

.storage-state-display .storage-block {
    flex: 1;
    margin: 0 2px;;
}

.storage-state-display .storage-block-empty {

    background: #eeeeee;
}

.storage-state-display .storage-block-occupied {
    background-color: #31b54a;
}

.bin-display-full {
    background-color: #31b54a;
}

.bin-display-empty {
    background: #eeeeee;
}


#cargo-movement-summary-widget {
    width: 100%;
    height: 300px;
    margin-left: 20%;
    display: inline-block;
}

.cargo-summary-text {
    display: table;

}

#cargo-in {
    border-left: black solid 1px;
    border-top: black solid 1px;
    border-bottom: black solid 1px;
    background-color: aqua;
    width: 20%;
    height: 60%;
    display: inherit;
    margin-bottom: 5%;
    margin-right: -3px;
    cursor: pointer;
}

#cargo-in > .cargo-summary-text {
    padding-left: 30%;
    padding-top: 50px;
}

#cargo-current {
    border: black solid 1px;
    background-color: aqua;
    width: 25%;
    height: 90%;
    display: inherit;
    cursor: pointer;
}

#cargo-current > .cargo-summary-text {
    padding-left: 25%;
    padding-top: 10%;
}

#cargo-out {
    border-right: black solid 1px;
    border-top: black solid 1px;
    border-bottom: black solid 1px;
    background-color: aqua;
    width: 20%;
    height: 60%;
    display: inherit;
    margin-bottom: 5%;
    margin-left: -4px;
    cursor: pointer;
}

#cargo-out > .cargo-summary-text {
    padding-left: 20%;
    padding-top: 50px;
}

.mud-wasm {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #594ae2 50%, #8680f9 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1
}

.mud-wasm-cont {
    left: 50%;
    padding: 10vmin;
    position: fixed;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%)
}

#wms__login {
    background-image: linear-gradient(-60deg, #0C80DF 50%, #2196F3 50%);
    font-family: Roboto, Helvetica, Arial, "sans-serif";
    font-weight: normal;
    color: rgb(66, 66, 66);
    min-height: 100%;
    overflow: hidden;

}

#wms__login h2 {
    font-family: Roboto, Helvetica, Arial, "sans-serif";
    font-size: 40px;
    margin: 0;
}

.wms__container {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
}

#wmsLogin {
    width: 450px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.118);
    text-align: center;
}


.form__input {
    font-family: Roboto, Helvetica, Arial, "sans-serif";
    color: #333;
    font-size: 1.2rem;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-radius: 0.2rem;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 0.118);
    width: 90%;
    display: block;
    transition: all 0.3s;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.login__button {
    font-family: Roboto, Helvetica, Arial, "sans-serif";
    padding: 12px 28px;
    background: rgb(89, 74, 226);
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);
    color: rgb(255, 255, 255);
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.login__button:hover {
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);
    background: rgb(62, 44, 221);
}

.login__error {
    background-color: #fdecea;
    border: 1px solid #f5c6c2;
    color: #c62828;
    border-radius: 4px;
    padding: 10px 16px;
    margin: 0 auto 12px auto;
    width: 90%;
    box-sizing: border-box;
    font-size: 0.95rem;
    text-align: center;
}

/*Dashboard Styles*/
.revo-global-dash-card {
    height: 150px !important;
    padding: 5px !important;
    text-align: center !important;
}

.revo-global-dash-card > .mud-typography-h5 {
    color: white;
    padding: 10px;
}

.revo-global-dash-card > .mud-typography-h4 {
    padding: 10px 0px 0px 0px;
}

.revo-global-dash-card > .mud-typography-h6 {
    padding: 0px;
}

/* Enhanced navigation styling */
.enhanced-nav-menu {
  padding: var(--spacing-md) !important;
}

.nav-group-item {
  margin-bottom: var(--spacing-sm) !important;
}

.nav-link-item {
  margin: 2px 0 !important;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.nav-link-item:hover {
  background-color: rgba(0, 105, 248, 0.1) !important;
  transform: translateX(4px) !important;
}

.nav-link-item.mud-nav-link-active {
  background-color: rgba(0, 105, 248, 0.15) !important;
  border-left: 3px solid #0069f8 !important;
}

/* Enhanced app bar styling */
.mud-appbar .mud-typography-h4 {
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Dashboard card styling */
.dashboard-card {
  height: 100% !important;
  transition: all 0.3s ease !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.dashboard-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-card .mud-card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.dashboard-card .mud-card-header .mud-icon {
  margin-right: var(--spacing-sm) !important;
}

.dashboard-card .mud-card-content {
  padding: var(--spacing-lg) !important;
}

/* Quick actions section */
.mud-paper {
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
}

.mud-stack .mud-button {
  min-width: 140px !important;
}

/* Enhanced app bar styling */
.enhanced-appbar {
  background: linear-gradient(135deg, #0069f8 0%, #0056d6 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 105, 248, 0.3) !important;
  /*padding: 0 var(--spacing-lg) !important;*/
    padding: 0 24px 0 7px !important;
}

.enhanced-appbar .app-title {
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  color: #ffffff !important;
}

.enhanced-appbar .app-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400 !important;
}

.enhanced-appbar .menu-toggle-btn {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.enhanced-appbar .menu-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.05) !important;
}

/* Enhanced drawer styling */
.enhanced-drawer {
  border-right: 1px solid var(--mud-palette-divider) !important;
  background: var(--mud-palette-drawer-background) !important;
}

/* Utility classes for consistent spacing */
.mt-xs { margin-top: var(--spacing-xs) !important; }
.mt-sm { margin-top: var(--spacing-sm) !important; }
.mt-md { margin-top: var(--spacing-md) !important; }
.mt-lg { margin-top: var(--spacing-lg) !important; }
.mt-xl { margin-top: var(--spacing-xl) !important; }

.mb-xs { margin-bottom: var(--spacing-xs) !important; }
.mb-sm { margin-bottom: var(--spacing-sm) !important; }
.mb-md { margin-bottom: var(--spacing-md) !important; }
.mb-lg { margin-bottom: var(--spacing-lg) !important; }
.mb-xl { margin-bottom: var(--spacing-xl) !important; }

.pa-xs { padding: var(--spacing-xs) !important; }
.pa-sm { padding: var(--spacing-sm) !important; }
.pa-md { padding: var(--spacing-md) !important; }
.pa-lg { padding: var(--spacing-lg) !important; }
.pa-xl { padding: var(--spacing-xl) !important; }

/* Enhanced form styling */
.mud-form-control {
  margin-bottom: var(--spacing-md) !important;
}

.mud-input-control {
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.mud-input-control:focus-within {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 105, 248, 0.15) !important;
}

/* Enhanced table styling */
.mud-table-container {
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.mud-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  font-weight: 600 !important;
  color: #374151 !important;
}

.mud-table tbody tr:hover {
  background-color: rgba(0, 105, 248, 0.05) !important;
}

/* Enhanced dialog styling */
.mud-dialog {
  border-radius: 16px !important;
}

.mud-dialog-title {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid #e5e7eb !important;
}

/* Enhanced snackbar styling */
.mud-snackbar {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced warehouse grid styling */
/*.grid-item-area {*/
/*  border: 2px solid #3b82f6 !important;*/
/*  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;*/
/*  border-radius: 8px !important;*/
/*  transition: all 0.3s ease !important;*/
/*}*/

/*.grid-item-area:hover {*/
/*  transform: scale(1.02) !important;*/
/*  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;*/
/*}*/

/*.grid-item-section {*/
/*  border: 2px solid #ec4899 !important;*/
/*  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%) !important;*/
/*  border-radius: 8px !important;*/
/*  transition: all 0.3s ease !important;*/
/*}*/

/*.grid-item-section:hover {*/
/*  transform: scale(1.02) !important;*/
/*  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3) !important;*/
/*}*/

/*.grid-item-driveway {*/
/*  border: 2px solid #64748b !important;*/
/*  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;*/
/*  background-image: linear-gradient(transparent 50%, rgba(255, 255, 255, .5) 50%) !important;*/
/*  background-size: 50px 50px !important;*/
/*  border-radius: 8px !important;*/
/*  transition: all 0.3s ease !important;*/
/*}*/

/*.grid-item-driveway:hover {*/
/*  transform: scale(1.02) !important;*/
/*  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3) !important;*/
/*}*/

/*.grid-item-unusable-space {*/
/*  border: 2px solid #6366f1 !important;*/
/*  background-image: repeating-linear-gradient(45deg,*/
/*    #c7d2fe 10px,*/
/*    #c7d2fe 12px,*/
/*    transparent 12px,*/
/*    transparent 20px) !important;*/
/*  border-radius: 8px !important;*/
/*  transition: all 0.3s ease !important;*/
/*}*/

/*.grid-item-unusable-space:hover {*/
/*  transform: scale(1.02) !important;*/
/*  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;*/
/*}*/

/* Enhanced cargo movement widget */
#cargo-movement-summary-widget {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-radius: 16px !important;
  padding: var(--spacing-lg) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#cargo-in,
#cargo-current,
#cargo-out {
  border-radius: 12px !important;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3) !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

#cargo-in:hover,
#cargo-current:hover,
#cargo-out:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4) !important;
}

.cargo-summary-text {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced bin display styling */
.bin-display {
  gap: var(--spacing-sm) !important;
}

.bin-item-stack {
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

.storage-block:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.empty-bin-stack {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid #10b981 !important;
}

.half-bin-stack {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1px solid #f59e0b !important;
}

.full-bin-stack {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: 1px solid #ef4444 !important;
}

/* Enquire page specific styling */
.summary-card {
  height: 100% !important;
  transition: all 0.3s ease !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
}

.summary-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.summary-card.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
}

.summary-card.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

.summary-card.info {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: white !important;
}

.summary-card .mud-typography-h4 {
  color: inherit !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.summary-card .mud-typography-body2 {
  color: inherit !important;
  opacity: 0.9 !important;
}

/* Enhanced table styling for Enquire page */
.enhanced-table {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.enhanced-table .mud-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  font-weight: 600 !important;
  color: #374151 !important;
  border-bottom: 2px solid #e5e7eb !important;
}

.enhanced-table .mud-table tbody tr:hover {
  background-color: rgba(0, 105, 248, 0.05) !important;
  transform: scale(1.01) !important;
  transition: all 0.2s ease !important;
}

.enhanced-table .mud-table tbody tr {
  transition: all 0.2s ease !important;
}

/* Dialog styling */
.mud-dialog {
  border-radius: 16px !important;
}

.mud-dialog .mud-dialog-title {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: var(--spacing-lg) !important;
}

.mud-dialog .mud-dialog-content {
  padding: var(--spacing-lg) !important;
}

.mud-dialog .mud-dialog-actions {
  padding: var(--spacing-lg) !important;
  border-top: 1px solid #e5e7eb !important;
  background: #f8fafc !important;
}

/* Search and filter section styling */
.mud-paper .mud-text-field,
.mud-paper .mud-select,
.mud-paper .mud-numeric-field {
  margin-bottom: var(--spacing-sm) !important;
}

.mud-paper .mud-button {
  margin-right: var(--spacing-sm) !important;
}

/* Expansion panels styling */
.mud-expansion-panels .mud-expansion-panel {
  border-radius: 8px !important;
  margin-bottom: var(--spacing-sm) !important;
  border: 1px solid #e5e7eb !important;
}

.mud-expansion-panels .mud-expansion-panel-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-radius: 8px 8px 0 0 !important;
}

/* Status chip styling */
.mud-chip {
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.5px !important;
}

/* Action button styling */
.mud-icon-button {
  margin: 0 2px !important;
  transition: all 0.2s ease !important;
}

.mud-icon-button:hover {
  /*transform: scale(1.1) !important;*/
}

/* Loading states */
.loading-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    border-radius: inherit !important;
}

.dark-mode .loading-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Responsive adjustments for Enquire page */
@media (max-width: 768px) {
  .summary-card {
    margin-bottom: var(--spacing-md) !important;
  }
  
  .enhanced-table {
    font-size: 0.875rem !important;
  }
  
  .mud-dialog {
    margin: var(--spacing-sm) !important;
    max-width: calc(100vw - 2rem) !important;
  }
}

/* ==========================================================================
   DARK MODE OVERRIDES
   Applied when html/body has the dark-mode class (set by inline script for FOUC prevention, then ThemeProvider via JS)
   ========================================================================== */

.dark-mode {
  --dark-surface: var(--mud-palette-surface);
  --dark-bg: var(--mud-palette-background);
  --dark-text: var(--mud-palette-text-primary);
  --dark-text-secondary: var(--mud-palette-text-secondary);
  --dark-divider: var(--mud-palette-divider);
  --dark-primary: var(--mud-palette-primary);
  --grid-bg-color: var(--mud-palette-background);
  --grid-line-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* Cards - softer shadows for dark mode */
.dark-mode .mud-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .mud-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Nav link hover - use primary color variable instead of hardcoded blue */
.dark-mode .mud-nav-link:hover {
  background-color: rgba(108, 142, 239, 0.12) !important;
}

.dark-mode .nav-link-item:hover {
  background-color: rgba(108, 142, 239, 0.12) !important;
}

.dark-mode .nav-link-item.mud-nav-link-active {
  background-color: rgba(108, 142, 239, 0.18) !important;
  border-left: 3px solid var(--mud-palette-primary) !important;
}

/* App bar - dark background instead of bright blue */
.dark-mode .mud-appbar,
.dark-mode .mud-appbar .mud-toolbar,
.dark-mode .enhanced-appbar,
.dark-mode .enhanced-appbar .mud-toolbar {
  background: var(--mud-palette-appbar-background) !important;
}

.dark-mode .mud-appbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .enhanced-appbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Remove MudLayout's appbar right padding that creates visible gutter */
.dark-mode .mud-layout .mud-appbar:not(.enhanced-appbar) {
  padding-right: 0 !important;
}

.dark-mode .mud-layout .enhanced-appbar {
  padding-right: 24px !important;
}

.dark-mode .mud-appbar .mud-typography-h4 {
  text-shadow: none !important;
}

.dark-mode .enhanced-appbar .app-title {
  text-shadow: none !important;
  color: var(--mud-palette-appbar-text) !important;
}

.dark-mode .enhanced-appbar .app-subtitle {
  color: var(--mud-palette-text-secondary) !important;
}

.dark-mode .enhanced-appbar .menu-toggle-btn {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode .enhanced-appbar .menu-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.14) !important;
}

/* Table headers - use surface color instead of hardcoded light */
.dark-mode .mud-table th {
  background: var(--mud-palette-surface) !important;
  color: var(--mud-palette-text-primary) !important;
}

.dark-mode .mud-table {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .mud-table-container {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .mud-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Enhanced table for Enquire */
.dark-mode .enhanced-table .mud-table th {
  background: var(--mud-palette-surface) !important;
  color: var(--mud-palette-text-primary) !important;
  border-bottom: 2px solid var(--mud-palette-divider) !important;
}

.dark-mode .enhanced-table .mud-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

.dark-mode .enhanced-table {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Dashboard cards - darker, muted */
.dark-mode .revo-global-dash-card {
  background: linear-gradient(135deg, rgba(108, 142, 239, 0.25) 0%, rgba(108, 142, 239, 0.15) 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(108, 142, 239, 0.2) !important;
}

.dark-mode .revo-global-dash-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .revo-global-dash-card::before {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.6) 0%, rgba(245, 158, 11, 0.6) 100%);
}

.dark-mode .dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .dashboard-card .mud-card-header {
  background: var(--mud-palette-surface) !important;
  border-bottom: 1px solid var(--mud-palette-divider) !important;
}

/* Summary cards - slightly muted for dark mode */
.dark-mode .summary-card {
  filter: brightness(0.85);
}

.dark-mode .summary-card:hover {
  filter: brightness(0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Dialogs - dark surfaces */
.dark-mode .mud-dialog-title {
  background: var(--mud-palette-surface) !important;
  border-bottom: 1px solid var(--mud-palette-divider) !important;
  color: var(--mud-palette-text-primary) !important;
}

.dark-mode .mud-dialog .mud-dialog-title {
  background: var(--mud-palette-surface) !important;
  border-bottom: 1px solid var(--mud-palette-divider) !important;
}

.dark-mode .mud-dialog .mud-dialog-actions {
  border-top: 1px solid var(--mud-palette-divider) !important;
  background: var(--mud-palette-background) !important;
}

/* Expansion panels - dark surfaces */
.dark-mode .mud-expansion-panels .mud-expansion-panel {
  border: 1px solid var(--mud-palette-divider) !important;
}

.dark-mode .mud-expansion-panels .mud-expansion-panel-header {
  background: var(--mud-palette-surface) !important;
}

/* Paper elements - dark borders */
.dark-mode .mud-paper {
  border: 1px solid var(--mud-palette-divider) !important;
}

/* Form inputs - softer focus shadow */
.dark-mode .mud-input:focus-within {
  box-shadow: 0 2px 8px rgba(108, 142, 239, 0.15) !important;
}

.dark-mode .mud-input-control:focus-within {
  box-shadow: 0 2px 8px rgba(108, 142, 239, 0.15) !important;
}

/* Focus indicators - softer */
.dark-mode .mud-button:focus,
.dark-mode .mud-input:focus,
.dark-mode .mud-nav-link:focus {
  outline: 2px solid var(--mud-palette-primary) !important;
  outline-offset: 2px !important;
}

/* Loading skeleton - dark variant */
.dark-mode .loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.06) 75%) !important;
}

/* Loading overlay - dark instead of white */
.dark-mode .loading-overlay {
  background: rgba(26, 26, 46, 0.8) !important;
}

/* Snackbar - softer shadow */
.dark-mode .mud-snackbar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Cargo movement widget - dark background */
.dark-mode #cargo-movement-summary-widget {
  background: var(--mud-palette-surface) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Bin display items - slightly muted */
.dark-mode .bin-item-stack {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .storage-block:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* Warehouse storage blocks - dark mode variants */
.dark-mode .storage-state-display .storage-block-empty {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dark-mode .storage-state-display .storage-block-occupied {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-radius: 4px !important;
}

.dark-mode .bin-display-empty {
  background: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode .bin-display-full {
  background-color: #059669 !important;
}

.dark-mode .empty-bin-stack {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: 1px solid #059669 !important;
}

.dark-mode .half-bin-stack {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border: 1px solid #d97706 !important;
}

.dark-mode .full-bin-stack {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 1px solid #dc2626 !important;
}

/* Grid item counts - dark mode softer colors */
.dark-mode .item_count0 {
  background-color: #065f46 !important;
}

.dark-mode .item_count4 {
  background-color: #10b981 !important;
}

/* Storage grid items - dark mode */
.dark-mode .grid-item-storage {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
}

.dark-mode .grid-item-storage:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0.18) 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.dark-mode .grid-item-storage.focused {
  border-color: rgba(245, 158, 11, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2) !important;
}

/* Grid area - dark mode */
.dark-mode .grid-item-area {
  background-color: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}

.dark-mode .grid-item-area-display {
  border-color: rgba(56, 189, 248, 0.5) !important;
}

/* Login page - dark mode */
.dark-mode #wms__login {
  background-image: linear-gradient(-60deg, #0a1628 50%, #0f2040 50%) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.dark-mode #wms__login h2 {
  color: rgba(255, 255, 255, 0.95) !important;
}

.dark-mode #wms__login p,
.dark-mode #wms__login p strong {
  color: rgba(255, 255, 255, 0.65) !important;
}

.dark-mode #wmsLogin {
  background: #1a1f35 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.dark-mode .form__input {
  color: #e0e0e0 !important;
  background-color: #252b45 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  caret-color: #e0e0e0 !important;
}

.dark-mode .form__input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
}

.dark-mode .form__input:focus {
  background-color: #252b45 !important;
  border-color: rgba(108, 142, 239, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(108, 142, 239, 0.15) !important;
}

.dark-mode .login__button {
  background: linear-gradient(135deg, rgba(108, 142, 239, 0.8) 0%, rgba(108, 142, 239, 0.6) 100%) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .login__button:hover {
  background: linear-gradient(135deg, rgba(108, 142, 239, 0.95) 0%, rgba(108, 142, 239, 0.75) 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .login__error {
  background-color: rgba(211, 47, 47, 0.15) !important;
  border-color: rgba(211, 47, 47, 0.4) !important;
  color: #ef9a9a !important;
}

/* Driveway grid items - dark mode */
.dark-mode .grid-item-driveway {
  background-color: #3a3a4a !important;
  border-color: #5a5a6a !important;
  background-image: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.03) 50%) !important;
}

.dark-mode .grid-item-driveway-display {
  background-color: #3a3a4a !important;
  border-color: #5a5a6a !important;
  background-image: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.03) 50%) !important;
}

/* Unusable space - dark mode */
.dark-mode .grid-item-unusable-space {
  border-color: #5a5a8a !important;
  background-image: repeating-linear-gradient(45deg,
    #3a3a5a 10px,
    #3a3a5a 12px,
    transparent 12px,
    transparent 20px) !important;
}

.dark-mode .grid-item-unusable-space-display {
  border-color: #5a5a8a !important;
  background-image: repeating-linear-gradient(45deg,
    #3a3a5a 10px,
    #3a3a5a 12px,
    transparent 12px,
    transparent 20px) !important;
}

/* Storage display - dark mode */
.dark-mode .grid-item-storage-display {
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.dark-mode .grid-item-storage-display-zoomed {
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.dark-mode .grid-item-storage-display.with-background {
  background-color: rgba(16, 185, 129, 0.15) !important;
}

.dark-mode .bin-item-stack {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Grid details panel - dark mode */
.dark-mode #grid-details-container {
  background-color: var(--mud-palette-surface) !important;
}

.dark-mode #grid-info-panel {
  border-color: var(--mud-palette-divider) !important;
}

/* High contrast mode - dark variant */
@media (prefers-contrast: more) {
  .dark-mode .mud-card {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
  }
  
  .dark-mode .grid-item-storage {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
  }
}

/* MudBlazor component fine-tuning for dark mode */

/* Chips - softer */
.dark-mode .mud-chip {
  font-weight: 500 !important;
}

/* Tooltip - ensure readable on dark */
.dark-mode .mud-tooltip {
  background: var(--mud-palette-surface) !important;
  color: var(--mud-palette-text-primary) !important;
  border: 1px solid var(--mud-palette-divider) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Select dropdown - dark mode */
.dark-mode .mud-select {
  color: var(--mud-palette-text-primary) !important;
}

/* Text fields - ensure proper colors */
.dark-mode .mud-input-outlined .mud-input-outlined-border {
  border-color: var(--mud-palette-lines-inputs) !important;
}

/* Data grid - dark mode */
.dark-mode .mud-data-grid {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .mud-data-grid .mud-table-cell {
  border-bottom-color: var(--mud-palette-table-lines) !important;
}

/* Tabs - dark mode */
.dark-mode .mud-tabs {
  background: var(--mud-palette-surface) !important;
}

/* Progress linear - dark mode */
.dark-mode .mud-progress-linear {
  background: rgb(96 88 88 / 0.69) !important; 
}

.dark-mode .mud-progress-linear .mud-progress-linear-bar {
  background: #10b981 !important;
}

/* Grid labels - dark mode */
.dark-mode .grid-item-label,
.dark-mode .large-grid-item-label {
  color: var(--mud-palette-text-primary) !important;
}

.dark-mode #grid-width-label,
.dark-mode #grid-height-label {
  color: var(--mud-palette-text-secondary) !important;
}

/* Grid item counts - dark mode missing 1-3 */
.dark-mode .item_count1 {
  background-color: #064e3b !important;
}

.dark-mode .item_count2 {
  background-color: #065f46 !important;
}

.dark-mode .item_count3 {
  background-color: #047857 !important;
}

/* Grid menu panel - dark mode border override for inline styles */
.dark-mode #layout-wrapper > div[style*="border"] {
  border-color: var(--mud-palette-divider) !important;
}

/* Alert - dark mode */
.dark-mode .mud-alert {
  border-radius: 8px !important;
}

/* Switch - dark mode track */
.dark-mode .mud-switch-track {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Slider - dark mode */
.dark-mode .mud-slider-track {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Autocomplete/Select popover - dark mode */
.dark-mode .mud-popover {
  background: var(--mud-palette-surface) !important;
  border: 1px solid var(--mud-palette-divider) !important;
}

/* Picker (date/time) - dark mode */
.dark-mode .mud-picker .mud-input-control {
  background: transparent !important;
}

.dark-mode .mud-picker-content {
  background: var(--mud-palette-surface) !important;
}

/* Toolbar - dark mode */
.dark-mode .mud-toolbar {
  background: var(--mud-palette-surface) !important;
}

/* Breadcrumbs - dark mode */
.dark-mode .mud-breadcrumb {
  color: var(--mud-palette-text-secondary) !important;
}

/* Divider - ensure visible in dark mode */
.dark-mode .mud-divider {
  border-color: var(--mud-palette-divider) !important;
}

/* Scrollbar styling for dark mode */
.dark-mode ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dark-mode ::-webkit-scrollbar-track {
  background: var(--mud-palette-background);
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Download page */
.download-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0C80DF;
    overflow: hidden;
    position: fixed;
    inset: 0;
    z-index: 0;
}

.download-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(-60deg, #0C80DF 50%, #2196F3 50%);
    animation: stripe-sweep 6s ease-in-out infinite alternate;
}

@keyframes stripe-sweep {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(3deg); }
}

.download-card {
    width: 450px;
    max-width: 90vw;
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.118);
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.download-card h2 {
    font-family: Roboto, Helvetica, Arial, "sans-serif";
    font-size: 40px;
    margin: 16px 0 0;
    color: rgb(66, 66, 66);
}

.download-card .subtitle {
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
    font-size: 14px;
}

.dark-mode .download-page {
    background: #0a1628;
}

.dark-mode .download-page::before {
    background: linear-gradient(-60deg, #0a1628 50%, #0f2040 50%);
}

.dark-mode .download-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark-mode .download-card h2 {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .download-card .subtitle {
    color: rgba(255, 255, 255, 0.5);
}


