/* Party Slideshow Styles - Independent Stylesheet */
/*
 * Color Palette: Snow to Light Sand
 * - Primary: #f8f8f6 (snow white)
 * - Secondary: #f5f3ed (light sand)
 * - Accent: #e8e4d9 (sand)
 * - Dark: #d4cfc3 (medium sand)
 * - Text Dark: #5a5550 (dark brown for contrast)
 */

/* Reset application styles for P color */
p {
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.party-slideshow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 100vh;
  max-width: 100vw;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide.preload {
  opacity: 0;
  z-index: 1;
}

.qr-code {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-code:hover {
  transform: scale(1.05);
}

.qr-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.qr-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a5550;
  text-align: center;
  line-height: 1.2;
  max-width: 110px;
}

.empty-state {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f8f6 0%, #e8e4d9 100%);
}

.empty-content {
  text-align: center;
  color: #5a5550;
}

.empty-content h1 {
  font-size: 5rem;
  margin-bottom: 20px;
}

.empty-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.empty-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.empty-content .upload-button {
  display: inline-block;
  background: #5a5550;
  color: #f8f8f6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.empty-content .upload-button:hover {
  transform: scale(1.05);
  background: #4a453f;
}

/* Party Upload Styles */
.upload-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 20px;
  background: linear-gradient(135deg, #f8f8f6 0%, #e8e4d9 100%);
}

.upload-header {
  text-align: center;
  color: #5a5550;
  margin-bottom: 40px;
}

.upload-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.upload-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.upload-button-wrapper {
  margin: 20px 0;
}

.hidden-input {
  display: none;
}

.upload-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 200px;
  background: white;
  border: 3px dashed #d4cfc3;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 30px;
}

.upload-button:hover {
  transform: scale(1.05);
  border-color: #5a5550;
  box-shadow: 0 8px 20px rgba(90, 85, 80, 0.2);
}

.upload-button .icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

.upload-button .text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.preview-container {
  margin-top: 20px;
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
}

.preview-container img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.submit-button {
  background: #5a5550;
  color: #f8f8f6;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background: #4a453f;
}

.submit-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.progress-bar {
  width: 100%;
  max-width: 300px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.progress-fill {
  height: 8px;
  background: #5a5550;
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
  margin-bottom: 10px;
}

.progress-bar span {
  display: block;
  color: #333;
  font-weight: 600;
}

.error-message {
  background: #ff4444;
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  max-width: 400px;
}

.error-message button {
  background: white;
  color: #ff4444;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
}

.back-link {
  margin-top: 30px;
  color: #5a5550;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.9;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* Party Moderation Styles */
.moderate-container {
  min-height: 100vh;
  background: #f5f5f5;
  padding: 20px;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-group .download-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Unified Action Button Styles */
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary Button (Upload) */
.action-button.primary {
  background: linear-gradient(135deg, #5a5550 0%, #4a453f 100%);
  color: #f8f8f6;
  box-shadow: 0 2px 8px rgba(90, 85, 80, 0.3);
}

.action-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 85, 80, 0.4);
}

/* Default Button (Download All) */
.action-button {
  background: #d4cfc3;
  color: #5a5550;
  box-shadow: 0 2px 8px rgba(212, 207, 195, 0.25);
}

.action-button:hover {
  background: #c4bfb3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 207, 195, 0.35);
}

/* Secondary Button (User Filter) */
.action-button.secondary {
  background: #f5f3ed;
  color: #5a5550;
  box-shadow: 0 2px 8px rgba(90, 85, 80, 0.15);
}

.action-button.secondary:hover {
  background: #e8e4d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 85, 80, 0.25);
}

/* Danger Button (Delete) */
.action-button.danger {
  background: #ef4444;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.action-button.danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.moderate-header {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.moderate-header h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

.stats {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  color: #666;
}

.stats .count {
  font-weight: 600;
  color: #5a5550;
}

.view-slideshow {
  display: inline-block;
  background: #5a5550;
  color: #f8f8f6;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.view-slideshow:hover {
  background: #4a453f;
}

.pictures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.picture-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.picture-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.picture-card.deleting {
  opacity: 0.5;
  pointer-events: none;
}

.thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  background: #f0f0f0;
  overflow: hidden;
}

.thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 15px;
}

.picture-card:hover .overlay {
  opacity: 1;
}

.picture-info {
  color: white;
}

.timestamp {
  font-size: 0.85rem;
  font-weight: 500;
}

.delete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #ff4444;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.delete-button:hover {
  background: #cc0000;
}

.delete-button .icon {
  font-size: 1.2rem;
}

.moderate-container .empty-state {
  position: static;
  height: auto;
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
}

.moderate-container .empty-state .icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.moderate-container .empty-state .message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.upload-link {
  display: inline-block;
  background: #5a5550;
  color: #f8f8f6;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.upload-link:hover {
  background: #4a453f;
}

.actions-footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.actions-footer .upload-link {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.flash-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  background: #4caf50;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: slideIn 0.3s ease;
  transition: opacity 0.3s ease;
}

.flash-message.flash-notice {
  background: #4caf50;
}

.flash-message.flash-alert {
  background: #ff4444;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .bulk-actions-bar {
    flex-direction: column;
    gap: 10px;
  }

  .action-group {
    width: 100%;
  }

  .action-button {
    width: 100%;
    justify-content: center;
  }

  .download-group .download-options {
    flex-direction: column;
    width: 100%;
  }

  .upload-container {
    padding-top: 20px;
  }

  .upload-header {
    margin-bottom: 20px;
  }

  .upload-header h1 {
    font-size: 1.5rem;
  }

  .upload-button {
    min-width: 240px;
    min-height: 180px;
  }

  .upload-button .icon {
    font-size: 3rem;
  }

  .preview-container {
    max-width: 100%;
  }

  .preview-container img {
    max-height: 200px;
  }

  .qr-code {
    bottom: 15px;
    right: 15px;
    padding: 8px;
  }

  .qr-image {
    width: 85px;
    height: 85px;
  }

  .qr-text {
    font-size: 0.7rem;
    max-width: 95px;
  }

  .pictures-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .moderate-header h1 {
    font-size: 1.4rem;
  }

  .stats {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .pictures-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .empty-content h1 {
    font-size: 3rem;
  }

  .empty-content h2 {
    font-size: 1.5rem;
  }
}

/* Party Music Request Styles */
.music-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 20px;
  background: linear-gradient(135deg, #f8f8f6 0%, #e8e4d9 100%);
}

.music-header {
  text-align: center;
  color: #5a5550;
  margin-bottom: 30px;
}

.music-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.music-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Marquee Section */
.marquee-section {
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.marquee-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

.marquee-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #5a5550;
  margin-bottom: 8px;
  text-align: center;
}

.marquee {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: inline-flex;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-block;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  flex-shrink: 0;
}

.marquee-item::after {
  content: ' • ';
  color: #d4cfc3;
  font-weight: 700;
}

.marquee-group:last-child .marquee-item:last-child::after {
  content: '';
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover for better UX */
.marquee:hover .marquee-content {
  animation-play-state: paused;
}

/* Music Form Styles */
.music-form {
  width: 100%;
  max-width: 500px;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #5a5550;
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.form-checkbox {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #5a5550;
}

.checkbox-label {
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  color: #333;
}

.music-form .submit-button {
  width: 100%;
  background: linear-gradient(135deg, #5a5550 0%, #4a453f 100%);
  color: #f8f8f6;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.music-form .submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(90, 85, 80, 0.4);
}

.music-form .submit-button:active {
  transform: translateY(0);
}

/* Mobile optimizations for music page */
@media (max-width: 768px) {
  .music-container {
    padding-top: 20px;
  }

  .music-header {
    margin-bottom: 20px;
  }

  .music-header h1 {
    font-size: 1.6rem;
  }

  .music-header p {
    font-size: 1rem;
    color: #5a5550;
  }

  .marquee-section {
    gap: 10px;
    margin-bottom: 20px;
  }

  .marquee-wrapper {
    padding: 10px;
  }

  .marquee-label {
    font-size: 0.8rem;
  }

  .marquee-item {
    font-size: 0.9rem;
  }

  .music-form {
    padding: 20px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .music-header h1 {
    font-size: 1.4rem;
  }

  .marquee-content {
    animation-duration: 20s;
  }
}

/* Music Moderation Styles */
.music-moderation-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.music-moderation-section .section-header {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.music-moderation-section .section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

.music-moderation-section .stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #666;
}

.music-moderation-section .stats .count {
  font-weight: 600;
  color: #5a5550;
}

.music-moderation-section .stats .playlist-count,
.music-moderation-section .stats .karaoke-count {
  font-size: 0.9rem;
}

.music-requests-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.music-request-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.music-request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.music-info {
  flex: 1;
}

.music-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.music-type-badge.playlist {
  background: #e3f2fd;
  color: #1976d2;
}

.music-type-badge.karaoke {
  background: #fce4ec;
  color: #c2185b;
}

.song-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-link {
  color: #5a5550;
  text-decoration: none;
  transition: color 0.3s ease;
}

.song-link:hover {
  color: #4a453f;
  text-decoration: underline;
}

.link-icon {
  font-size: 0.9rem;
}

.submitter-info {
  color: #666;
  font-size: 0.95rem;
  margin: 5px 0;
}

.music-request-card .timestamp {
  color: #999;
  font-size: 0.85rem;
}

.music-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.edit-button,
.delete-button-small {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.edit-button {
  background: #5a5550;
  color: #f8f8f6;
  text-decoration: none;
}

.edit-button:hover {
  background: #4a453f;
  transform: scale(1.1);
}

.delete-button-small {
  background: #ff4444;
  color: white;
}

.delete-button-small:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.empty-state-music {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
}

.empty-state-music .icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.empty-state-music .message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.music-link {
  display: inline-block;
  background: #5a5550;
  color: #f8f8f6;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.music-link:hover {
  background: #4a453f;
}

/* Edit Music Request Form */
.edit-music-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.edit-music-form .error-messages {
  background: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.edit-music-form .error-messages h3 {
  color: #c62828;
  font-size: 1rem;
  margin-bottom: 10px;
}

.edit-music-form .error-messages ul {
  margin: 0;
  padding-left: 20px;
}

.edit-music-form .error-messages li {
  color: #d32f2f;
  margin: 5px 0;
}

.edit-music-form .form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.edit-music-form .submit-button.primary {
  flex: 1;
  background: linear-gradient(135deg, #5a5550 0%, #4a453f 100%);
  color: #f8f8f6;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edit-music-form .submit-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(90, 85, 80, 0.4);
}

.edit-music-form .submit-button.secondary {
  flex: 1;
  background: #e0e0e0;
  color: #333;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
}

.edit-music-form .submit-button.secondary:hover {
  background: #d0d0d0;
}

.back-link-moderate {
  display: inline-block;
  color: #5a5550;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.back-link-moderate:hover {
  color: #4a453f;
  text-decoration: underline;
}

/* Mobile optimizations for music moderation */
@media (max-width: 768px) {
  .music-moderation-section {
    margin-top: 30px;
    padding-top: 30px;
  }

  .music-moderation-section .section-header h2 {
    font-size: 1.4rem;
  }

  .music-request-card {
    flex-direction: column;
    gap: 15px;
  }

  .music-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .song-name {
    font-size: 1.1rem;
  }

  .edit-music-form-container {
    padding: 20px;
  }

  .edit-music-form .form-actions {
    flex-direction: column;
  }
}

/* Maintenance Screen Styles */
.maintenance-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f8f6 0%, #e8e4d9 100%);
  padding: 20px;
}

.maintenance-content {
  text-align: center;
  color: #5a5550;
  max-width: 600px;
}

.maintenance-image-wrapper {
  margin-bottom: 30px;
}

.maintenance-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.maintenance-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.maintenance-message {
  font-size: 1.3rem;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 40px;
}

.maintenance-footer {
  margin-top: 30px;
}

.music-link-button {
  display: inline-block;
  background: #5a5550;
  color: #f8f8f6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(90, 85, 80, 0.2);
}

.music-link-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(90, 85, 80, 0.3);
  background: #4a453f;
  color: #f8f8f6;
  text-decoration: none;
}

/* Maintenance Settings Section */
.maintenance-settings-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.maintenance-settings-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.maintenance-settings-section .section-header h2 {
  font-size: 1.8rem;
  color: #333;
  margin: 0;
}

.publish-status {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.status-badge.published {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge.unpublished {
  background: #fff3e0;
  color: #e65100;
}

.maintenance-form .form-group {
  margin-bottom: 20px;
}

.maintenance-form .form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-file-input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-file-input:hover {
  border-color: #5a5550;
}

.current-image {
  margin-bottom: 15px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
}

.preview-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.manually-added-badge {
  background: rgba(90, 85, 80, 0.9);
  color: #f8f8f6;
}

.missing-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f0f0f0;
  color: #999;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* Mobile optimizations for maintenance mode */
@media (max-width: 768px) {
  .maintenance-title {
    font-size: 2rem;
  }

  .maintenance-message {
    font-size: 1.1rem;
  }

  .maintenance-settings-section .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .publish-status {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .status-badge {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .maintenance-title {
    font-size: 1.6rem;
  }

  .maintenance-message {
    font-size: 1rem;
  }

  .maintenance-image {
    max-height: 200px;
  }
}
