/* ============================================
   Redoubt Capital — Custom CSS
   Styles that Tailwind utility classes can't handle
   ============================================ */

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f0efe8;
}

::-webkit-scrollbar-thumb {
  background: #bbb5a8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9A7B2C;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #bbb5a8 #f0efe8;
}

/* Dark-bg scrollbar override (admin sidebar, landing left panel) */
.bg-charcoal-deep ::-webkit-scrollbar-track,
.bg-charcoal ::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.bg-charcoal-deep ::-webkit-scrollbar-thumb,
.bg-charcoal ::-webkit-scrollbar-thumb {
  background: #a08a3e;
}
.bg-charcoal-deep,
.bg-charcoal {
  scrollbar-color: #a08a3e #1a1a1a;
}

/* --- Focus-Visible Ring --- */
*:focus-visible {
  outline: 2px solid #C8A84E;
  outline-offset: 2px;
}

/* --- Sidebar Active Link --- */
.sidebar-link.active {
  border-left: 3px solid #C8A84E;
  background-color: rgba(200, 168, 78, 0.08);
  color: #C8A84E;
}

/* --- Stat Card Hover --- */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* --- Data Table --- */
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #2B2B2B;
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background-color: rgba(200, 168, 78, 0.06);
}

/* --- Tab Button Active State --- */
.tab-btn {
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tab-btn.active {
  border-bottom: 2px solid #C8A84E;
  color: #C8A84E;
}

/* --- Accordion Content Transition --- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content.open {
  max-height: 2000px;
}

/* --- Progress Bar Transition --- */
.progress-bar {
  transition: width 0.6s ease;
}

/* --- Modal Overlay Transition --- */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Mobile Menu Transition --- */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* --- Print Styles --- */
@media print {
  .no-print {
    display: none !important;
  }
}
