/* ========================================
   The Band Plan - PAGE-SPECIFIC STYLES
   ======================================== */

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

/* Version History Styles - Enhanced version (basic styles in utilities.css) */

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-timestamp {
  font-weight: 500;
  color: var(--border-gray);
}

.version-user {
  font-size: 0.875rem;
  color: var(--color-gray-secondary);
}

.version-summary {
  font-size: 0.875rem;
  color: var(--border-gray);
  margin-top: 4px;
}

.version-actions {
  color: var(--color-gray-secondary);
}

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

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

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

/* Google Doc URL input styling */
#googleDocUrl {
  border: 2px solid var(--color-gray-secondary) !important;
}

/* Email input styling to match Google Doc URL */
input[name="email"] {
  border: 2px solid var(--color-gray-secondary) !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: var(--bg-light);
}

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

/* Playlist page styles */
.audio-player {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

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

.control-btn {
  background: var(--color-primary);
  color: var(--text-muted);
  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: 0.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: var(--bg-light);
}

.playlist li.active {
  background-color: var(--color-primary) !important;
  color: var(--text-muted);
}

.playlist li.active a {
  color: var(--text-muted);
}

.playlist li.active .song-title {
  color: var(--text-muted);
  font-weight: bold;
}

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

.playlist li.active .set-label {
  background: var(--color-white);
  color: var(--color-primary);
}

.playlist li:nth-child(odd) {
  background-color: var(--bg-light);
}

.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: var(--color-success);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.set-summary-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  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: var(--border-gray);
  font-size: 1.1em;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--color-success);
  padding-bottom: 5px;
}

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

.song-count {
  color: var(--color-gray-secondary);
  font-weight: 500;
}

.set-time {
  color: var(--color-success);
  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);
  }
}

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

.playlist-item:hover {
  background-color: var(--bg-light);
}

.playlist-item.active {
  background-color: var(--color-primary) !important;
  color: white;
}

.playlist-item.active .badge {
  background-color: white !important;
  color: var(--color-primary) !important;
}

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

.song-title {
  color: var(--text-muted);
}

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

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Tablet and below (max-width: 1199px) - Stack buttons vertically */
@media (max-width: 1199px) {
  .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;
  }
}

/* Mobile and below (max-width: 991px) - Column layout adjustments */
@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 and tools */
  .opportunity-notes {
    background-color: var(--bg-dark);
  }

  .dark-mode-phone-tool,
  .dark-mode-text-tool {
    background-color: var(--bg-dark-blue) !important;
    border-color: var(--color-blue) !important;
    color: var(--color-white) !important;
  }

  .dark-mode-phone-tool strong,
  .dark-mode-text-tool strong {
    color: var(--color-white) !important;
  }

  .dark-mode-phone-tool small,
  .dark-mode-text-tool small {
    color: var(--color-light-gray) !important;
  }

  .dark-mode-instructions {
    background-color: var(--bg-dark-blue) !important;
    border-color: var(--color-blue) !important;
  }

  .dark-mode-instructions i {
    color: var(--color-blue) !important;
  }

  .dark-mode-message-sent {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-gray) !important;
  }

  .dark-mode-message-sent strong {
    color: var(--color-white) !important;
  }

  .dark-mode-message-sent small {
    color: var(--color-light-gray) !important;
  }

  /* Rehearsal page dark mode styles */
  .set-section {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-gray) !important;
  }

  .song-card {
    background-color: var(--bg-dark-gray) !important;
    border: 1px solid var(--border-gray) !important;
  }

  .song-number {
    background-color: var(--border-gray) !important;
    border: 1px solid var(--color-gray-secondary) !important;
  }

  .list-group-item {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-gray) !important;
  }

  .list-group-item:hover {
    background-color: var(--border-gray) !important;
  }

  .badge.bg-secondary {
    background-color: var(--color-gray-secondary) !important;
  }

  /* Bootstrap Select dark mode */
  .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 dark mode styles */
  .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: var(--text-muted);
  }

  .playlist li.active a {
    color: var(--text-muted);
  }

  .playlist li.active .song-title {
    color: var(--text-muted);
  }

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

  .playlist li.active .set-label {
    background: var(--color-white);
    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 dark mode styles */
  .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: var(--text-muted);
  }
}
