/* Main Section */
#order-management-system-section {
  padding: 1rem 0;
  min-height: 100vh;
}

/* Sipariş Geçmişi Butonu */
.btn-gecmis {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #fe6447 !important;
  padding: 8px 12px;
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-gecmis:hover {
  background: #fe6447 !important;
  border-color: #fe6447 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(254, 100, 71, 0.25);
}

.btn-gecmis i {
  font-size: 18px;
}

/* Sipariş Geçmişi Modal Responsive Styles */
#siparisGecmisModal .modal-dialog {
  margin: 0.5rem auto;
}

#siparisGecmisModal .modal-header {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

#siparisGecmisModal .modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

#siparisGecmisModal .modal-body {
  padding: 1rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Mobile Card Styles */
.siparis-gecmis-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.siparis-gecmis-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header-mobile {
  padding: 12px;
  border-bottom: 1px solid #f1f3f4;
}

.card-product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
  flex-shrink: 0;
}

.card-product-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.card-product-option {
  font-size: 12px;
  color: #64748b;
}

.card-badge-mobile {
  flex-shrink: 0;
}

.card-options-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.option-tag {
  display: inline-block;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.card-body-mobile {
  padding: 12px;
  background: #f8fafc;
}

.card-info-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.card-info-item:last-child {
  border-bottom: none;
}

.card-info-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  min-width: 80px;
}

.card-info-value {
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

.staff-avatar-mobile {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fe6447;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Responsive Modal Adjustments */
@media (max-width: 767.98px) {
  #siparisGecmisModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }

  #siparisGecmisModal .modal-content {
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  #siparisGecmisModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: none;
  }

  #siparisGecmisModal .modal-header {
    padding: 12px;
    flex-shrink: 0;
  }

  #siparisGecmisModal .modal-footer {
    padding: 12px;
    flex-shrink: 0;
  }

  .siparis-gecmis-card {
    border-radius: 10px;
  }

  .card-header-mobile {
    padding: 10px;
  }

  .card-body-mobile {
    padding: 10px;
  }
}

@media (max-width: 575.98px) {
  #siparisGecmisModal .modal-title {
    font-size: 1rem;
  }

  .card-product-name {
    font-size: 14px;
  }

  .card-info-label {
    font-size: 11px;
    min-width: 70px;
  }

  .card-info-value {
    font-size: 12px;
  }
}

#order-management-system-section .dropdown-menu.show {
  z-index: 9999999;
}

/* Order Panel Styles */
#order-management-system-section .order-panel {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(254, 100, 71, 0.12);
  border: 1px solid rgba(254, 100, 71, 0.1);
  overflow: hidden;
  height: fit-content;
  position: sticky;
  top: 1rem;
  contain: layout style paint;
}

#order-management-system-section .order-header {
  background: linear-gradient(135deg, #fe6447, #ff8c7a);
  padding: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

#order-management-system-section .order-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><ellipse cx="50" cy="0" rx="50" ry="20" fill="url(%23a)"/></svg>');
  pointer-events: none;
}

#order-management-system-section .order-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#order-management-system-section .table-badge {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  padding: 0.75rem 1.25rem;
  margin-top: 1rem;
  text-align: center;
  position: relative;
}

/* Shimmer animasyonu kaldırıldı - performans için */

#order-management-system-section .table-info {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

#order-management-system-section .order-content {
  padding: 0;
}

#order-management-system-section .order-items-container {
  contain: layout style;
  -webkit-overflow-scrolling: touch;
}

#order-management-system-section .order-items-container::-webkit-scrollbar {
  width: 6px;
}

#order-management-system-section
  .order-items-container::-webkit-scrollbar-track {
  background: transparent;
}

#order-management-system-section
  .order-items-container::-webkit-scrollbar-thumb {
  background: rgba(254, 100, 71, 0.3);
  border-radius: 3px;
}

#order-management-system-section
  .order-items-container::-webkit-scrollbar-thumb:hover {
  background: rgba(254, 100, 71, 0.5);
}

/* Order Item Styles */
#order-management-system-section .order-item-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(254, 100, 71, 0.08);
  cursor: pointer;
  position: relative;
  gap: 0.75rem;
}

#order-management-system-section .order-item-row:hover {
  background: #fef2f0;
}

#order-management-system-section .order-item-row:last-child {
  border-bottom: none;
}

#order-management-system-section .order-image {
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(254, 100, 71, 0.15);
}

#order-management-system-section .order-info {
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
}

#order-management-system-section .order-name {
  font-weight: 600;
  color: #2d1b1a;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#order-management-system-section .order-name .quantity-badge {
  color: #fe6447;
  font-weight: 700;
  margin-left: 0.25rem;
}

#order-management-system-section .order-status {
  font-size: 0.7rem;
  color: #fe6447;
  background: rgba(254, 100, 71, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

#order-management-system-section .order-price {
  color: #fe6447;
  font-weight: 700;
  font-size: 0.85rem;
}

#order-management-system-section .order-controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-shrink: 0;
}

#order-management-system-section .order-control-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  font-size: 0.75rem;
  cursor: pointer;
}

#order-management-system-section .order-control-btn:hover {
  box-shadow: 0 2px 6px rgba(254, 100, 71, 0.2);
}

#order-management-system-section .edit-btn {
  background: #ff8c7a;
  color: white;
}

#order-management-system-section .delete-btn {
  background: #fe6447;
  color: white;
}

/* Legacy Order Item Support */
#order-management-system-section .siparis {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(254, 100, 71, 0.08);
  transition: background-color 0.2s ease;
  cursor: pointer;
  position: inherit;
  gap: 0.75rem;
  border-radius: 15px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(254, 100, 71, 0.08);
  contain: layout style;
}

#order-management-system-section .siparis:last-child {
  border-bottom: none;
}

#order-management-system-section .siparis .musteri {
  display: flex;
  align-items: center;
  grid-gap: 5px;
  font-weight: 600;
  color: #2d1b1a;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#order-management-system-section .siparis .musteri i {
  font-size: 1.5rem;
}
#order-management-system-section .siparis .res {
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(254, 100, 71, 0.15);
  transition: transform 0.3s ease;
}

/* Transform scale kaldırıldı - performans için */

#order-management-system-section .siparis .bilgi {
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
}

#order-management-system-section .siparis .bilgi .adi {
  font-weight: 600;
  color: #2d1b1a;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#order-management-system-section .siparis .bilgi .adi span {
  color: #fe6447;
  font-weight: 700;
  margin-right: 0.25rem;
}

#order-management-system-section .siparis .bilgi .durum {
  font-size: 0.7rem;
  color: #fe6447;
  background: rgba(254, 100, 71, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

#order-management-system-section .siparis .bilgi .fiyat {
  color: #fe6447;
  font-weight: 700;
  font-size: 0.85rem;
}

#order-management-system-section .siparis .bilgi .fiyat span {
  color: #fe6447;
  font-weight: 700;
}

/* Legacy Dropdown Button Support */
#order-management-system-section .siparis .btn-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#order-management-system-section .siparis .btn-group .btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-size: 0.875rem;
  cursor: pointer;
  background: #ff8c7a;
  color: white;
  padding: 0;
  z-index: 99999999;
}

#order-management-system-section .siparis .btn-group .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(254, 100, 71, 0.2);
  background: #fe6447;
}

/* Order Footer */
#order-management-system-section .order-footer {
  background: #fef9f8;
  padding: 1.5rem;
  border-top: 1px solid rgba(254, 100, 71, 0.1);
}

#order-management-system-section .total-summary {
  background: white;
  border-radius: 15px;
  padding: 1.25rem;
  box-shadow: 0 3px 8px rgba(254, 100, 71, 0.1);
  margin-bottom: 1.5rem;
  contain: layout style;
}

#order-management-system-section .total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 2px dashed rgba(254, 100, 71, 0.2);
}

#order-management-system-section .total-text {
  font-weight: 600;
  color: #2d1b1a;
  font-size: 1.1rem;
}

#order-management-system-section .total-value {
  font-weight: 800;
  color: #fe6447;
  font-size: 1.25rem;
}

#order-management-system-section .payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#order-management-system-section .payment-choice {
  position: relative;
}

#order-management-system-section .payment-choice input[type="radio"] {
  display: none;
}

#order-management-system-section .payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: white;
  border: 2px solid rgba(254, 100, 71, 0.2);
  border-radius: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: center;
  box-shadow: 0 2px 6px rgba(254, 100, 71, 0.08);
}

#order-management-system-section .payment-option:hover {
  border-color: #fe6447;
  box-shadow: 0 3px 10px rgba(254, 100, 71, 0.12);
}

#order-management-system-section
  .payment-choice
  input[type="radio"]:checked
  + .payment-option {
  border-color: #fe6447;
  background: rgba(254, 100, 71, 0.08);
  box-shadow: 0 3px 12px rgba(254, 100, 71, 0.2);
}

#order-management-system-section .payment-symbol {
  font-size: 1.3rem;
  color: #ff8c7a;
  transition: color 0.2s ease;
}

#order-management-system-section
  .payment-choice
  input[type="radio"]:checked
  + .payment-option
  .payment-symbol {
  color: #fe6447;
}

#order-management-system-section .payment-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #2d1b1a;
}

/* Legacy Summary Section Support */
#order-management-system-section .katman2 {
  background: #fef9f8;
  padding: 1.5rem;
  border-top: 1px solid rgba(254, 100, 71, 0.1);
  border-radius: 0 0 20px 20px;
}

#order-management-system-section .katman2ic {
  background: white;
  border-radius: 15px;
  padding: 1.25rem;
  box-shadow: 0 3px 8px rgba(254, 100, 71, 0.1);
  margin-bottom: 1.5rem;
}

#order-management-system-section .toplam {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 2px dashed rgba(254, 100, 71, 0.2);
}

#order-management-system-section .toplam:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#order-management-system-section .toplam b {
  font-weight: 600;
  color: #2d1b1a;
  font-size: 1rem;
}

#order-management-system-section .toplam span {
  font-weight: 700;
  color: #fe6447;
  font-size: 1.1rem;
}

/* Menu Controls */
#order-management-system-section .menu-controls {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(254, 100, 71, 0.1);
  border: 1px solid rgba(254, 100, 71, 0.1);
  contain: layout style paint;
}

#order-management-system-section .category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

#order-management-system-section .category-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  border: 2px solid rgba(254, 100, 71, 0.2);
  background: white;
  color: #2d1b1a;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

#order-management-system-section .category-tab:hover {
  background: #fe6447;
  color: white;
  text-decoration: none;
  border-color: #fe6447;
}

#order-management-system-section .active-tab {
  background: linear-gradient(135deg, #fe6447, #ff8c7a);
  color: white;
  border-color: #fe6447;
  box-shadow: 0 3px 12px rgba(254, 100, 71, 0.25);
}

/* Search Wrapper */
#order-management-system-section .search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#order-management-system-section .search-field {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid rgba(254, 100, 71, 0.2);
  border-radius: 20px;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(254, 100, 71, 0.08);
}

#order-management-system-section .search-field:focus {
  outline: none;
  border-color: #fe6447;
  box-shadow: 0 0 0 4px rgba(254, 100, 71, 0.1);
  background: white;
}

#order-management-system-section .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ff8c7a;
  font-size: 1.1rem;
  z-index: 1;
}

/* Barkod Okut Butonu */
#order-management-system-section .barkod-okut-btn {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fe6447, #ff8c7a);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 6px rgba(254, 100, 71, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  flex-shrink: 0;
}

#order-management-system-section .barkod-okut-btn:hover {
  background: linear-gradient(135deg, #e55641, #ff7a66);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(254, 100, 71, 0.3);
}

#order-management-system-section .barkod-okut-btn:active {
  transform: translateY(0);
}

/* Barkod Modal */
.barkod-input-wrapper {
  margin-bottom: 1rem;
}

.barkod-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.barkod-input:focus {
  outline: none;
  border-color: #fe6447;
  box-shadow: 0 0 0 4px rgba(254, 100, 71, 0.1);
}

.barkod-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
  justify-content: center;
  padding: 0.5rem;
}

.barkod-hint i {
  font-size: 1.1rem;
  color: #fe6447;
}

/* Menu Grid */
#order-management-system-section .menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  contain: layout style;
}

/* Menu Item Styles */
#order-management-system-section .menu-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(254, 100, 71, 0.1);
  border: 1px solid rgba(254, 100, 71, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  contain: layout style;
}

/* Pseudo-element kaldırıldı - performans için */
#order-management-system-section .menu-item:hover {
  border-color: #fe6447;
  background: #fff5f3;
}

#order-management-system-section .menu-card,
#order-management-system-section .quick-add-card {
  /*background: linear-gradient(135deg, #fef9f8, #fdedeb);*/
  border-radius: 8px;
  margin: 8px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 8px;
}

#order-management-system-section .menu-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(254, 100, 71, 0.12);
  margin-right: -8px;
}

#order-management-system-section .menu-details {
  flex: 1;
}

#order-management-system-section .menu-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2d1b1a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

#order-management-system-section .menu-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fe6447;
}

/* Hızlı Ekleme Butonu */
#order-management-system-section .quick-add-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(180, 180, 180, 0.3);
  border-radius: 5px;
  background: #fafafa;
  color: #b0b0b0;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  z-index: 100;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

#order-management-system-section .quick-add-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(140, 140, 140, 0.5);
  color: #888;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#order-management-system-section .quick-add-btn:active {
  transform: scale(0.96);
}

#order-management-system-section .quick-add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

#order-management-system-section .quick-add-btn i {
  font-size: 11px;
}

/* Action Buttons */
#order-management-system-section .action-group {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

#order-management-system-section .main-action-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

#order-management-system-section .primary-btn {
  background: linear-gradient(135deg, #fe6447, #ff8c7a);
  color: white;
  box-shadow: 0 5px 15px rgba(254, 100, 71, 0.2);
}

#order-management-system-section .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(254, 100, 71, 0.3);
  color: white;
  text-decoration: none;
}

#order-management-system-section .success-btn {
  background: linear-gradient(135deg, #fe6447, #ff8c7a);
  color: white;
  box-shadow: 0 5px 15px rgba(254, 100, 71, 0.2);
}

#order-management-system-section .success-btn:hover {
  box-shadow: 0 4px 15px rgba(254, 100, 71, 0.25);
  color: white;
  text-decoration: none;
}

#order-management-system-section .full-width {
  width: 100%;
  justify-content: center;
}

/* Alert Styles */
#order-management-system-section .access-alert {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(254, 100, 71, 0.12);
  border: 1px solid rgba(254, 100, 71, 0.1);
}

#order-management-system-section .alert-icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fe6447, #ff8c7a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(254, 100, 71, 0.3);
}

#order-management-system-section .alert-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d1b1a;
  margin-bottom: 1rem;
}

#order-management-system-section .alert-text {
  color: #6b5856;
  font-size: 1rem;
  line-height: 1.6;
}

/* Legacy Action Buttons */
#order-management-system-section .badge {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

#order-management-system-section .btn-primary {
  background: #fe6447;
  color: white;
}

#order-management-system-section .btn-info {
  background: #ff8c7a;
  color: white;
}

#order-management-system-section .btn-danger {
  background: #cc3d28;
  color: white;
}

#order-management-system-section .btn-secondary {
  background: #a0453c;
  color: white;
}

#order-management-system-section .btn-mor {
  background: #fe6447;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#order-management-system-section .btn-mor:hover,
#order-management-system-section .badge:hover {
  box-shadow: 0 3px 12px rgba(254, 100, 71, 0.2);
}

/* Responsive Design */
@media (max-width: 1400px) {
  #order-management-system-section .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 1200px) {
  #order-management-system-section .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  #order-management-system-section .order-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  #order-management-system-section {
    padding: 0.75rem 0;
  }

  #order-management-system-section .order-panel {
    position: static;
    margin-bottom: 1.5rem;
    border-radius: 15px;
  }

  #order-management-system-section .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
  }

  #order-management-system-section .order-header {
    padding: 1.25rem;
  }

  #order-management-system-section .menu-controls {
    padding: 1.25rem;
    border-radius: 15px;
  }
}

@media (max-width: 768px) {
  #order-management-system-section {
    padding: 0.5rem 0;
  }

  #order-management-system-section .menu-controls {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  #order-management-system-section .category-tabs {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  #order-management-system-section .category-tab {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    justify-content: center;
    font-size: 0.9rem;
  }

  #order-management-system-section .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  #order-management-system-section .menu-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
    padding-bottom: 1rem;
  }

  #order-management-system-section .quick-add-btn {
    width: 26px;
    height: 26px;
    bottom: 4px;
    right: 4px;
  }

  #order-management-system-section .quick-add-btn i {
    font-size: 10px;
  }

  #order-management-system-section .menu-image {
    width: 48px;
    height: 48px;
  }

  #order-management-system-section .payment-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  #order-management-system-section .action-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  #order-management-system-section .order-item-row,
  #order-management-system-section .siparis {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  #order-management-system-section .order-info,
  #order-management-system-section .siparis .bilgi {
    padding-right: 0.25rem;
  }

  #order-management-system-section .order-image,
  #order-management-system-section .siparis .res {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 576px) {
  #order-management-system-section {
    padding: 0.25rem 0;
  }

  #order-management-system-section .order-header {
    padding: 1rem;
  }

  #order-management-system-section .order-title {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  #order-management-system-section .table-info {
    font-size: 1rem;
  }

  #order-management-system-section .menu-card {
    margin: 0.75rem;
    padding: 0.875rem;
  }

  #order-management-system-section .payment-options {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  #order-management-system-section .category-tab {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  #order-management-system-section .search-field {
    padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    font-size: 0.9rem;
    border-radius: 15px;
  }

  #order-management-system-section .search-icon {
    left: 0.875rem;
  }

  #order-management-system-section .menu-name {
    font-size: 12px;
  }

  #order-management-system-section .menu-price {
    font-size: 14px;
  }

  #order-management-system-section .quick-add-btn {
    width: 24px;
    height: 24px;
    bottom: 3px;
    right: 3px;
  }

  #order-management-system-section .quick-add-btn i {
    font-size: 9px;
  }
}

@media (max-width: 400px) {
  #order-management-system-section .order-image,
  #order-management-system-section .siparis .res {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    border-radius: 8px;
  }

  #order-management-system-section .order-name,
  #order-management-system-section .siparis .bilgi .adi {
    font-size: 0.8rem;
  }

  #order-management-system-section .order-status,
  #order-management-system-section .siparis .bilgi .durum {
    font-size: 0.65rem;
  }

  #order-management-system-section .order-price,
  #order-management-system-section .siparis .bilgi .fiyat {
    font-size: 0.8rem;
  }

  #order-management-system-section .menu-image {
    width: 60px;
    height: 60px;
  }

  #order-management-system-section .menu-name {
    font-size: 0.85rem;
  }

  #order-management-system-section .menu-price {
    font-size: 1rem;
  }
}

/* Animation Classes */
#order-management-system-section .fade-enter {
  animation: fadeInUp 0.6s ease-out;
}

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

#order-management-system-section .slide-enter {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading States */
#order-management-system-section .loading-state {
  opacity: 0.6;
  pointer-events: none;
}

#order-management-system-section .loading-state::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #fe6447;
  border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Focus States for Accessibility */
#order-management-system-section .category-tab:focus,
#order-management-system-section .menu-item:focus,
#order-management-system-section .main-action-btn:focus,
#order-management-system-section .order-control-btn:focus {
  outline: 2px solid #fe6447;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  #order-management-system-section .menu-item,
  #order-management-system-section .order-panel,
  #order-management-system-section .menu-controls {
    border: 2px solid #2d1b1a;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  #order-management-system-section *,
  #order-management-system-section *::before,
  #order-management-system-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  #order-management-system-section {
    background: white !important;
  }

  #order-management-system-section .order-panel,
  #order-management-system-section .menu-controls,
  #order-management-system-section .menu-item {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* Bootstrap modal fade animasyonunu kaldır - performans için */
#siparismenur.modal.fade {
  transition: none !important;
}

#siparismenur.modal.fade .modal-dialog {
  transition: none !important;
}

#siparismenur.modal.show {
  opacity: 1 !important;
}

#siparismenur.modal.show .modal-dialog {
  transform: none !important;
}

#table-product-set-modal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  max-width: 100%;
  margin: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(254, 100, 71, 0.1);
  overflow: hidden;
  contain: layout style paint;
}

/* Modal Header */
#table-product-set-modal .product-modal-header {
  background: linear-gradient(135deg, #fe6447 0%, #ff8a73 100%);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

#table-product-set-modal .product-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

#table-product-set-modal .product-icon {
  font-size: 24px;
  filter: grayscale(100%) brightness(0) invert(1);
}

#table-product-set-modal .product-modal-title h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

#table-product-set-modal .product-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#table-product-set-modal .product-modal-note-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#table-product-set-modal .product-modal-note-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
}

#table-product-set-modal .product-modal-note-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

#table-product-set-modal .product-modal-note-btn i {
  font-size: 16px;
}

#table-product-set-modal .product-note-section {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

#table-product-set-modal .product-note-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s ease;
}

#table-product-set-modal .product-note-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#table-product-set-modal .product-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#table-product-set-modal .product-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

#table-product-set-modal .product-modal-close span {
  color: white;
  font-size: 20px;
  font-weight: 300;
}

/* Modal Body */
#table-product-set-modal .product-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
  contain: layout style;
  -webkit-overflow-scrolling: touch;
}

#table-product-set-modal .product-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section Titles */
#table-product-set-modal .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fe6447;
}

#table-product-set-modal .section-icon {
  font-size: 18px;
}

/* Grid Layouts */
#table-product-set-modal .options-grid,
#table-product-set-modal .extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* Option and Extra Cards */
#table-product-set-modal .option-card,
#table-product-set-modal .extra-card {
  position: relative;
}

#table-product-set-modal .option-input,
#table-product-set-modal .extra-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#table-product-set-modal .option-label,
#table-product-set-modal .extra-label {
  display: block;
  padding: 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

#table-product-set-modal .option-label:hover,
#table-product-set-modal .extra-label:hover {
  border-color: #fe6447;
  background: #fff5f3;
}

#table-product-set-modal .option-input:checked + .option-label,
#table-product-set-modal .extra-input:checked + .extra-label {
  border-color: #fe6447;
  background: linear-gradient(135deg, #fff5f3 0%, #ffe8e4 100%);
  box-shadow: 0 4px 16px rgba(254, 100, 71, 0.2);
}

/* Content Layout */
#table-product-set-modal .option-content,
#table-product-set-modal .extra-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#table-product-set-modal .option-name,
#table-product-set-modal .extra-name {
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
}

#table-product-set-modal .option-price,
#table-product-set-modal .extra-price {
  font-weight: 600;
  color: #fe6447;
  font-size: 14px;
  padding-right: 30px; /* Checkbox için yer bırak */
}

/* Custom Checkboxes */
#table-product-set-modal .option-check,
#table-product-set-modal .extra-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  background: white;
  z-index: 2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#table-product-set-modal .option-input:checked + .option-label .option-check,
#table-product-set-modal .extra-input:checked + .extra-label .extra-check {
  background: #fe6447;
  border-color: #fe6447;
}

#table-product-set-modal
  .option-input:checked
  + .option-label
  .option-check::after,
#table-product-set-modal
  .extra-input:checked
  + .extra-label
  .extra-check::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 600;
}

/* Extras Group */
#table-product-set-modal .extras-group {
  margin-bottom: 20px;
}

/* Quantity Section */
#table-product-set-modal .product-quantity-section {
  position: sticky;
  bottom: -25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(110deg, #fe6447 0%, #ffe3def5 100%);
  border-radius: 12px 12px 0 0; /* sadece üst köşeler yuvarlak */
  margin-top: 8px;
  z-index: 10; /* içerikten üste gelsin */
}

#table-product-set-modal .quantity-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#table-product-set-modal .quantity-label {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
}

#table-product-set-modal .quantity-input-group {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  overflow: hidden;
}

#table-product-set-modal .quantity-btn {
  background: #fe6447;
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#table-product-set-modal .quantity-btn:hover {
  background: #e55641;
}

#table-product-set-modal .quantity-input {
  border: none;
  outline: none;
  text-align: center;
  width: 60px;
  height: 36px;
  font-weight: 600;
  color: #2c3e50;
}

/* Add to Cart Button */
#table-product-set-modal .add-to-cart-btn {
  background: #fe6447;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  min-height: 48px;
}

#table-product-set-modal .add-to-cart-btn:hover {
  background: #e55641;
}

#table-product-set-modal .btn-icon {
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #table-product-set-modal .options-grid,
  #table-product-set-modal .extras-grid {
    grid-template-columns: 1fr;
  }

  #table-product-set-modal .product-quantity-section {
    flex-direction: column;
    gap: 16px;
  }

  #table-product-set-modal .add-to-cart-btn {
    width: 100%;
  }

  #table-product-set-modal .product-modal-body {
    padding: 16px;
  }

  #table-product-set-modal .product-modal-header {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  #table-product-set-modal .options-grid,
  #table-product-set-modal .extras-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #table-product-set-modal .option-label,
  #table-product-set-modal .extra-label {
    padding: 12px;
  }

  #table-product-set-modal .product-modal-title h5 {
    font-size: 18px;
  }
}

/* Scrollbar Styling */
#table-product-set-modal .product-modal-body::-webkit-scrollbar {
  width: 6px;
}

#table-product-set-modal .product-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#table-product-set-modal .product-modal-body::-webkit-scrollbar-thumb {
  background: #fe6447;
  border-radius: 3px;
}

#table-product-set-modal .product-modal-body::-webkit-scrollbar-thumb:hover {
  background: #e55641;
}

/* Loading States */
#table-product-set-modal .add-to-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

#table-product-set-modal .add-to-cart-btn:disabled:hover {
  background: #ccc;
  transform: none;
  box-shadow: none;
}

/* Animation Classes - Kaldırıldı performans için */
/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#table-product-set-modal {
    animation: fadeIn 0.3s ease-out;
} */

/* Focus States */
#table-product-set-modal .quantity-input:focus {
  border-color: #fe6447;
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 100, 71, 0.1);
}

#table-product-set-modal .option-input:focus + .option-label,
#table-product-set-modal .extra-input:focus + .extra-label {
  border-color: #fe6447;
  box-shadow: 0 0 0 3px rgba(254, 100, 71, 0.1);
}
