body {
  background: linear-gradient(#f0f2f5, #ffffff);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Remove old styling */
#header,
#user_info,
#main,
#order {
  background: transparent;
  filter: none;
  box-shadow: none;
}

/* Card Styling - Common for all cards */
.login-card,
.header-card,
.footer-card,
.content-card,
.section-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.login-card:hover,
.header-card:hover,
.footer-card:hover,
.content-card:hover {
  box-shadow: 0 15px 50px rgba(52, 152, 219, 0.2);
}

/* Content Card Styling */
.content-header {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 20px 25px;
}

.content-header h2 {
  font-weight: 600;
  font-size: 1.4rem;
}

.content-body {
  padding: 25px;
}

/* Section Card Styling */
.section-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.section-header {
  background-color: #f5f9fd;
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.section-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.section-body {
  background-color: #ffffff;
}

/* User Badge Styling */
.user-badge {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  font-size: 1.25rem;
  padding: 8px 15px;
  border-radius: 24px;
  font-weight: 600;
}

/* Header Logo Layout */
.header-logos {
  display: flex;
  align-items: center;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
}

.logo-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-wrapper img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Responsive adjustments for header logos */
@media (max-width: 767px) {
  .header-logos {
    flex-direction: column;
  }

  .logo-container {
    margin-bottom: 20px;
  }

  .logo-container:last-child {
    margin-bottom: 0;
  }

  .divider-vertical {
    display: none;
  }

  .logo-wrapper img {
    height: 50px;
  }
}

.divider-vertical {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #3498db, transparent);
}

.phone-number {
  font-weight: 500;
  color: #2c3e50;
}

.text-primary {
  color: #3498db !important;
}

/* Footer specific styling */
.footer-card {
  max-width: 1000px;
}

/* User info section - constrain flexbox to match other sections */
#user_info > .d-flex {
  max-width: 1000px;
  margin: 0 auto;
}

/* Static info row styling - for read-only Keräyspistenumero */
.static-info-row {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

.static-info-row strong {
  color: #6c757d;
}

/* Recent Orders Table Styling - Modern Agency Style */
#recent_orders_table {
  border-collapse: separate;
  border-spacing: 0;
}

#recent_orders_table thead th {
  background: linear-gradient(135deg, #f8fbff, #f0f8ff);
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-bottom: 2px solid #e0e7ff;
}

#recent_orders_table tbody tr {
  transition: all 0.3s ease;
  background: #ffffff;
}

/* Alternating row colors - subtle blue tint */
#recent_orders_table tbody tr:nth-child(even) {
  background: #f8fbff;
}

/* Hover effect */
#recent_orders_table tbody tr:hover {
  background: #f0f8ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

#recent_orders_table tbody td {
  padding: 4px 10px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
}

/* Order ID styling */
#recent_orders_table .order-id {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
}

/* Date/Time container */
#recent_orders_table .order-datetime {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Date styling */
#recent_orders_table .order-date {
  font-weight: 500;
  color: #2c3e50;
  font-size: 0.9rem;
}

/* Separator */
#recent_orders_table .datetime-separator {
  color: #cbd5e0;
  font-weight: 300;
}

/* Time styling */
#recent_orders_table .order-time {
  font-weight: 400;
  color: #7f8c8d;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Product category badges */
.badge-ser {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: #f3e8ff;
  color: #6b21a8;
}

.badge-paristot {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: #fef3c7;
  color: #92400e;
}

#recent_orders_table .order-badges {
  white-space: nowrap;
}

/* Clickable order rows */
#recent_orders_table tbody tr {
  cursor: pointer;
  transition: all 0.2s ease;
}

#recent_orders_table tbody tr:hover {
  background-color: #bbdefb;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
  transform: translateY(-1px);
}

/* Recent order highlighting (≤8 days old) */
#recent_orders_table tbody tr.recent-order {
  background: linear-gradient(90deg, #d4edda 0%, #d1ecf1 100%);
  border-left: 3px solid #4caf50;
  animation: recentOrderPulse 2.5s ease-in-out;
}

/* Stronger hover for recent orders */
#recent_orders_table tbody tr.recent-order:hover {
  background: linear-gradient(90deg, #90caf9 0%, #64b5f6 100%);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
  transform: translateY(-2px);
}

/* Pulse animation for recent orders - Enhanced visibility */
@keyframes recentOrderPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.8);
    transform: scale(1);
  }
  25% {
    box-shadow: 0 0 25px 10px rgba(76, 175, 80, 0.6);
    transform: scale(1.015);
  }
  50% {
    box-shadow: 0 0 35px 15px rgba(76, 175, 80, 0.4);
  }
  75% {
    box-shadow: 0 0 25px 10px rgba(76, 175, 80, 0.6);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    transform: scale(1);
  }
}

/* Badge animation - Slide in from left with delay */
@keyframes badgeSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-15px) scale(0.8);
  }
  60% {
    transform: translateX(2px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* "UUSI" badge for recent orders with animated entrance */
#recent_orders_table tbody tr.recent-order .order-id::after {
  content: "UUSI";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.65rem;
  padding: 2px 6px;
  background: #4caf50;
  color: white;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
  vertical-align: middle;
  opacity: 0;
  animation: badgeSlideIn 0.6s ease-out 1.5s forwards;
}

/* Recent Order Warning in Confirmation Modal */
.recent-order-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border-left: 4px solid #ffc107;
  margin-bottom: 20px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.recent-order-warning strong {
  color: #856404;
}

.recent-order-warning .fa-exclamation-triangle {
  color: #ffc107;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.footer-link i {
  font-size: 1.2rem;
}

.footer-link:hover {
  color: #2575fc;
  transform: translateX(5px);
}

.created-by {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.created-by p {
  margin-bottom: 8px;
  font-weight: 500;
  color: #7f8c8d;
}

@media (min-width: 768px) {
  .footer-links {
    padding-left: 20px;
  }

  .created-by {
    align-items: flex-end;
  }
}

.login-header {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 25px 30px;
  text-align: center;
}

.login-header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
}

.login-body {
  padding: 40px 30px;
}

/* Input Styling */
.input-wrapper {
  position: relative;
  max-width: 200px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.input-focused {
  transform: scale(1.05);
}

#input-username {
  height: 50px;
  font-size: 1.2rem;
  text-align: left;
  letter-spacing: 2px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#input-username:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
  outline: none;
}

.input-focus-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #3498db, #2980b9);
  transition: width 0.3s ease;
}

#input-username:focus+.input-focus-bg {
  width: 100%;
}

/* Form Input Styling */
.custom-input {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
  outline: none;
}

/* Form Label Styling */
.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95rem;
}

/* Form Check Styling */
.form-check-input {
  border-color: #3498db;
}

.form-check-input:checked {
  background-color: #3498db;
  border-color: #3498db;
}

.form-check-label {
  font-size: 0.95rem;
  color: #2c3e50;
}

.form-label {
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1rem;
}

.id-hint {
  color: #777;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Button Styling */
.btn-login {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
  background: linear-gradient(135deg, #5bc0de, #2575fc);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
  color: white;
}

.btn-login:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Disabled Button Styling */
.btn-login:disabled,
.btn-login.disabled {
  background: #e0e0e0 !important;
  color: #999999 !important;
  opacity: 0.6;
  font-weight: 600;
  box-shadow: none;
  cursor: not-allowed !important;
  position: relative;
  transition: all 0.3s ease;
}

.btn-login:disabled:hover {
  background: #d0d0d0 !important;
  transform: scale(0.98);
}

/* Animation when button state changes */
@keyframes buttonStateChange {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(52, 152, 219, 0.5); }
  100% { transform: scale(1); }
}

.btn-login.state-changed {
  animation: buttonStateChange 0.5s ease;
}

/* Disabled button tooltip styling */
#order-button-wrapper[data-bs-toggle="tooltip"] {
  cursor: not-allowed;
}

/* Info Box Styling */
.info-box {
  background-color: #e8f4fd;
  border-left: 4px solid #3498db;
  padding: 15px;
  border-radius: 4px;
  color: #2c3e50;
  font-size: 0.9rem;
}

.info-box a {
  color: #2980b9;
  text-decoration: none;
  font-weight: 600;
}

.info-box a:hover {
  text-decoration: underline;
}

/* Alert Styling */
.alert {
  border-radius: 8px;
  padding: 15px;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
}

.alert-danger {
  background-color: #fde8e8;
  border-left: 4px solid #e74c3c;
  color: #c0392b;
}

.alert-info {
  background-color: #e8f4fd;
  border-left: 4px solid #3498db;
  color: #2c3e50;
}

.alert i {
  margin-right: 8px;
}

#alert_login_failed,
#alert_order_failed,
#user_info,
#main,
#order {
  display: none;
}

.btn_amount {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin: 0 10px;
}

.category_card_empty,
.product_card_empty {
  display: none;
}

/* Category Header Styling */
.category_name {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #2c3e50;
  font-weight: 600;
  text-align: center;
  border-left: 5px solid #3498db;
}

.category_name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), transparent);
  border-radius: 10px;
}

/* Product Card Styling */
.product_card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.product_card:hover {
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
  transform: translateY(-2px);
}

/* Product Card Flash Animation */
@keyframes card-flash {
  0% {
    box-shadow: 0 0 0 rgba(52, 152, 219, 0);
    transform: scale(1);
    background-color: #ffffff;
  }

  50% {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.7);
    transform: scale(1.03);
    background-color: #e8f4fd;
    border-color: #3498db;
  }

  100% {
    box-shadow: 0 0 0 rgba(52, 152, 219, 0);
    transform: scale(1);
    background-color: #ffffff;
    border-color: #e0e0e0;
  }
}

.highlight-flash {
  animation: card-flash 1s ease;
}

.product_card .product-image {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 10px;
}

.product_name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.product_description {
  font-size: 0.9rem;
  color: #5d6d7e;
  line-height: 1.4;
}

/* Product Image Gallery Styling */
.product-image-indicators {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
  justify-content: center;
}

.image-thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  object-fit: cover;
}

/* No image placeholder */
.no-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #95a5a6;
  font-size: 24px;
  height: 150px;
  width: 100%;
  border-radius: 4px;
}

.product-image-main {
  position: relative;
  padding: 0;
  cursor: pointer;
}

.product-image-main img {
  transition: transform 0.3s ease;
}

.product-image-main:hover img {
  transform: scale(1.05);
}

/* Fullscreen Image Modal */
.fullscreen-image-modal .modal-content {
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
}

.fullscreen-image-modal .modal-body {
  padding: 0;
  height: 100vh;
}

.modal-product-header {
  text-align: center;
  padding: 15px 0;
  margin-bottom: 0;
  z-index: 30;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  width: 80%;
  border-radius: 0 0 5px 5px;
}

.modal-product-header h3 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.modal-image-view {
  height: calc(100vh - 80px);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1050;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border: 2px solid rgba(0, 0, 0, 0.5);
}

.image-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.modal-image-container {
  position: relative;
  z-index: 10;
  max-width: 80%;
  margin: 0 auto;
}

#modal_image {
  max-height: 90vh;
  object-fit: contain;
}

/* Modal Navigation Arrows */
.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
}

.modal-nav-arrow:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-nav-prev {
  left: 10px;
}

.modal-nav-next {
  right: 10px;
}

/* Click-outside overlay */
.modal-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  cursor: pointer;
}

/* Quantity Button Styling */
.btn-number {
  border-radius: 6px;
  font-weight: 800;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 22px;
  padding: 0;
  padding-bottom: 4px;
  line-height: 1;
  text-align: center;
}

.btn-number[data-type="plus"] {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
}

.btn-number[data-type="plus"]:hover {
  background: linear-gradient(135deg, #5bc0de, #2575fc);
  box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.btn-number[data-type="minus"] {
  background: #95a5a6;
  border: none;
}

.btn-number[data-type="minus"]:hover:not([disabled]) {
  background: #7f8c8d;
  box-shadow: 0 2px 5px rgba(127, 140, 141, 0.3);
}

.input-number {
  text-align: center;
  font-weight: 600;
  border: 2px solid #e0e0e0;
}

.sticky-bottom {
  cursor: pointer;
}

.sticky-bottom .alert {
  font-size: large;
}

.product_image_md {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.callout {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
  border-left-width: 5px;
  border-radius: 3px;
}

.callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout code {
  border-radius: 3px;
}

.callout+.bs-callout {
  margin-top: -5px;
}

.callout-default {
  border-left-color: #777;
}

.callout-default h4 {
  color: #777;
}

.callout-primary {
  border-left-color: #428bca;
}

.callout-primary h4 {
  color: #428bca;
}

.callout-success {
  border-left-color: #5cb85c;
}

.callout-success h4 {
  color: #5cb85c;
}

.callout-danger {
  border-left-color: #d9534f;
}

.callout-danger h4 {
  color: #d9534f;
}

.callout-warning {
  border-left-color: #f0ad4e;
}

.callout-warning h4 {
  color: #f0ad4e;
}

.callout-info {
  border-left-color: #5bc0de;
}

.callout-info h4 {
  color: #5bc0de;
}

.callout-bdc {
  border-left-color: #29527a;
}

.callout-bdc h4 {
  color: #29527a;
}

/* Edit Modal Styling */
.edit-modal-header {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  padding: 20px 25px;
  border-bottom: none;
}

.edit-modal-header .modal-title {
  font-weight: 600;
  font-size: 1.4rem;
}

.btn-close-custom {
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0;
}

.btn-close-custom:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.btn-close-custom i {
  font-size: 1.2rem;
}

#modal_edit_info .modal-content {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

#modal_edit_info .modal-body {
  padding: 25px;
}

#modal_edit_info .modal-footer {
  border-top: none;
  padding: 20px 25px;
}

#modal_edit_info .form-label {
  color: #2c3e50;
  font-weight: 600;
}

/* Edit Info Button Styling */
.edit-info-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  font-size: 1rem;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  height: 38px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.edit-info-btn:hover {
  background: linear-gradient(135deg, #5bc0de, #2575fc);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.edit-info-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Form Change Detection Styles */
.btn-submit-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  background: #95a5a6 !important;
  pointer-events: none;
}

.field-changed {
  border-left: 3px solid #3498db !important;
  background-color: #fffbea !important;
  transition: all 0.3s ease;
}

.field-changed:focus {
  border-left: 3px solid #2980b9 !important;
  background-color: #fff9d6 !important;
}

/* For checkboxes and radio buttons - highlight the container */
.form-check.field-changed {
  background-color: #fffbea;
  border-left: 3px solid #3498db;
  padding-left: 8px;
  margin-left: -8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Status message below submit button */
#form_status_message {
  font-size: 0.875rem;
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.status-no-changes {
  color: #7f8c8d;
  background-color: #ecf0f1;
  border: 1px solid #bdc3c7;
}

.status-has-changes {
  color: #27ae60;
  background-color: #d5f4e6;
  border: 1px solid #27ae60;
}

/* Request ID Link Styling */
.request-id-link {
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  vertical-align: baseline;
  padding: 0;
  margin: 0;
  line-height: inherit;
  display: inline;
}

.request-id-link:hover {
  color: #2575fc;
  text-decoration: underline;
}

/* Success Modal Styling */
#modal_request_id_success .modal-header {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border-bottom: none;
}

/* Inactive product styling */
.inactive-product {
  position: relative;
  opacity: 0.7;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.inactive-product::after {
  content: attr(data-restriction-message);
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #dc3545;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
}

.inactive-product .btn-number[data-type="plus"] {
  background: #6c757d;
  cursor: not-allowed;
}

.inactive-product .btn-number[data-type="plus"]:hover {
  background: #6c757d;
  box-shadow: none;
}