/* Inspace WebApp Custom Styles */

/* Custom Icon Font (using Bootstrap Icons class names for compatibility) */
[class^="icon-"], [class*=" icon-"] {
  font-family: 'Bootstrap Icons';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-folder:before { content: "\f3d7"; }
.icon-grid:before { content: "\f3eb"; }
.icon-file-text:before { content: "\f3c7"; }
.icon-shopping-cart:before { content: "\f5cb"; }
.icon-log-in:before { content: "\f4b7"; }
.icon-user-plus:before { content: "\f650"; }
.icon-settings:before { content: "\f5b7"; }
.icon-mail:before { content: "\f49a"; }
.icon-shield:before { content: "\f5bb"; }
.icon-log-out:before { content: "\f4b8"; }
.icon-user:before { content: "\f651"; }
.icon-sliders:before { content: "\f5c3"; }
.icon-check:before { content: "\f26b"; }
.icon-key:before { content: "\f473"; }
.icon-check-circle:before { content: "\f26d"; }
.icon-alert-circle:before { content: "\f1e0"; }
.icon-alert-triangle:before { content: "\f1e2"; }

/* Header Styles */
.navbar-brand img {
  vertical-align: baseline;
}

.navbar-brand svg {
  vertical-align: baseline;
}

/* User Menu Dropdown */
.dropdown-menu {
  min-width: 250px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1050;
  position: absolute;
}

.dropdown-menu.show {
  display: block !important;
}

.dropdown-header {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  transition: background-color 0.15s ease-in-out;
}

.dropdown-item i {
  width: 1rem;
  text-align: center;
}

.dropdown-item:hover {
  background-color: var(--bs-primary-bg-subtle);
}

.dropdown-item:focus {
  background-color: var(--bs-primary-bg-subtle);
}

/* Ensure dropdown toggle cursor */
.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle::after {
  margin-left: 0.5rem;
}

/* Profile image styling */
.nav-link img.rounded-circle {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Email Verification Banner */
.alert-warning {
  border-left: 4px solid #f0ad4e;
}

/* User Avatar */
.rounded-circle {
  object-fit: cover;
}



/* Utilities */

.max-height-200 {

  max-height: 200px;

}



/* Loading states */

.spinner-border {

  width: 3rem;

  height: 3rem;

}



/* Card enhancements */

.card-img-top {

  transition: transform 0.2s ease-in-out;

}



.card:hover .card-img-top {

  transform: scale(1.05);

}



/* Status badges */

.badge {

  font-size: 0.75em;

}



/* Navigation enhancements */

.navbar-brand {

  font-weight: 600;

}



/* Alert styling */

.alert {

  border: none;

  border-radius: 0.5rem;

}



/* Form enhancements */

.form-control:focus,

.form-select:focus {

  border-color: #0d6efd;

  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);

}



/* Button group styling */

.btn-group .btn {

  border-radius: 0.375rem;

}



.btn-group .btn:not(:first-child) {

  margin-left: 0.25rem;

}



/* Table enhancements */

.table {

  background-color: white;

}



.table th {

  border-top: none;

  font-weight: 600;

  color: #495057;

}



/* Modal enhancements */

.modal-header {

  background-color: #f8f9fa;

  border-bottom: 1px solid #dee2e6;

}



.modal-footer {

  background-color: #f8f9fa;

  border-top: 1px solid #dee2e6;

}



/* List group styling */

.list-group-item {

  border: 1px solid rgba(0, 0, 0, 0.125);

  margin-bottom: 0.25rem;

  border-radius: 0.375rem;

}



/* Responsive utilities */

@media (max-width: 768px) {

  .btn-group {

    flex-direction: column;

  }

  

  .btn-group .btn {

    margin-left: 0;

    margin-top: 0.25rem;

  }

  

  .btn-group .btn:first-child {

    margin-top: 0;

  }

}



/* Icon spacing */

.bi {

  margin-right: 0.25rem;

}



/* Empty state styling */

.text-center .display-1,

.text-center .display-4 {

  opacity: 0.6;

}



/* Animation for alerts */

.alert {

  animation: slideInDown 0.3s ease-out;

}



@keyframes slideInDown {

  from {

    transform: translateY(-100%);

    opacity: 0;

  }

  to {

    transform: translateY(0);

    opacity: 1;

  }

}



/* Status color customizations */

.bg-draft { background-color: #6c757d !important; }

.bg-planning { background-color: #fd7e14 !important; }

.bg-active { background-color: #198754 !important; }

.bg-completed { background-color: #0d6efd !important; }

.bg-cancelled { background-color: #dc3545 !important; }



.bg-submitted { background-color: #ffc107 !important; color: #000 !important; }

.bg-received { background-color: #0dcaf0 !important; }

.bg-accepted { background-color: #198754 !important; }

.bg-rejected { background-color: #dc3545 !important; }



.bg-confirmed { background-color: #0d6efd !important; }

.bg-in_production { background-color: #ffc107 !important; color: #000 !important; }

.bg-shipped { background-color: #0dcaf0 !important; }

.bg-delivered { background-color: #198754 !important; }



/* Spacing utilities */

.py-6 {

  padding-top: 4rem !important;

  padding-bottom: 4rem !important;

}



/* Custom scrollbar for filter areas */

.max-height-200::-webkit-scrollbar {

  width: 6px;

}



.max-height-200::-webkit-scrollbar-track {

  background: #f1f1f1;

  border-radius: 3px;

}



.max-height-200::-webkit-scrollbar-thumb {

  background: #c1c1c1;

  border-radius: 3px;

}



.max-height-200::-webkit-scrollbar-thumb:hover {

  background: #a8a8a8;

}

