body {
  background-color: #f5f7fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wrapper {
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
}

#page-content-wrapper {
  margin-left: 260px;
  transition: margin-left 0.3s ease;
}

.sidebar-link {
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: linear-gradient(135deg, #0d6efd, #4dabf7);
  color: #fff !important;
}

.sidebar .nav-link i {
  font-size: 1rem;
}

/* Sidebar collapsed (mobile) */
.sidebar-collapsed #sidebar {
  margin-left: -260px;
}

.sidebar-collapsed #page-content-wrapper {
  margin-left: 0;
}

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.06);
}

.card-header {
  border-bottom: none;
  background-color: transparent;
}

/* Small stat cards */
.stat-card {
  border-radius: 1rem;
}

/* Login page full-height center */
.full-height-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image gallery */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.img-gallery img {
  border-radius: 0.75rem;
}

/* E-commerce cards */
.product-card img {
  border-radius: 0.75rem 0.75rem 0 0;
}

/* Buttons spacing */
.btn + .btn {
  margin-left: 0.5rem;
}

/* Responsiveness */
@media (max-width: 992px) {
  .sidebar {
    margin-left: -260px;
  }
  #page-content-wrapper {
    margin-left: 0;
  }
}



/* Ürün liste alanı – yatay scroll */
.product-scroll-container {
  display: flex;
  flex-wrap: nowrap;       /* ALT SATIRA GEÇMESİN */
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.product-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.product-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.3);
  border-radius: 3px;
}

/* Ürün kartı – sabit genişlikte olsun */
.product-card-order {
  flex: 0 0 260px;         /* hep 260px genişlik */
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  display: flex;
  padding: 0.5rem;
  background-color: #fff;
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card-order img {
  width: 120px;
  height: 120px;
  object-fit: contain;   /* kesmeden sığdır */
  border-radius: 0.7rem;
  background: #fff;
}

.product-card-order .product-info {
  flex: 1;
  padding-left: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card-order .product-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.product-card-order .product-meta {
  font-size: 0.75rem;
  color: #6c757d;
}
.product-card-order .product-price {
  font-weight: 700;
  color: #0d6efd;
  font-size: 0.9rem;
  text-align: right;
}

.product-card-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

/* Drag efekti */
.product-card-order.dragging {
  opacity: 0.6;
}

/* Drop alanı */
.order-dropzone {
  min-height: 48px;
  background-color: #f8fafc;
  border-style: dashed !important;
}

/* Sipariş tablo inputları */
#orderTable input[type="number"] {
  max-width: 90px;
}

/* PDF çıktısında temiz görünüm için küçük iyileştirmeler (ekstra gerekirse) */
@media print {
  #btnGeneratePdf,
  #btnSaveOrder,
  #btnNewOrder,
  #btnClearOrder,
  nav.navbar,
  #sidebar {
    display: none !important;
  }
}

/* Sipariş eklendi tost mesajı */
.order-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #198754;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.order-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
