/* ========================================
   SETLISTER - PAGE-SPECIFIC STYLES
   ======================================== */

/* ========================================
   SETLIST EDIT PAGE
   ======================================== */

/* Version History Styles */
.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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-timestamp {
  font-weight: 500;
  color: #495057;
}

.version-user {
  font-size: 0.875rem;
  color: #6c757d;
}

.version-summary {
  font-size: 0.875rem;
  color: #495057;
  margin-top: 4px;
}

.version-actions {
  color: #6c757d;
}

/* Button sizing and layout - stack buttons when browser gets narrower than 1200px */
@media (max-width: 1199px) {
  /* Stack buttons vertically when browser gets narrower */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem !important;
  }

  .btn-group .btn i {
    font-size: 0.8rem;
  }

  /* Move icons closer to left edge for specific buttons */
  .btn-group .btn i.bi-arrow-left,
  .btn-group .btn i.bi-arrow-right {
    margin-right: 0.25rem;
  }

  .btn-group .btn i.bi-clock-history {
    margin-right: 0.25rem;
  }

  .btn-group .btn i.bi-save {
    margin-right: 0.25rem;
  }

  .btn-group .btn i.bi-eye {
    margin-right: 0.25rem;
  }

  .btn-group .btn i.bi-printer {
    margin-right: 0.25rem;
  }

  .btn-group .btn i.bi-music-note-list {
    margin-right: 0.25rem;
  }

  .btn-group .btn i.bi-download {
    margin-right: 0.25rem;
  }

  .btn-group .btn i.bi-share {
    margin-right: 0.25rem;
  }

  .btn-group .btn i.bi-three-dots {
    margin-right: 0.25rem;
  }

  /* Ensure first and last buttons have proper border radius */
  .btn-group .btn:first-child {
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
  }

  .btn-group .btn:last-child {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
  }
}

/* ========================================
   BAND SHOW PAGE
   ======================================== */

.song-icons {
  position: relative;
  top: 2px;
}

/* Band songs section specific styles */
.band-songs .song-card {
  cursor: pointer;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

/* Google Doc URL input styling */
#googleDocUrl {
  border: 2px solid #6c757d !important;
}

/* Email input styling to match Google Doc URL */
input[name="email"] {
  border: 2px solid #6c757d !important;
}

.band-songs .song-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* Removed blue border on hover for band page */
}

.band-songs .card-title {
  font-size: 0.95rem;
  line-height: 1.2;
}

.band-songs .badge {
  font-size: 0.7rem;
}

/* Ensure link styling doesn't interfere with card appearance */
.band-songs a {
  color: inherit;
  text-decoration: none;
}

.band-songs a:hover {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   SETLIST SHOW PAGE
   ======================================== */

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

.song-extended-panel .dropdown-item {
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
}

.song-extended-panel .btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.song-extended-panel .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   OPPORTUNITY PAGES
   ======================================== */

.opportunity-notes {
  background-color: #f8f9fa;
}

/* ========================================
   RESPONSIVE OVERRIDES
   ======================================== */

@media (max-width: 991px) {
  .col-lg-3, .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  .col-lg-3:last-child {
    margin-bottom: 0;
  }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
  .opportunity-notes {
    background-color: #343a40;
  }
  
  .dark-mode-phone-tool,
  .dark-mode-text-tool {
    background-color: #1e3a5f !important;
    border-color: #4a90e2 !important;
    color: #ffffff !important;
  }
  
  .dark-mode-phone-tool strong,
  .dark-mode-text-tool strong {
    color: #ffffff !important;
  }
  
  .dark-mode-phone-tool small,
  .dark-mode-text-tool small {
    color: #cccccc !important;
  }
  
  .dark-mode-instructions {
    background-color: #1e3a5f !important;
    border-color: #4a90e2 !important;
  }
  
.dark-mode-instructions i {
        color: #4a90e2 !important;
    }
    
    .dark-mode-message-sent {
        background-color: #343a40 !important;
        border: 1px solid #495057 !important;
    }
    
    .dark-mode-message-sent strong {
        color: #ffffff !important;
    }
    
    .dark-mode-message-sent small {
        color: #cccccc !important;
    }
    
    /* Rehearsal page dark mode styles */
    .set-section {
        background-color: #343a40 !important;
        border: 1px solid #495057 !important;
    }
    
    .set-title {
    }
    
    .song-card {
        background-color: #2c3034 !important;
        border: 1px solid #495057 !important;
    }
    

    
    .song-number {
        background-color: #495057 !important;
        border: 1px solid #6c757d !important;
    }
    
    .list-group-item {
        background-color: #343a40 !important;
        border: 1px solid #495057 !important;
    }
    
    .list-group-item:hover {
        background-color: #495057 !important;
    }
    
    .badge.bg-secondary {
        background-color: #6c757d !important;
    }
}

/* Dark mode styles for Bootstrap Select */
@media (prefers-color-scheme: dark) {
    .bootstrap-select .dropdown-toggle {
        background-color: #2d3748 !important;
        border-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .bootstrap-select .dropdown-toggle:focus {
        border-color: #4a5568 !important;
        box-shadow: 0 0 0 0.2rem rgba(74, 85, 104, 0.25) !important;
    }
    
    .bootstrap-select .dropdown-menu {
        background-color: #2d3748 !important;
        border-color: #4a5568 !important;
    }
    
    .bootstrap-select .bs-searchbox input {
        background-color: #4a5568 !important;
        border-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .bootstrap-select .bs-searchbox input::placeholder {
        color: #a0aec0 !important;
    }
    
    .bootstrap-select .bs-actionsbox .btn {
        background-color: #4a5568 !important;
        border-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .bootstrap-select .bs-actionsbox .btn:hover {
        background-color: #2d3748 !important;
        border-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .bootstrap-select .dropdown-item {
        color: #e2e8f0 !important;
    }
    
    .bootstrap-select .dropdown-item:hover,
    .bootstrap-select .dropdown-item:focus {
        background-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .bootstrap-select .dropdown-item.selected {
        background-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .bootstrap-select .filter-option-inner {
        color: #e2e8f0 !important;
    }
}

/* Playlist page styles */
.audio-player {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.player-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.control-btn {
    background: #007bff;
    color: #aaaaaa;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background: #0056b3;
}

.control-btn:active {
    background: #004085;
}

.control-btn i {
    font-size: large;
}

.bold-icon {
    -webkit-text-stroke: .3px white;
}

.playlist {
    padding: 0;
    margin: 0;
    list-style: none;
}

.playlist li {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.playlist li:hover {
    background-color: #f8f9fa;
}

.playlist li.active {
    background-color: #007bff !important;
    color: #aaaaaa;
}

.playlist li.active a {
    color: #aaaaaa;
}

.playlist li.active .song-title {
    color: #aaaaaa;
    font-weight: bold;
}

.playlist li.active .song-details {
    color: rgba(255, 255, 255, 0.8);
}

.playlist li.active .set-label {
    background: #ffffff;
    color: #007bff;
}

.playlist li:nth-child(odd) {
    background-color: #f8f9fa;
}

.playlist li:nth-child(even) {
    background-color: white;
}

.playlist li a {
    color: #333;
    text-decoration: none;
    display: block;
}

.song-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-title {
    font-weight: bold;
}

.song-title .song-artist,
.song-title .song-key,
.song-title .song-duration {
    font-weight: normal;
    opacity: 0.8;
}

.song-details {
    font-size: 14px;
    opacity: 0.7;
}

.set-label {
    background: #28a745;
    color: #aaaaaa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.set-summary-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.set-summary-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.set-summary-header {
    color: #495057;
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}

.set-summary-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.song-count {
    color: #6c757d;
    font-weight: 500;
}

.set-time {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

.total-summary-card {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.total-summary-card:hover {
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
    transform: translateY(-1px);
}

.info-icon-large {
    font-size: 2rem;
}

.total-summary-header {
    color: #1976d2;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #2196f3;
    padding-bottom: 8px;
}

.total-summary-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
}

.total-time {
    color: #1976d2;
    font-weight: bold;
    font-size: 1.2em;
}

.maybe-summary-card {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.maybe-summary-card:hover {
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    transform: translateY(-1px);
}

.maybe-summary-header {
    color: #856404;
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 5px;
}

.maybe-summary-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.maybe-time {
    color: #856404;
    font-weight: bold;
    font-size: 1.1em;
}

.no-audio {
    text-align: center;
    padding: 40px;
    color: #666;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Playlist page dark mode styles */
@media (prefers-color-scheme: dark) {
    .playlist li {
        background-color: #2d3748;
        border-bottom-color: #4a5568;
        color: #e2e8f0;
    }
    
    .playlist li:nth-child(odd) {
        background-color: #2d3748;
    }
    
    .playlist li:nth-child(even) {
        background-color: #374151;
    }
    
    .playlist li:hover {
        background-color: #4a5568;
    }
    
    .playlist li a {
        color: #e2e8f0;
    }
    
    .playlist li.active {
        background-color: #3182ce !important;
        color: #aaaaaa;
    }
    
    .playlist li.active a {
        color: #aaaaaa;
    }
    
    .playlist li.active .song-title {
        color: #aaaaaa;
    }
    
    .playlist li.active .song-details {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .playlist li.active .set-label {
        background: #ffffff;
        color: #3182ce;
    }
    
    .song-details {
        color: #a0aec0;
    }
    
    .set-summary-card {
        background-color: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .set-summary-header {
        color: #e2e8f0;
        border-bottom-color: #68d391;
    }
    
    .song-count {
        color: #a0aec0;
    }
    
    .set-time {
        color: #68d391;
    }
    
    .total-summary-card {
        background-color: #2b6cb0;
        border-color: #3182ce;
        color: #e2e8f0;
    }
    
    .audio-player {
        background-color: #4a5568;
        border-color: #718096;
    }
    
    .control-btn {
        background-color: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .control-btn:hover {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    .no-audio h3 {
        color: #e2e8f0;
    }
    
    .no-audio .text-muted {
        color: #a0aec0 !important;
    }
    
    /* Bootstrap Alert Dark Mode */
    .alert {
        border-color: #4a5568;
    }
    
    .alert-info {
        background-color: #2b6cb0;
        border-color: #3182ce;
        color: #e2e8f0;
    }
    
    .alert-warning {
        background-color: #744210;
        border-color: #975a16;
        color: #f7e98e;
    }
    
    .alert-success {
        background-color: #22543d;
        border-color: #38a169;
        color: #9ae6b4;
    }
    
    .alert-danger {
        background-color: #742a2a;
        border-color: #e53e3e;
        color: #fed7d7;
    }
}

/* Listen page styles */
.playlist-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.playlist-item:hover {
    background-color: #f8f9fa;
}

.playlist-item.active {
    background-color: #007bff !important;
    color: white;
}

.playlist-item.active .badge {
    background-color: white !important;
    color: #007bff !important;
}

.playlist-item.active .song-title {
    color: white !important;
}

.song-title {
    color: #aaaaaa;
}

.bold-icon {
    font-size: large;
    -webkit-text-stroke: 1px white;
}

/* Dark mode styles for listen page */
@media (prefers-color-scheme: dark) {
    .playlist-item:hover {
        background-color: #374151;
    }
    
    .playlist-item.active {
        background-color: #2563eb !important;
        color: white;
    }
    
    .playlist-item.active .badge {
        background-color: white !important;
        color: #2563eb !important;
    }
    
    .playlist-item.active .song-title {
        color: white !important;
    }
    
    .song-title {
        color: #aaaaaa;
    }
}
