/* Lightweight modal & tooltip styles — replaces Bootstrap + Materialize */

/* Modal backdrop */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-dialog {
  width: 90%;
  max-width: 400px;
}

.modal-content {
  background-color: var(--bg-card, #1a1d28);
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.4));
  overflow: hidden;
}

.modal-body {
  padding: 24px;
  text-align: center;
}

.modal-title {
  color: var(--text-heading, #fff) !important;
  font-size: 22px !important;
}

.modal-body p {
  color: var(--text-secondary, #8b8fa3) !important;
  margin-top: 8px;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 24px 20px;
  flex-wrap: wrap;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff !important;
  transition: all 0.2s ease;
  border: none;
}

.modal-close.steelblue,
.btn-small.steelblue {
  background-color: var(--accent, #4da6ff) !important;
}

.modal-close.steelblue:hover,
.btn-small.steelblue:hover {
  background-color: var(--accent-hover, #3a8de0) !important;
}

.modal-close.steel-red,
.btn-small.steel-red {
  background-color: #882020 !important;
}

.modal-close.steel-red:hover,
.btn-small.steel-red:hover {
  background-color: #aa2020 !important;
}

.btn-resize {
  font-size: 15px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-basis: 88%;
}

.btn-resize-undo {
  font-size: 15px;
  align-items: center;
  justify-content: center;
  display: flex !important;
  flex-basis: 43%;
}

/* Tooltip */
.sol-tooltip {
  position: fixed;
  background: var(--bg-card, #1a1d28);
  color: var(--text-primary, #e2e4ea);
  border: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 2000;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Material Icons fix (loaded from Google Fonts) */
.material-icons {
  font-size: 24px;
  vertical-align: middle;
}

/* List group (toolbar) */
.list-group {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-group-horizontal {
  flex-direction: row;
}

.list-group-item {
  padding: 0;
  border: none;
  background: transparent;
}

.list-group-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--text-primary, #e2e4ea);
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.list-group-item a:hover {
  color: var(--accent, #4da6ff);
}

.list-group-item a .material-icons {
  color: inherit;
}

/* Bootstrap grid compatibility */
.container-fluid {
  width: 100%;
  padding: 0 12px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.justify-content-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}
