/**
 * c4 Lab - Cold Analysis Tool Styles
 */

/* Readable text colors */
.text-muted {
  color: #41464b !important;
}
[data-bs-theme="dark"] .text-muted {
  color: #c8ccd0 !important;
}
.card .text-muted {
  color: #2d3238 !important;
}
[data-bs-theme="dark"] .card .text-muted {
  color: #d3d7db !important;
}
.small, small {
  color: #41464b;
}
[data-bs-theme="dark"] .small,
[data-bs-theme="dark"] small {
  color: #c8ccd0;
}
.form-hint {
  color: #41464b;
}
.dropdown-header {
  color: #1e2125;
  font-weight: 600;
}
[data-bs-theme="dark"] .dropdown-header {
  color: #e9ecef;
}

/* Tool cards */
.tool-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid #206bc4;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(32, 107, 196, 0.2);
}

/* Blue/cool theme accents */
.bg-lab {
  background: linear-gradient(135deg, #206bc4 0%, #4299e1 100%);
}
.text-lab {
  color: #206bc4;
}
.border-lab {
  border-color: #206bc4 !important;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
  .btn-list {
    flex-direction: column;
    gap: 0.5rem;
  }
  .btn-list .btn {
    width: 100%;
  }
  .card-body {
    padding: 1rem;
  }
}

/* Evidence accordion */
.accordion-button:not(.collapsed) {
  background-color: rgba(32, 107, 196, 0.1);
  color: #206bc4;
}

/* Code/monospace styling */
code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}
[data-bs-theme="dark"] code {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Import success styling */
.import-success {
  border-left: 4px solid #2fb344;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
}

/* Dark mode card fixes */
[data-bs-theme="dark"] .card {
  background-color: #1e2433 !important;
  border-color: #2c3547 !important;
}

[data-bs-theme="dark"] .card-header {
  background-color: transparent;
  border-bottom-color: #2c3547;
}

[data-bs-theme="dark"] .card-body {
  background-color: transparent;
}

/* Dark mode stat card avatars */
[data-bs-theme="dark"] .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dark mode table fixes */
[data-bs-theme="dark"] .table {
  color: #c8ccd0;
}

[data-bs-theme="dark"] .table thead {
  background-color: #252d3a !important;
}

[data-bs-theme="dark"] .table thead th {
  background-color: #252d3a !important;
  border-color: #2c3547 !important;
  color: #8a919a;
}

[data-bs-theme="dark"] .table tbody tr {
  background-color: transparent;
}

[data-bs-theme="dark"] .table tbody td {
  border-color: #2c3547 !important;
}

[data-bs-theme="dark"] .table-vcenter tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .card-table thead th {
  background-color: #252d3a !important;
}

/* Dark mode badges */
[data-bs-theme="dark"] .badge.bg-blue-lt {
  background-color: rgba(32, 107, 196, 0.2) !important;
  color: #4dabf7 !important;
}

[data-bs-theme="dark"] .badge.bg-green-lt {
  background-color: rgba(47, 179, 68, 0.2) !important;
  color: #69db7c !important;
}

/* Dark mode h3/h4 in cards */
[data-bs-theme="dark"] .card h3,
[data-bs-theme="dark"] .card h4,
[data-bs-theme="dark"] .card .h3,
[data-bs-theme="dark"] .card .h4 {
  color: #ffffff;
}

/* Dark mode dropdown menus */
[data-bs-theme="dark"] .dropdown-menu {
  background-color: #1e2433;
  border-color: #2c3547;
}

[data-bs-theme="dark"] .dropdown-item {
  color: #c8ccd0;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: rgba(32, 107, 196, 0.15);
  color: #ffffff;
}

[data-bs-theme="dark"] .dropdown-divider {
  border-color: #2c3547;
}

/* Dark mode page body */
[data-bs-theme="dark"] .page-body {
  background-color: #151822;
}

[data-bs-theme="dark"] .page {
  background-color: #151822;
}

/* Dark mode navbar */
[data-bs-theme="dark"] .navbar {
  background-color: #1e2433;
}

/* Dark mode modal */
[data-bs-theme="dark"] .modal-content {
  background-color: #1e2433;
  border-color: #2c3547;
}

[data-bs-theme="dark"] .modal-header {
  border-bottom-color: #2c3547;
}

[data-bs-theme="dark"] .modal-footer {
  border-top-color: #2c3547;
}

/* Dark mode form controls */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #151822;
  border-color: #2c3547;
  color: #c8ccd0;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #151822;
  border-color: #206bc4;
  color: #ffffff;
}

/* Dark mode buttons */
[data-bs-theme="dark"] .btn-secondary {
  background-color: #2c3547;
  border-color: #3d4a5f;
  color: #c8ccd0;
}

[data-bs-theme="dark"] .btn-secondary:hover {
  background-color: #3d4a5f;
  border-color: #4d5a6f;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  border-color: #3d4a5f;
  color: #c8ccd0;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #2c3547;
  border-color: #3d4a5f;
}

/* Fix button icon sizing */
.btn-sm .icon,
.btn-sm i.ti {
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
  line-height: 1;
  vertical-align: middle;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  min-width: 2rem;
  min-height: 2rem;
}

/* Action button fixes - only for icon-only buttons in tables */
.table .btn-list .btn-sm,
.btn-list .btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.table .btn-list .btn-sm .icon,
.table .btn-list .btn-sm i.ti,
.btn-icon .icon,
.btn-icon i.ti {
  margin: 0;
}
