/* CrownateStudio Price List - Custom Dashboard Styles */

:root {
  --price-bg: #030712;
  --price-surface: #111827;
  --price-border: #334155;
  --price-accent: #3b82f6;
  --price-gold: #fbbf24;
  --price-success: #10b981;
  --price-danger: #ef4444;
}

body.boq-page-custom {
  background-color: var(--price-bg);
  color: #f9fafb;
  font-family: 'Inter', sans-serif;
}

.glass-panel {
  background-color: var(--price-surface);
  border-radius: 12px;
  border: 1px solid var(--price-border);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.6);
}

/* Custom Sidebar Pills navigation */
.custom-sidebar-pills .nav-link {
  color: #94a3b8 !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  padding: 12px 16px;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  background: transparent !important;
}

.custom-sidebar-pills .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.05);
}

.custom-sidebar-pills .nav-link.active {
  color: var(--price-gold) !important;
  background: rgba(251, 191, 36, 0.05) !important;
  border-color: var(--price-gold) !important;
  font-weight: 600;
}

/* Form inputs matching */
.form-control, .form-select {
  background-color: #0f172a !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 14px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--price-gold) !important;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.15) !important;
  outline: none;
}

/* Modals matching industrial styling */
.modal-industrial-content {
  background-color: #0b0f19 !important;
  border: 1px solid #334155 !important;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}

.modal-header, .modal-footer {
  border-color: rgba(255,255,255,0.05) !important;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.02);
  transition: all 0.3s;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--price-gold);
  background: rgba(251, 191, 36, 0.05);
}

.upload-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--price-accent);
  transition: width 0.1s linear;
}

/* Anomaly indicators */
.price-badge-anomaly {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
}

.price-badge-approved {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
}

.price-badge-pending {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
}

.font-mono {
  font-family: 'Courier New', Courier, monospace !important;
}

/* Tabs style within category builder modal */
#cat-tabs .nav-link {
  border: none !important;
  background: transparent !important;
  border-bottom: 2px solid transparent !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  transition: all 0.2s;
}

#cat-tabs .nav-link.active {
  color: var(--price-gold) !important;
  border-bottom: 2px solid var(--price-gold) !important;
}

#cat-tabs .nav-link:hover:not(.active) {
  color: #fff !important;
}

/* Text Visibility & Contrast Enhancements for Dark Mode */
.boq-page-custom .text-muted {
  color: #94a3b8 !important; /* Premium light slate gray for high contrast */
}

.boq-page-custom .text-white-50 {
  color: rgba(255, 255, 255, 0.65) !important;
}

.boq-page-custom input::placeholder,
.boq-page-custom textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  opacity: 1 !important;
}

/* Custom Pagination Styles */
.pagination-sm .page-link {
  background-color: #0f172a !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #94a3b8 !important;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  padding: 6px 12px;
  font-size: 11.5px;
}

.pagination-sm .page-link:hover {
  background-color: rgba(251, 191, 36, 0.08) !important;
  border-color: var(--price-gold) !important;
  color: #fff !important;
}

.pagination-sm .page-item.active .page-link {
  background-color: var(--price-gold) !important;
  border-color: var(--price-gold) !important;
  color: #030712 !important;
  font-weight: 600;
}

.pagination-sm .page-item.disabled .page-link {
  background-color: #0b0f19 !important;
  border-color: rgba(255,255,255,0.04) !important;
  color: rgba(255,255,255,0.2) !important;
  cursor: not-allowed;
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 991.98px) {
  /* Turn system registry sidebar nav into horizontal scrollable tab row */
  .custom-sidebar-pills {
    flex-direction: row !important;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Hide scrollbar for standard browsers but keep functionality */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  
  .custom-sidebar-pills::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }

  .custom-sidebar-pills .nav-item {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
  }

  .custom-sidebar-pills .nav-link {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 12.5px;
  }
  
  /* Make titles and headers fit better */
  h2.display-6, .display-6 {
    font-size: 1.8rem !important;
  }
  
  /* Responsive buttons at the top */
  .title-button-group {
    width: 100%;
    margin-top: 10px;
  }
  
  .title-button-group .btn {
    flex: 1 1 auto;
    text-align: center;
    font-size: 12px;
    padding: 8px 16px;
  }
  
  /* Responsive spacing */
  .glass-panel {
    padding: 1rem !important;
  }
}


