@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* public/css/custom.css */
body,
html {
  font-family: "Montserrat", sans-serif !important;
}

.content-wrapper {
  background-color: rgb(245, 245, 249);
}

/* Vendor default is rgba(0,0,0,.1) - too faint to read the sidebar's
   own labels against page content underneath on mobile/tablet, where
   the sidebar opens as an overlay rather than pushing content over. */
#sidebar-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.content-wrapper,
.main-header,
.sidebar,
.card,
.navbar,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif !important;
}

.nav-pills .nav-link {
  color: #384551;
}

.nav-pills .nav-link:hover {
  background-color: #e9eaec;
  color: #384551;
}

.nav-pills .nav-link:not(.active):hover {
  color: #384551;
}

.bg-success {
  background-color: #1b940b !important;
}

@media (min-width: 992px) {
  .sidebar-mini.sidebar-collapse .main-sidebar,
  .sidebar-mini.sidebar-collapse .main-sidebar::before {
    margin-left: 0;
    width: 4.6rem;
    background-color: #fff;
  }
}

.brand-link {
  font-size: 1.1rem;
  box-shadow: 5px 1px 2px #ccc;
}

.badge {
  font-size: 0.75rem;
}

.table thead {
  background-color: #f8f9fa;
}

.btn-purple {
  background-color: #6c5ce7;
  color: white;
}

.action-icons i {
  cursor: pointer;
}

.pagination-info {
  font-size: 0.9rem;
  padding-top: 10px;
}

.no-button-style {
  outline: none;
  background-color: transparent;
  border: none;
}

.no-txt-dec {
  color: #384551;
  text-decoration: none;
}

/* Bootstrap Switch Animation */
.enhanced-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
  transition: background-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.enhanced-switch .form-check-input:checked {
  background-color: #4caf50;
}

.enhanced-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.enhanced-switch .form-check-input:checked::before {
  transform: translateX(1.5rem);
}

.enhanced-switch .form-check-input::before {
  content: "";
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  position: relative;
  top: 0.15rem;
  left: 0.15rem;
  transition: transform 0.3s;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 2px;
  box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21);
}

.modal-header {
  border-bottom: 1px solid #eee;
  padding-top: 15px;
  padding-right: 26px;
  padding-left: 26px;
  padding-bottom: 0px;
}

.modal-title {
  font-size: 34px;
}

.modal-body {
  border-bottom: 0;
  padding-top: 5px;
  padding-right: 26px;
  padding-left: 26px;
  padding-bottom: 10px;
  font-size: 15px;
}

.modal-footer {
  border-top: 1px solid #eee;
  padding-top: 0px;
  padding-right: 26px;
  padding-bottom: 26px;
  padding-left: 26px;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transform: translateY(-50px);
}

.modal.show .modal-dialog {
  transform: translateY(0);
}


.badge-permission {
  background: #edf2ff;
  color: #1e40af;
  font-size: 0.75rem;
  padding: 0.4em 0.7em;
  border-radius: 999px;
  margin-right: 5px;
  font-weight: 600;
}

.btn-icon {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: #0d6efd;
}

.btn-icon:hover {
  color: #0a58ca;
}

.table thead th {
  background-color: #f8fafc;
}

.card-header-custom {
  background: linear-gradient(to right, #4f46e5, #6366f1);
  color: white;
  padding: 1.25rem 1.5rem;
}

.card-custom {
  border-radius: 0.0;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  border: none;
}

.btn {
  border: none;
  border-radius: 2px;
  display: inline-block;
  text-align: center;
  height: 36px;
  line-height: 36px;
  outline: 0;
  padding: 0 2rem;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  letter-spacing: .5px;
  transition: .2s ease-out;
}

.btn:hover {
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.btn-primary {
  color: #FFF;
  background-color: #2980B9;
}
.btn-primary:hover {
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}
.btn-outline-primary{
  color: #0d6efd;
}
.btn-outline-secondary{
  color: #6c757d;
}
.btn-outline-danger{
  color: #dc3545;
}
.btn-outline-success{
  color: #198754;
}
.btn-light{
  color:#000;
}

/* ==========================================================================
   Admin panel page-level components.
   .admin-page-header is shared across modules; .product-*.warehouse-*
   prefixed classes are scoped to their own pages only.
   ========================================================================== */

.admin-page-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2980B9 100%);
  color: #fff;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.admin-page-header h4 {
  color: #fff;
}

.admin-page-header small {
  color: rgba(255, 255, 255, 0.8) !important;
}

.admin-page-header .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.admin-page-header .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.admin-page-header .btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.admin-page-header .btn-outline-primary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.product-filter-card .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c7a8a;
}

.product-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c7a8a;
  white-space: nowrap;
}

.product-table tbody tr:hover {
  background-color: #f5f9fd;
}

.product-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  transition: transform 0.15s ease;
}

.product-thumb:hover {
  transform: scale(1.6);
  position: relative;
  z-index: 5;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

.product-thumb-placeholder {
  width: 44px;
  height: 44px;
  background: #eef1f5;
  color: #adb5bd;
  font-size: 1.1rem;
}

.product-row-actions .btn {
  height: auto;
  line-height: 1.4;
  padding: 0.25rem 0.6rem;
  box-shadow: none;
}

.product-empty-state {
  padding: 3rem 1rem;
  color: #8a94a3;
}

.product-empty-state i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  color: #c3cbd6;
}

.product-form-tabs.nav-tabs {
  border-bottom: 2px solid #eef1f5;
  gap: 0.25rem;
}

.product-form-tabs.nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: #6c7a8a;
  font-weight: 500;
  padding: 0.6rem 1rem;
  margin-bottom: -2px;
}

.product-form-tabs.nav-tabs .nav-link i {
  margin-right: 0.35rem;
}

.product-form-tabs.nav-tabs .nav-link.active {
  border-bottom-color: #2980B9;
  color: #2980B9;
  background: transparent;
}

.product-form-tabs.nav-tabs .nav-link:hover:not(.active) {
  border-bottom-color: #c3cbd6;
  color: #384551;
}

.admin-form-section-hint {
  font-size: 0.8rem;
  color: #8a94a3;
  margin-bottom: 1rem;
}

.product-save-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #eef1f5;
  z-index: 5;
}

.admin-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8a94a3;
  display: block;
  margin-bottom: 0.15rem;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.product-gallery img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #fff;
  padding: 0.25rem;
}

.product-image-tile {
  height: 140px;
  background: #f8f9fa;
  border-bottom: 1px solid #eef1f5;
}

.product-image-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-image-tile i {
  font-size: 2rem;
}

.product-activity-item {
  border-left: 2px solid #eef1f5;
  padding: 0 0 1rem 1rem;
  margin-left: 0.4rem;
  position: relative;
}

.product-activity-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2980B9;
}

.product-activity-item:last-child {
  padding-bottom: 0;
}

/* ==========================================================================
   Warehouse admin pages (index + modals)
   ========================================================================== */

.warehouse-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c7a8a;
  white-space: nowrap;
}

.warehouse-form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2980B9;
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #eef1f5;
}

.warehouse-form-section-title:first-child {
  margin-top: 0;
}