/* ========================================
   SETLISTER - UTILITY CLASSES
   ======================================== */

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.custom-gap {
  gap: 6rem;
}

@media (min-width: 1200px) {
  .custom-gap {
    gap: 12rem;
  }
}

@media (min-width: 1400px) {
  .custom-gap {
    gap: 14.5rem;
  }
}

/* ========================================
   BUTTON UTILITIES
   ======================================== */

/* Compact pulldown styling */
.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* ========================================
   DRAG & DROP UTILITIES
   ======================================== */

.drag-over {
  background-color: rgba(0, 123, 255, 0.1) !important;
  border: 2px dashed #007bff !important;
}

.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

/* Make setlist songs show they're draggable */
.setlist-song {
  cursor: grab;
}

.setlist-song:active {
  cursor: grabbing;
}

/* ========================================
   VERSION HISTORY UTILITIES
   ======================================== */

.version-list {
  max-height: 400px;
  overflow-y: auto;
}

.version-item {
  display: block;
  padding: 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.version-item:hover {
  background-color: #f8f9fa;
  border-color: #007bff;
  text-decoration: none;
  color: inherit;
}

.version-item.current {
  background-color: #e7f3ff;
  border-color: #007bff;
}

.version-header {
  font-weight: bold;
  margin-bottom: 4px;
}

.version-meta {
  font-size: 0.85em;
  color: #6c757d;
}

/* ========================================
   DROPDOWN UTILITIES
   ======================================== */

.song-extended-panel .dropdown-menu {
  font-size: 0.8rem;
}

/* ========================================
   DARK THEME STYLES
   ======================================== */

body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Override Bootstrap's default backgrounds */
.container,
.container-fluid {
  background-color: transparent !important;
}

/* Dark theme for cards */
.card {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
  color: #aaaaaa !important;
}

.card-header {
  background-color: #2d2d2d !important;
  border-bottom-color: #333333 !important;
  color: #aaaaaa !important;
}

.card-body {
  color: #aaaaaa !important;
}

/* Dark theme for navbar */
.navbar-dark {
  background-color: #000000 !important;
}

/* Dark theme for buttons */
.btn-outline-primary {
  color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.btn-outline-primary:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.btn-outline-secondary {
  color: #cccccc !important;
  border-color: #cccccc !important;
}

.btn-outline-secondary:hover {
  background-color: #cccccc !important;
  color: #000000 !important;
}

.btn-outline-success {
  color: #00ff00 !important;
  border-color: #00ff00 !important;
}

.btn-outline-success:hover {
  background-color: #00ff00 !important;
  color: #000000 !important;
}

/* Dark theme for form elements */
.form-control {
  background-color: #2d2d2d !important;
  border-color: #555555 !important;
  color: #ffffff !important;
}

.form-control:focus {
  background-color: #2d2d2d !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}

.form-select {
  background-color: #2d2d2d !important;
  border-color: #555555 !important;
  color: #ffffff !important;
}

.form-select:focus {
  background-color: #2d2d2d !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}

/* Dark theme for text */
.text-muted {
  color: #aaaaaa !important;
}

.text-dark {
  color: #ffffff !important;
}

h1 {
  color: #aaaaaa !important;
}

/* Dark theme for alerts */
.alert-success {
  background-color: #1a4d1a !important;
  border-color: #2d5a2d !important;
  color: #ffffff !important;
}

.alert-danger {
  background-color: #4d1a1a !important;
  border-color: #5a2d2d !important;
  color: #ffffff !important;
}

/* Dark theme for tables */
.table {
  color: #ffffff !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
  background-color: #2d2d2d !important;
}

/* Dark theme for dropdowns */
.dropdown-menu {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
}

.dropdown-item {
  color: #ffffff !important;
}

.dropdown-item:hover {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

/* Dark theme for modals */
.modal-content {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.modal-header {
  border-bottom-color: #333333 !important;
}

.modal-footer {
  border-top-color: #333333 !important;
}

/* Dark theme for pagination */
.page-link {
  background-color: #2d2d2d !important;
  border-color: #555555 !important;
  color: #ffffff !important;
}

.page-link:hover {
  background-color: #404040 !important;
  border-color: #777777 !important;
  color: #ffffff !important;
}

.page-item.active .page-link {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* Dark theme for badges */
.badge {
  color: #000000 !important;
}

/* Dark theme for list groups */
.list-group-item {
  background-color: #2d2d2d !important;
  border-color: #555555 !important;
  color: #ffffff !important;
}

.list-group-item:hover {
  background-color: #404040 !important;
}

/* Dark theme for progress bars */
.progress {
  background-color: #2d2d2d !important;
}

/* Dark theme for breadcrumbs */
.breadcrumb {
  background-color: #2d2d2d !important;
}

.breadcrumb-item a {
  color: #ffffff !important;
}

/* Dark theme for close buttons */
.btn-close {
  filter: invert(1) !important;
}

/* Navigation background images - match Bootstrap link color */
.nav-link[style*="background-image"] {
  filter: hue-rotate(0deg) saturate(2) brightness(0.8);
}

/* ========================================
   MARQUEE HEADER STYLES
   ======================================== */

.marquee-header {
  border-radius: 0;
  margin-bottom: 0 !important;
  background-image: url("/images/marquee-bg.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: repeat-x;
  background-color: white !important;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-header h2 {
  font-family: "TW Cen MT Condensed Bold", "Arial Narrow", Arial, sans-serif;
  font-weight: bold;
  font-size: 3em;
  letter-spacing: 3px;
  color: #cc0000 !important;
  text-shadow:
    1px 1px 0 #990000,
    -1px -1px 0 #990000,
    1px -1px 0 #990000,
    -1px 1px 0 #990000;
}

.marquee-container {
  margin: 0 20px 0 20px;
  width: auto;
}

/* Make form-text the same color as text-muted */
.form-text {
  color: var(--bs-secondary) !important;
}

/* Add margin to alert messages */
.alert {
  margin: 0 20px 0 20px;
}

/* Timeline content dark mode background */
.timeline-content {
  background-color: #e9ecef !important;
  padding: 1rem;
  border-radius: 0.375rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .timeline-content {
    background-color: #343a40 !important;
  }
}
