:root {
  --primary-bg: #0d6efd;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: #f5f7fb;
}

.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
}

.auth-hero {
  padding: 3rem;
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
}

.auth-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
}

.auth-form {
  padding: 3rem;
  background: #fff;
}

.auth-form .form-control-lg {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
}

.auth-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-footer {
  margin-top: 1rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 32, 54, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 2000;
}

.loading-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.loading-dialog {
  max-width: 520px;
  width: 90%;
  padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.8), rgba(111, 66, 193, 0.8));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.progress-overlay {
  height: 0.6rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
}

.card {
  border-radius: 1rem;
}

.metric-card {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(111, 66, 193, 0.12));
  border: 1px solid rgba(13, 110, 253, 0.15);
}

.toast-container {
  z-index: 1055;
}

.navbar-brand {
  letter-spacing: 0.02em;
}

@media (max-width: 992px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    display: none !important;
  }

  .auth-form {
    padding: 2.5rem 1.5rem;
  }
}
.product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.stock-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.4rem;
  background-color: #dc3545;
}

.stock-indicator.in-stock {
  background-color: #198754;
}

.cart-list {
  max-height: 360px;
  overflow-y: auto;
}



.product-table th,
.product-table td {
  font-size: 10pt;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  border: 1px solid rgba(13, 110, 253, 0.1);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.product-preview-button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.product-preview-button::after {
  content: "Gorseli buyut";
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.65) 100%);
  color: #f8fafc;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.65rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-preview-button:hover::after,
.product-preview-button:focus::after {
  opacity: 1;
}

.product-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 2.5em;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.product-price-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d6efd;
}

.product-add-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-add-form input[type="number"] {
  max-width: 80px;
}

.product-add-form .btn {
  flex-shrink: 0;
}

.product-stock-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #334155;
}

.product-stock-indicator .stock-indicator {
  margin-right: 0;
}

.modal-product-image img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
}

.image-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.image-status-dot.status-available {
  background-color: #198754;
}

.image-status-dot.status-missing {
  background-color: #dc3545;
}

.product-image-table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.04);
}

.small-text {
  font-size: 10pt;
}

.customer-list-table {
  font-size: 10pt;
}

.small-tabs .nav-link {
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
}





/* Admin specific styles */
.admin-user-list { font-size: 0.833rem; }

/* Report Card Button Animation */
a.text-decoration-none .card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

a.text-decoration-none:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.logo-contracts {
    font-size: 10pt;
}

th.sortable {
    position: relative;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
    cursor: pointer;
}
th.sortable::after {
    content: '\2195'; /* Up-down arrow */
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    font-size: 0.8em;
}
th.sortable.asc::after {
    content: '\2191'; /* Up arrow */
    opacity: 1;
}
th.sortable.desc::after {
    content: '\2193'; /* Down arrow */
    opacity: 1;
}
