/* assets/css/styles.css */
/* Aynen Pilav Sipariş Sistemi için özel CSS stilleri */

/* Genel stil ayarları */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;

  --kitchen-color: #dc3545;
  --warehouse-color: #0d6efd;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f5f5f5;
}

/* Sidebar ve içerik düzeni */
.sidebar {
  min-height: 100vh;
  background-color: #f8f9fa !important;
  color: #333 !important;
  transition: all 0.3s;
  padding-left: 16px;
  padding-right: 16px;
  overflow-y: auto;
  border-right: 1px solid #dee2e6;
  /*position: sticky;
  top: 0;
  padding-top: 0.5rem;*/
}

#sidebar {
  background-color: #f8f9fa !important;
  color: #333 !important;
}

.content {
  padding: 20px;
}


@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    height: 100vh;
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
    width: 100%;
  }

  /* Overlay arka planı */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .sidebar-overlay.show {
    display: block;
  }
}

@media (min-width: 768px) {
  .sidebar-toggle-btn {
    display: none !important;
  }
}

/* Sidebar menü stilleri */
.nav-link {
  color: #495057;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: #e9ecef;
}

.nav-link.active {
  color: white;
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

/* Sidebar collapse menü stilleri */
.nav-link[data-bs-toggle="collapse"] {
  cursor: pointer;
}

.nav-link[data-bs-toggle="collapse"] i.bi-chevron-down {
  transition: transform 0.3s ease;
}

.nav-link[data-bs-toggle="collapse"]:not(.collapsed) i.bi-chevron-down {
  transform: rotate(180deg);
}

.nav-link[data-bs-toggle="collapse"][aria-expanded="true"] i.bi-chevron-down {
  transform: rotate(180deg);
}

/* Alt menü stilleri */
.collapse .nav-link {
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  font-weight: 400;
}

.collapse .nav-link:hover {
  background-color: #e3f2fd;
  color: var(--primary-color);
}

/* Sidebar dropdown ve hr */
.sidebar hr {
  border-color: #dee2e6;
  opacity: 1;
}

.sidebar .dropdown-menu {
  border: 1px solid #dee2e6;
}

.sidebar .dropdown-toggle {
  color: #495057 !important;
  font-weight: 500;
}

.sidebar .dropdown-toggle:hover {
  color: var(--primary-color) !important;
}

/* Kart stilleri */
.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

/* Ürün kartları */
.product-card {
  transition: all 0.2s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card.kitchen {
  border-left: 5px solid var(--kitchen-color);
}

.product-card.warehouse {
  border-left: 5px solid var(--warehouse-color);
}

/* Tablo stilleri */
.table th {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.02);
}

/* Form stilleri */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Buton stilleri */
.btn {
  font-weight: 500;
  border-radius: 0.25rem;
  padding: 0.375rem 0.75rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Badge stilleri */
.badge {
  font-weight: 500;
  border-radius: 0.25rem;
  padding: 0.35em 0.65em;
}

.location-badge {
  font-size: 0.75rem;
}

/* Ürün görselleri */
.product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid #eee;
}

/* Giriş sayfası stilleri */
.login-logo {
  max-width: 150px;
  margin-bottom: 1.5rem;
}

.form-signin {
  max-width: 330px;
  padding: 1rem;
}

/* Mobil uyumluluk ayarları */
@media (max-width: 576px) {
  .content {
    padding: 10px;
  }

  .card {
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Yazdırma ayarları */
/* @media print {

  .sidebar,
  .no-print,
  .modal,
  .btn {
    display: none !important;
  }

  .content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  body {
    background-color: white !important;
  }
} */

@media print {
  body * {
    visibility: hidden;
  }

  #printableArea,
  #printableArea *,
  #printableHeader,
  #printableHeader * {
    visibility: visible;
  }

  #printableArea {
    position: absolute;
    left: 0;
    top: 100px;
    width: 100%;
  }

  #printableHeader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* Tablo stilleri */
.table-dark td {
  font-weight: bold;
}

.card-header h6 {
  font-weight: bold;
}

.table th {
  white-space: nowrap;
}