: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: 0rem;
  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;
  vertical-align: middle;
}

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

.product-name-button {
  font-weight: 600;
  font-size: 1rem;
  color: #0d6efd;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
}

.product-name-button:hover,
.product-name-button:focus {
  text-decoration: underline;
}

.product-table .stock-indicator {
  margin-right: 0.35rem;
}

.product-table .product-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: flex-end;
  align-items: center;
}

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

.product-table .product-add-form .btn {
  flex-shrink: 0;
}
.btn-icon-square {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
}

.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;
}

.dashboard-task-item {
  border-left: 4px solid transparent;
}

.dashboard-task-deadline-badge {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.dashboard-task-item.task-deadline-overdue {
  border-left-color: #dc3545;
  background-color: #fff5f5;
}

.dashboard-task-deadline-badge.task-deadline-overdue {
  color: #842029;
  background-color: #f8d7da;
}

.dashboard-task-item.task-deadline-today {
  border-left-color: #fd7e14;
  background-color: #fff8f2;
}

.dashboard-task-deadline-badge.task-deadline-today {
  color: #7a3e00;
  background-color: #ffe5d0;
}

.dashboard-task-item.task-deadline-soon {
  border-left-color: #ffc107;
  background-color: #fffdf2;
}

.dashboard-task-deadline-badge.task-deadline-soon {
  color: #664d03;
  background-color: #fff3cd;
}

.dashboard-task-item.task-deadline-upcoming {
  border-left-color: #0d6efd;
  background-color: #f4f9ff;
}

.dashboard-task-deadline-badge.task-deadline-upcoming {
  color: #084298;
  background-color: #cfe2ff;
}

.dashboard-task-item.task-deadline-later {
  border-left-color: #198754;
  background-color: #f4fff8;
}

.dashboard-task-deadline-badge.task-deadline-later {
  color: #0f5132;
  background-color: #d1e7dd;
}

.dashboard-task-item.task-deadline-no-date {
  border-left-color: #6c757d;
}

.dashboard-task-deadline-badge.task-deadline-no-date {
  color: #495057;
  background-color: #e9ecef;
}
