/* ==========================================
   DEPOT PAGE - PLAYFUL & MODERN DESIGN
   Matches /app homepage style
   ========================================== */

/* Make background transparent so gradient shows through */
body.depot-page .product_section {
  background: transparent !important;
  min-height: auto;
  padding: 4rem 0 6rem 0;
}

body.depot-page .product_section .container {
  background: transparent !important;
  padding: 20px;
  max-width: 100% !important;
  width: 100% !important;
}

/* Page Heading - Bold & Playful */
body.depot-page .page_heading {
  font-size: 3rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin-top: 2rem !important;
  margin-bottom: 1.5rem !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  letter-spacing: -0.02em;
  position: relative;
  display: block !important;
  width: 100% !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.depot-page .page_heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg,
    rgba(37, 99, 235, 1) 0%,
    rgba(29, 78, 216, 1) 100%);
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* Buttons - Fancy Purple Glassmorphism */
body.depot-page .btn-branded {
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.95) 0%,
    rgba(29, 78, 216, 0.95) 50%,
    rgba(37, 99, 235, 0.95) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  box-shadow:
    0 4px 15px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 14px !important;
  text-transform: none;
  letter-spacing: 0.3px;
  margin-right: 10px !important;
  margin-bottom: 2.5rem !important;
  margin-top: 1.5rem !important;
  margin-left: 0 !important;
  display: inline-block !important;
  vertical-align: top !important;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: normal !important;
  position: relative;
  overflow: hidden;
}

body.depot-page .btn-branded::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: depotBtnShimmer 2s infinite;
}

@keyframes depotBtnShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

body.depot-page .btn-branded:hover {
  background: linear-gradient(135deg,
    rgba(29, 78, 216, 0.95) 0%,
    rgba(37, 99, 235, 0.95) 50%,
    rgba(29, 78, 216, 0.95) 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.6),
    0 0 30px rgba(29, 78, 216, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-3px) scale(1.02) !important;
}

body.depot-page .btn-branded:active {
  transform: translateY(-1px) scale(1.0) !important;
}

/* Removed - replaced with shimmer effect */

/* Cards - Modern Floating Style */
body.depot-page .card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.3s ease !important;
  overflow: hidden;
}

body.depot-page .card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.3) !important;
}

body.depot-page .card-body {
  padding: 1.5rem !important;
}

body.depot-page .card-title {
  font-weight: 700 !important;
  color: #1a1a1a !important;
  font-size: 1.25rem !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  margin-bottom: 1rem !important;
}

body.depot-page .card-text {
  color: #2d3748 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

body.depot-page .card-body .row .col-7 .card-text,
body.depot-page .card-body .row .col-5 .card-text {
  color: #2d3748 !important;
  opacity: 1 !important;
}

/* Animated Stats Numbers */
body.depot-page .fw-bold.fs-5 {
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: #2563eb !important;
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 1) 0%,
    rgba(29, 78, 216, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: depot-pulse 2s ease-in-out infinite;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (background-clip: text) or not (-webkit-background-clip: text) {
  body.depot-page .fw-bold.fs-5 {
    color: #2563eb !important;
    background: none !important;
    -webkit-text-fill-color: #2563eb !important;
  }
}

@keyframes depot-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

/* Table - Navy Blue Design with white text - FULL WIDTH with spacing */
body.depot-page .product_table {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  margin: 2rem 0 0 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
}

/* Fix Bootstrap rows inside product_table that break layout */
body.depot-page .product_table > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

/* Only add padding to DataTables control rows, not the table itself */
body.depot-page .product_table > .row:not(:has(.table-responsive)) {
  padding: 0 20px !important;
}

body.depot-page .table-responsive {
  border-radius: 0px !important;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  background: transparent !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.depot-page table.table {
  background: transparent !important;
  margin-bottom: 0 !important;
  border-radius: 0px;
  width: 100% !important;
  border-collapse: collapse !important;
}

body.depot-page table.table thead {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.depot-page table.table thead th {
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 16px 12px !important;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.depot-page table.table thead th:last-child {
  border-right: none !important;
}

body.depot-page table.table thead th:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.depot-page table.table tbody tr {
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.depot-page table.table tbody tr:last-child {
  border-bottom: none;
}

body.depot-page table.table tbody tr:hover {
  background: rgba(30, 58, 138, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.depot-page table.table tbody td {
  padding: 14px 12px !important;
  vertical-align: middle !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.depot-page table.table tbody td:last-child {
  border-right: none !important;
}

/* Product Images in Table */
body.depot-page table img {
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.depot-page table img:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Modern Search Container */
body.depot-page .search-container {
  position: relative;
  width: 100%;
}

body.depot-page .search-container .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  z-index: 2;
  pointer-events: none;
}

body.depot-page .search-container input {
  width: 100%;
  padding: 14px 20px 14px 48px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  font-size: 15px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

body.depot-page .search-container input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

body.depot-page .search-container input:focus {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

body.depot-page .search-container input:focus ~ .search-icon {
  color: rgba(255, 255, 255, 0.9);
}

/* Controls Wrapper - Flex layout for icon button and select */
body.depot-page .controls-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: flex-end !important;
}

/* Icon Toggle Button - Compact and Fancy */
body.depot-page .btn-icon-toggle {
  width: 50px !important;
  height: 50px !important;
  border-radius: 16px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

body.depot-page .btn-icon-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

body.depot-page .btn-icon-toggle:active {
  transform: translateY(0px) !important;
}

body.depot-page .btn-icon-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

/* Entries Select Wrapper */
body.depot-page .entries-select-wrapper {
  position: relative;
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}

body.depot-page .entries-select-wrapper select {
  width: 100% !important;
  padding: 14px 45px 14px 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
}

body.depot-page .entries-select-wrapper select:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

body.depot-page .entries-select-wrapper select:focus {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

body.depot-page .entries-select-wrapper select option {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

/* Hide DataTables default buttons container */
body.depot-page .dt-buttons {
  display: none !important;
}

/* Reduce DataTables wrapper top margin */
body.depot-page .dataTables_wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.depot-page .dataTables_wrapper .row:first-child {
  margin-top: 0 !important;
}

/* DataTables Info and Pagination - inside table-responsive box */
body.depot-page .table-responsive .row {
  margin: 0 !important;
  padding-top: 20px !important;
}

body.depot-page .table-responsive .dataTables_info {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.875rem !important;
  margin-bottom: 0 !important;
}

body.depot-page .table-responsive .dataTables_paginate {
  color: #ffffff !important;
}

/* CSV Export Button */
body.depot-page .btn-csv-export {
  padding: 14px 24px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  margin-right: 12px !important;
  white-space: nowrap !important;
}

body.depot-page .btn-csv-export:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

body.depot-page .btn-csv-export:active {
  transform: translateY(0px) !important;
}

/* Column Toggle Card - BLACK TEXT */
body.depot-page .column-toggle-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  overflow: hidden;
}

body.depot-page .column-toggle-title {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  text-shadow: none !important;
}

body.depot-page .column-toggle-card .form-check-label {
  color: #1a1a1a !important;
  font-weight: 500 !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  cursor: pointer !important;
  user-select: none !important;
  text-shadow: none !important;
}

body.depot-page .column-toggle-card .form-check-input {
  cursor: pointer !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid rgb(37, 99, 235) !important;
  border-radius: 6px !important;
}

body.depot-page .column-toggle-card .form-check-input:checked {
  background-color: rgb(37, 99, 235) !important;
  border-color: rgb(37, 99, 235) !important;
}

body.depot-page .column-toggle-card .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* Length Select - Fix overlap and make it pretty */
body.depot-page .dataTables_wrapper .dataTables_length {
  margin-bottom: 20px !important;
}

body.depot-page .dataTables_wrapper .dataTables_length select {
  border: 2px solid #e3f2fd !important;
  border-radius: 12px !important;
  padding: 8px 35px 8px 12px !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  background: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230066cc' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer !important;
}

body.depot-page .dataTables_wrapper .dataTables_length select:focus {
  border-color: rgb(37, 99, 235) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
  outline: none !important;
}

/* Column Visibility Buttons */
body.depot-page .dt-buttons {
  margin-bottom: 20px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.depot-page .dt-buttons .dt-button,
body.depot-page .btn-branded-table {
  background: rgb(37, 99, 235) !important;
  border: 2px solid rgb(37, 99, 235) !important;
  border-radius: 10px !important;
  padding: 8px 16px !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.depot-page .dt-buttons .dt-button span,
body.depot-page .btn-branded-table span,
body.depot-page .buttons-csv span,
body.depot-page .buttons-excel span,
body.depot-page .buttons-pdf span {
  color: #ffffff !important;
}

body.depot-page .dt-buttons .dt-button:hover {
  background: rgb(29, 78, 216) !important;
  border-color: rgb(29, 78, 216) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

body.depot-page .dt-buttons .dt-button:hover span {
  color: #ffffff !important;
}

body.depot-page .dt-buttons .dt-button.active {
  background: rgb(37, 99, 235) !important;
  border-color: rgb(37, 99, 235) !important;
  color: #ffffff !important;
}

body.depot-page .dt-buttons .dt-button.active span {
  color: #ffffff !important;
}

/* Dropdown menu for column visibility - NUR Farben, kein Layout überschreiben */
body.depot-page .dt-button-collection .dt-button:hover {
  background: rgb(37, 99, 235) !important;
  color: white !important;
}

body.depot-page .dt-button-collection .dt-button.active {
  background: #e3f2fd !important;
  color: rgb(37, 99, 235) !important;
}

/* Pagination */
body.depot-page .pagination .page-link {
  border: none !important;
  border-radius: 10px !important;
  margin: 0 4px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: rgb(37, 99, 235) !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  transition: all 0.2s ease !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

body.depot-page .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

body.depot-page .pagination .page-link:hover {
  background: #e3f2fd !important;
  color: rgb(29, 78, 216) !important;
  transform: translateY(-2px);
}

/* Modals - Super Modern & Playful Style */
body.depot-page .modal-content {
  border-radius: 30px !important;
  border: none !important;
  box-shadow: 0 25px 80px rgba(37, 99, 235, 0.25) !important;
  overflow: hidden;
  transform: scale(1);
  animation: modal-bounce-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modal-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(-50px);
  }
  70% {
    transform: scale(1.05) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

body.depot-page .modal-header {
  background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%) !important;
  color: white !important;
  border-bottom: none !important;
  border-radius: 30px 30px 0 0 !important;
  padding: 30px !important;
  position: relative;
  overflow: hidden;
}

/* Playful animated circles in header */
body.depot-page .modal-header::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

body.depot-page .modal-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

body.depot-page .modal-header .modal-title {
  color: white !important;
  font-weight: 900 !important;
  font-size: 1.75rem !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add LEGO brick icon before title */
body.depot-page .modal-header .modal-title::before {
  content: '🧱';
  margin-right: 12px;
  font-size: 1.5rem;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

body.depot-page .modal-header .btn-close {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  z-index: 2;
  position: relative;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  padding: 8px !important;
  width: 35px !important;
  height: 35px !important;
  transition: all 0.3s ease !important;
}

body.depot-page .modal-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: rotate(90deg) scale(1.1) !important;
}

body.depot-page .modal-body {
  padding: 40px !important;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

body.depot-page .modal-footer {
  border-top: none !important;
  padding: 25px 40px !important;
  background: #f8f9fa;
  border-radius: 0 0 30px 30px !important;
}

/* Submit buttons in modals */
body.depot-page .modal-footer .btn,
body.depot-page .modal-body .btn[type="submit"] {
  background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.3s ease !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  cursor: pointer;
}

body.depot-page .modal-footer .btn:hover,
body.depot-page .modal-body .btn[type="submit"]:hover {
  background: linear-gradient(135deg, rgb(29, 78, 216) 0%, rgb(29, 78, 216) 100%) !important;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
  transform: translateY(-3px) scale(1.05) !important;
}

body.depot-page .modal-footer .btn:active,
body.depot-page .modal-body .btn[type="submit"]:active {
  transform: translateY(-1px) scale(1.02) !important;
}

/* Cancel/Close buttons */
body.depot-page .modal-footer .btn-secondary {
  background: #ffffff !important;
  border: 2px solid #e3f2fd !important;
  color: rgb(37, 99, 235) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.depot-page .modal-footer .btn-secondary:hover {
  background: #f8f9fa !important;
  border-color: rgb(37, 99, 235) !important;
  color: rgb(29, 78, 216) !important;
}

/* Hide myBrickDepot branding in modals */
body.depot-page .modal-footer a[href*="mybrickdepot"],
body.depot-page .modal-footer .text-muted,
body.depot-page .modal-footer small.font-weight-bold,
body.depot-page .modal-footer span:has(small.font-weight-bold),
body.depot-page .modal-body a[href*="mybrickdepot"]:not(.btn) {
  display: none !important;
}

/* Product Preview in Modal */
body.depot-page #product-preview-container {
  background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%) !important;
  padding: 12px !important;
  border-radius: 14px !important;
  margin-bottom: 15px !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.1) !important;
  animation: slide-down 0.3s ease-out;
}

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

body.depot-page #product-preview-image {
  max-width: 130px !important;
  max-height: 130px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2) !important;
  transition: all 0.3s ease !important;
  border: 2px solid #ffffff !important;
  object-fit: contain !important;
}

body.depot-page #product-preview-image:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3) !important;
}

body.depot-page #product-preview-name {
  margin-top: 10px !important;
  font-weight: 700 !important;
  color: rgb(37, 99, 235) !important;
  font-size: 0.95rem !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Form Inputs in Modals */
body.depot-page .modal-body input[type="text"],
body.depot-page .modal-body input[type="number"],
body.depot-page .modal-body input[type="date"],
body.depot-page .modal-body select,
body.depot-page .modal-body textarea {
  border: 2px solid #e3f2fd !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  transition: all 0.3s ease !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
}

body.depot-page .modal-body input:focus,
body.depot-page .modal-body select:focus,
body.depot-page .modal-body textarea:focus {
  border-color: rgb(37, 99, 235) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
  outline: none !important;
}

/* Info Icon Tooltips */
body.depot-page .fa-info-circle {
  color: #ffffff !important;
  cursor: help;
  transition: all 0.2s ease;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

body.depot-page .fa-info-circle:hover {
  color: #ffffff !important;
  transform: scale(1.2);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Info Icons in Modals - make them visible */
body.depot-page .modal-body .fa-info-circle,
body.depot-page .modal-body i.fa-info-circle {
  color: #ffffff !important;
  background: rgb(37, 99, 235) !important;
  border-radius: 50% !important;
  padding: 2px !important;
  font-size: 14px !important;
}

body.depot-page .modal-body .fa-info-circle:hover,
body.depot-page .modal-body i.fa-info-circle:hover {
  background: rgb(29, 78, 216) !important;
  transform: scale(1.15) !important;
}

/* Tooltip text styling */
body.depot-page .tooltip {
  z-index: 99999 !important;
}

body.depot-page .tooltip .tooltip-inner {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  max-width: 300px !important;
  text-align: left !important;
}

body.depot-page .tooltip .tooltip-arrow::before {
  border-top-color: #1a1a1a !important;
  border-bottom-color: #1a1a1a !important;
}

/* Button Group in Tables */
body.depot-page .btn-group .btn {
  border-radius: 10px !important;
  margin: 0 3px !important;
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
}

/* File Upload Styling */
body.depot-page .modal-body input[type="file"] {
  width: 100% !important;
  padding: 15px !important;
  border: 3px dashed rgb(37, 99, 235) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  color: rgb(37, 99, 235) !important;
  margin: 20px 0 !important;
}

body.depot-page .modal-body input[type="file"]:hover {
  border-color: rgb(29, 78, 216) !important;
  background: linear-gradient(135deg, #e3f2fd 0%, #d1e9ff 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2) !important;
}

body.depot-page .modal-body input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%) !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  margin-right: 15px !important;
  transition: all 0.3s ease !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
}

body.depot-page .modal-body input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, rgb(29, 78, 216) 0%, rgb(29, 78, 216) 100%) !important;
  transform: scale(1.05) !important;
}

/* Upload Submit Button */
body.depot-page .modal-body form input[type="submit"] {
  width: 100% !important;
  background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.3s ease !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  cursor: pointer;
  margin-top: 10px !important;
}

body.depot-page .modal-body form input[type="submit"]:hover {
  background: linear-gradient(135deg, rgb(29, 78, 216) 0%, rgb(29, 78, 216) 100%) !important;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
  transform: translateY(-3px) scale(1.05) !important;
}

body.depot-page .modal-body form input[type="submit"]:active {
  transform: translateY(-1px) scale(1.02) !important;
}

/* Links in Upload Modals */
body.depot-page .modal-body a {
  color: rgb(37, 99, 235) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  transition: all 0.2s ease !important;
}

body.depot-page .modal-body a:hover {
  color: rgb(29, 78, 216) !important;
  text-decoration: none !important;
}

/* Loading Spinner */
body.depot-page .modal-body .spinner-border {
  width: 3rem !important;
  height: 3rem !important;
  border-width: 0.3em !important;
  border-color: rgb(37, 99, 235) !important;
  border-right-color: transparent !important;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  body.depot-page .page_heading {
    font-size: 2rem !important;
  }

  body.depot-page .btn-branded {
    padding: 10px 18px !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  body.depot-page .card {
    border-radius: 16px !important;
    margin-bottom: 20px !important;
  }

  body.depot-page .fw-bold.fs-5 {
    font-size: 1.5rem !important;
  }

  body.depot-page table.table thead th,
  body.depot-page table.table tbody td {
    padding: 10px 8px !important;
    font-size: 0.85rem !important;
  }

  /* Bessere Scroll-Erfahrung auf Mobile */
  body.depot-page .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    /* Scroll-Hinweis für User */
    box-shadow:
      inset -10px 0 10px -10px rgba(0, 0, 0, 0.3),
      inset 10px 0 10px -10px rgba(0, 0, 0, 0.3) !important;
  }

  /* Mindestbreite für Tabelle auf Mobile, damit horizontal gescrollt werden kann */
  body.depot-page table.table {
    min-width: 1200px !important;
  }

  /* Scroll-Indikator Text */
  body.depot-page .table-responsive::after {
    content: '← Wische zum Scrollen →';
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(29, 78, 216, 0.3) 100%);
    border-radius: 8px;
    margin-top: 10px;
  }
}

/* DataTables Info and Pagination Controls */
body.depot-page .dataTables_info {
  color: #ffffff !important;
  margin-left: 0px !important;
  padding: 10px 0 10px 0px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.depot-page .dataTables_paginate {
  margin-right: 0px !important;
  padding: 10px 0 !important;
}

/* Table Header Icon - move to right */
body.depot-page table.table thead th .fa-info-circle {
  margin-left: 3px !important;
}

/* ==========================================
   FANCY GLASSMORPHISM MODALS - Navy Blue Theme
   ========================================== */

/* Modal Backdrop with Blur */
.modal-backdrop {
  backdrop-filter: blur(10px) !important;
  background-color: rgba(15, 23, 42, 0.7) !important;
}

/* Modal Content - Glassmorphism */
.modal-content {
  border-radius: 30px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow:
    0 25px 80px rgba(37, 99, 235, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.5) !important;
  overflow: hidden !important;
  transform: scale(1) !important;
  animation: modal-bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

@keyframes modal-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(-50px);
  }
  70% {
    transform: scale(1.05) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Header - Navy Blue with floating circles */
.modal-header {
  background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%) !important;
  color: white !important;
  border-bottom: none !important;
  border-radius: 30px 30px 0 0 !important;
  padding: 35px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Animated floating circles in header */
.modal-header::before {
  content: '' !important;
  position: absolute !important;
  top: -50px !important;
  right: -50px !important;
  width: 150px !important;
  height: 150px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  animation: float-circle 8s ease-in-out infinite !important;
}

.modal-header::after {
  content: '' !important;
  position: absolute !important;
  bottom: -40px !important;
  left: -40px !important;
  width: 120px !important;
  height: 120px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  animation: float-circle 10s ease-in-out infinite reverse !important;
}

@keyframes float-circle {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-20px) translateX(15px) scale(1.1);
  }
}

.modal-header .modal-title {
  color: white !important;
  font-weight: 900 !important;
  font-size: 2rem !important;
  font-family: 'Poppins', 'Nunito', sans-serif !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  position: relative !important;
  z-index: 2 !important;
}

/* LEGO Brick Icon before title */
.modal-header .modal-title::before {
  content: '🧱' !important;
  margin-right: 15px !important;
  font-size: 1.8rem !important;
  display: inline-block !important;
  animation: wiggle-brick 3s ease-in-out infinite !important;
}

@keyframes wiggle-brick {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.modal-header .btn-close {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  padding: 10px !important;
  width: 40px !important;
  height: 40px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  z-index: 3 !important;
}

.modal-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  transform: rotate(90deg) scale(1.2) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Modal Body - Light gradient with dark text */
.modal-body {
  padding: 45px !important;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 249, 250, 0.95) 100%) !important;
  color: #0f172a !important;
  position: relative !important;
}

/* All text elements dark */
.modal-body *:not(.btn):not(.fa):not(.fas):not(.far):not(i) {
  color: #0f172a !important;
}

.modal-body p,
.modal-body span:not(.btn span),
.modal-body div:not(.btn),
.modal-body label,
.modal-body strong,
.modal-body td,
.modal-body th {
  color: #0f172a !important;
}

/* Form inputs with glassmorphism */
.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body input[type="date"],
.modal-body select,
.modal-body textarea {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 15px !important;
  padding: 14px 18px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  border-color: rgb(37, 99, 235) !important;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.15),
    0 4px 20px rgba(37, 99, 235, 0.2) !important;
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-2px) !important;
}

.modal-body input:hover,
.modal-body select:hover,
.modal-body textarea:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Modal Footer */
.modal-footer {
  border-top: 1px solid rgba(59, 130, 246, 0.1) !important;
  padding: 30px 45px !important;
  background: linear-gradient(to top,
    rgba(248, 249, 250, 0.95) 0%,
    rgba(255, 255, 255, 0.95) 100%) !important;
  border-radius: 0 0 30px 30px !important;
}

/* Buttons in modals */
.modal-footer .btn,
.modal-body .btn {
  border-radius: 18px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.modal-footer .btn:hover,
.modal-body .btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

/* File upload styling */
.modal-body input[type="file"] {
  border: 3px dashed rgba(59, 130, 246, 0.4) !important;
  border-radius: 20px !important;
  padding: 25px !important;
  background: linear-gradient(135deg,
    rgba(240, 249, 255, 0.5) 0%,
    rgba(224, 242, 254, 0.5) 100%) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.modal-body input[type="file"]:hover {
  border-color: rgb(37, 99, 235) !important;
  background: linear-gradient(135deg,
    rgba(227, 242, 253, 0.7) 0%,
    rgba(209, 233, 255, 0.7) 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25) !important;
}
