/* =========================================================================
   TRex Portal — Custom Styles & Micro-interactions
   ========================================================================= */

/* ---- Card hover elevation ---- */
.card {
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Button transitions ---- */
.btn {
  transition: all 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-lg {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---- Navbar link hover ---- */
.navbar .nav-link {
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 6px;
}
.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* ---- Value box refinement ---- */
.bslib-value-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bslib-value-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ---- Accordion polish ---- */
.accordion-button {
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(27, 107, 147, 0.05);
}

/* ---- Table row hover ---- */
.table-hover tbody tr:hover {
  transition: background-color 0.15s ease;
}

/* ---- Sidebar input spacing ---- */
.sidebar .form-group {
  margin-bottom: 0.6rem;
}

/* ---- Spinner color override ---- */
.shiny-spinner-output-container .load-container {
  color: #1B6B93 !important;
}

/* ---- Smooth tab transitions ---- */
.tab-content > .tab-pane {
  transition: opacity 0.2s ease;
}

/* ---- Progress line ---- */
.shinybusy-modal-progress-line .shinybusy-progress-bar {
  border-radius: 4px;
}

/* ---- Citation card ---- */
#citation {
  transition: box-shadow 0.3s ease;
}
#citation:hover {
  box-shadow: 0 4px 16px rgba(27, 107, 147, 0.12);
}

/* ---- Footer link hover ---- */
footer a:hover, .app-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* ---- Plotly modebar polish ---- */
.plotly .modebar {
  opacity: 0.3;
  transition: opacity 0.2s ease;
}
.plotly:hover .modebar {
  opacity: 1;
}

/* ---- Responsive images ---- */
img {
  max-width: 100%;
}
