body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Desktop */
.desktop {
  position: relative;
  height: calc(100vh - 50px);
  padding: 20px;
  /* background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>'); */
  background: linear-gradient(135deg, #1600FF 0%, #FF00E0 50%, #1600FF 100%);
}

/* Logo Branding */
.desktop-branding {
  position: absolute;
  bottom: 80px;
  right: 40px;
  text-align: center;
  z-index: 50;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.desktop-branding:hover {
  opacity: 1;
}

.desktop-branding img {
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

.desktop-branding p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* Desktop Icons */
.desktop-icon {
  position: absolute;
  width: 90px;
  height: 100px;
  text-align: center;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
  border-radius: 8px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.desktop-icon i {
  font-size: 32px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.desktop-icon span {
  font-size: 12px;
  line-height: 1.2;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 10px;
  z-index: 1000;
}

/* Start Button */
.start-button {
  background: linear-gradient(45deg, #0078d4, #106ebe);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
  margin-right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.start-button img {
  height: 16px;
  width: auto;
}

.start-button:hover {
  background: linear-gradient(45deg, #106ebe, #005a9e);
  transform: translateY(-1px);
}

/* Start Menu */
.start-menu {
  position: fixed;
  bottom: 50px;
  left: 10px;
  width: 350px;
  height: 450px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: none;
  color: white;
  z-index: 1001;
}

.start-menu.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.start-menu h5 {
  margin-bottom: 20px;
  color: #0078d4;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-item i {
  font-size: 20px;
  width: 30px;
  margin-right: 10px;
}

/* Taskbar Apps */
.taskbar-apps {
  flex: 1;
  display: flex;
  gap: 5px;
}

.taskbar-app {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.taskbar-app:hover {
  background: rgba(255, 255, 255, 0.2);
}

.taskbar-app.active {
  background: rgba(0, 120, 212, 0.7);
}

/* System Tray */
.system-tray {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  font-size: 14px;
}

.system-icon {
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
  position: relative;
}

.system-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Privacy Popup */
.privacy-popup {
  position: fixed;
  bottom: 70px;
  right: 10px;
  width: 400px;
  background: #f0f0f0;
  border: 2px outset #c0c0c0;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-family: "MS Sans Serif", sans-serif;
  font-size: 11px;
  display: none;
  z-index: 1002;
}

.privacy-popup.show {
  display: block;
  animation: popupSlideUp 0.3s ease-out;
}

@keyframes popupSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.privacy-popup-header {
  background: linear-gradient(to bottom, #0078d4, #005a9e);
  color: white;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.privacy-popup-content {
  padding: 12px;
  background: #f0f0f0;
  color: #000;
  line-height: 1.3;
}

.privacy-popup-buttons {
  padding: 8px 12px;
  background: #f0f0f0;
  border-top: 1px solid #c0c0c0;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.win95-button {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  padding: 2px 16px;
  font-size: 11px;
  font-family: "MS Sans Serif", sans-serif;
  cursor: pointer;
  min-width: 75px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win95-button:hover {
  background: #d4d4d4;
}

.win95-button:active {
  border: 1px inset #c0c0c0;
  background: #a0a0a0;
}

.win95-button.primary {
  background: #0078d4;
  color: white;
  border: 1px outset #0078d4;
}

.win95-button.primary:hover {
  background: #106ebe;
}

.win95-button.primary:active {
  border: 1px inset #0078d4;
  background: #005a9e;
}

/* WiFi Popup */
.wifi-popup {
  position: fixed;
  bottom: 70px;
  right: 10px;
  width: 350px;
  background: #f0f0f0;
  border: 2px outset #c0c0c0;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-family: "MS Sans Serif", sans-serif;
  font-size: 11px;
  display: none;
  z-index: 1003;
}

/* Shutdown Popup */
.shutdown-popup {
  position: fixed;
  bottom: 70px;
  right: 10px;
  width: 280px;
  background: #f0f0f0;
  border: 2px outset #c0c0c0;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-family: "MS Sans Serif", sans-serif;
  font-size: 11px;
  display: none;
  z-index: 1004;
}

.shutdown-popup.show {
  display: block;
  animation: popupSlideUp 0.3s ease-out;
}

.shutdown-popup-header {
  background: linear-gradient(to bottom, #0078d4, #005a9e);
  color: white;
  padding: 6px 8px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #c0c0c0;
  font-size: 12px;
}

.shutdown-popup-content {
  padding: 12px;
  text-align: center;
  line-height: 1.4;
}

.wifi-popup.show {
  display: block;
  animation: popupSlideUp 0.3s ease-out;
}

.wifi-popup-header {
  background: linear-gradient(to bottom, #0078d4, #005a9e);
  color: white;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.wifi-popup-content {
  padding: 12px;
  background: #f0f0f0;
  color: #000;
  line-height: 1.3;
}

.wifi-network {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  margin: 2px 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wifi-network:hover {
  background-color: #e0e0e0;
}

.wifi-network.connected {
  background-color: #d4edda;
}

.wifi-signal {
  width: 20px;
  text-align: center;
  margin-right: 8px;
  font-size: 12px;
}

/* Windows */
.window {
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 400px;
  min-height: 400px;
  display: none;
  z-index: 100;
  transition: all 0.3s ease;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 50px) !important;
  border-radius: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

.window.startup-maximized {
  top: 2.5vh !important;
  left: 2.5vw !important;
  width: 95vw !important;
  height: calc(95vh - 50px) !important;
  border-radius: 8px !important;
  max-width: none !important;
  max-height: none !important;
}

.window.show {
  display: block;
  animation: windowOpen 0.3s ease-out;
}

@keyframes windowOpen {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.window-header {
  background: #f0f0f0;
  padding: 10px 15px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
}

.window-title {
  font-weight: bold;
  color: #333;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.window-control.close {
  background: #ff5f57;
}

.window-control.minimize {
  background: #ffbd2e;
}

.window-control.maximize {
  background: #28ca42;
}

.window-content {
  padding: 20px;
  height: calc(100% - 60px);
  overflow-y: auto;
}

/* Browser Navigation */
.browser-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #dee2e6;
}

.browser-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #0078d4;
}

.browser-page {
  display: none;
}

.browser-page.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Boot Screen */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.boot-screen.fade-out {
  animation: fadeOutBoot 1s ease-out forwards;
}

@keyframes fadeOutBoot {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.boot-logo {
  margin-bottom: 40px;
  animation: bootLogoGlow 2s ease-in-out infinite alternate;
}

@keyframes bootLogoGlow {
  from {
    filter: drop-shadow(0 0 20px rgba(0, 120, 212, 0.5));
  }

  to {
    filter: drop-shadow(0 0 30px rgba(0, 120, 212, 0.8));
  }
}

.boot-text {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInText 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

.boot-progress {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.boot-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0078d4, #00bcf2);
  border-radius: 2px;
  width: 0%;
  animation: bootProgress 3s ease-out forwards;
}

@keyframes bootProgress {
  0% {
    width: 0%;
  }

  20% {
    width: 15%;
  }

  40% {
    width: 35%;
  }

  60% {
    width: 55%;
  }

  80% {
    width: 80%;
  }

  100% {
    width: 100%;
  }
}

.boot-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeInText 0.6s ease-out 1s forwards;
}

/* Hide main content during boot */
body.booting .desktop,
body.booting .taskbar {
  visibility: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .start-menu {
    width: calc(100vw - 20px);
    left: 10px;
    /* height: 300px; */
    max-height: calc(100vh - 140px);
    bottom: 50px;
    /* transform: translateY(50%); */
  }

  .start-menu.show {
    animation: slideUpMobile 0.3s ease-out;
  }

  @keyframes slideUpMobile {
    from {
      transform: translateY(calc(50% + 20px));
      opacity: 0;
    }

    to {
      transform: translateY(50%);
      opacity: 1;
    }
  }

  .desktop-icon {
    width: 80px;
    height: 90px;
    padding: 8px 4px;
  }

  .desktop-icon i {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .desktop-icon span {
    font-size: 10px;
    line-height: 1.1;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  /* Mobile Window Optimization */
  .window {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 90px !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 100px) !important;
  }

  .window.maximized {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 80px !important;
    width: 100vw !important;
    height: calc(100vh - 80px) !important;
  }

  .window-content {
    height: calc(100% - 50px);
    padding: 15px;
  }

  .window-header {
    padding: 8px 12px;
  }

  .window-title {
    font-size: 14px;
  }

  /* Make taskbar more mobile friendly */
  .taskbar {
    height: 60px;
    padding: 0 5px;
  }

  .start-button {
    padding: 6px 12px;
    font-size: 14px;
  }

  .start-button img {
    height: 14px;
  }

  .taskbar-app {
    padding: 6px 10px;
  }

  .system-tray {
    gap: 10px;
    font-size: 12px;
  }

  .desktop {
    height: calc(100vh - 60px);
    padding: 10px;
  }

  /* Mobile branding positioning */
  .desktop-branding {
    bottom: 125px !important;
    right: 15px !important;
    transform: scale(0.8);
  }

  .desktop-branding img {
    height: 80px !important;
  }

  .desktop-branding p {
    font-size: 11px !important;
  }

  /* Mobile Privacy Popup */
  .privacy-popup {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .privacy-popup-content {
    font-size: 12px;
  }

  .privacy-popup-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .win95-button {
    width: 100%;
    justify-content: center;
  }

  /* Mobile WiFi Popup */
  .wifi-popup {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .wifi-popup-content {
    font-size: 12px;
  }

  /* Mobile Shutdown Popup */
  .shutdown-popup {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .shutdown-popup-content {
    font-size: 12px;
  }

  /* Prevent window dragging on mobile */
  .window-header {
    cursor: default;
  }

  /* Better spacing for mobile window content */
  .calculator .row {
    margin: 0;
  }

  .calculator .col-3,
  .calculator .col-6 {
    padding: 2px;
  }

  .calculator button {
    padding: 8px 4px;
    font-size: 14px;
  }

  #calculator-display {
    font-size: 16px;
    padding: 8px;
  }

  /* Mobile browser window adjustments */
  #browser-window .window-content {
    padding: 10px;
  }

  #browser-window .border.rounded {
    height: auto !important;
    min-height: 200px;
  }

  /* Mobile settings window */
  #settings-window .col-md-4,
  #settings-window .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #settings-window .col-md-4 {
    margin-bottom: 15px;
  }

  /* Mobile documents window */
  .list-group-item {
    padding: 12px;
    font-size: 14px;
  }

  /* Mobile computer window */
  #computer-window .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  .mask {
    position: absolute;
    background-size: cover;
    background-position: center center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* opacity: 0.8; */
  }
}

/* ===== SNAKE GAME STYLES ===== */
.game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #34495e;
  border-radius: 8px;
  padding: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#gameCanvas {
  border: 2px solid #2c3e50;
  border-radius: 4px;
  background: #2c3e50;
  display: block;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#gameCanvas:hover {
  border-color: #34495e;
}

#gameCanvas:active {
  border-color: #3498db;
}

.game-info {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #dee2e6;
}

.game-info strong {
  color: #2c3e50;
}

#score {
  color: #27ae60;
  font-weight: bold;
}

#highscore {
  color: #e74c3c;
  font-weight: bold;
}

/* Game window specific styles */
#game-window {
  min-width: 420px;
}

#game-window .window-content {
  padding: 15px;
}

/* Mobile specific game styles */
@media (max-width: 768px) {
  #game-window {
    width: 95% !important;
    height: auto !important;
    min-width: unset;
    left: 2.5% !important;
    top: 5% !important;
    max-height: 90vh;
  }
  
  #gameCanvas {
    width: 100%;
    height: auto;
    max-width: 350px;
    max-height: 350px;
  }
  
  .game-container {
    padding: 5px;
  }
  
  .game-info .row .col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    font-size: 14px;
  }
  
  .game-info strong {
    font-size: 13px;
  }
  
  .game-controls small {
    font-size: 11px;
    line-height: 1.3;
  }
  
  #game-window .window-content {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  #gameCanvas {
    max-width: 280px;
    max-height: 280px;
  }
  
  .game-info .col-4 {
    font-size: 12px;
  }
  
  .game-controls small {
    font-size: 10px;
  }
}

/* Animation for score changes */
@keyframes scoreFlash {
  0% { color: #27ae60; }
  50% { color: #f39c12; transform: scale(1.1); }
  100% { color: #27ae60; transform: scale(1); }
}

.score-flash {
  animation: scoreFlash 0.3s ease-in-out;
}

/* Animation for highscore achievement */
@keyframes highscoreGlow {
  0% { color: #e74c3c; }
  50% { color: #f1c40f; text-shadow: 0 0 10px #f1c40f; }
  100% { color: #e74c3c; }
}

.highscore-glow {
  animation: highscoreGlow 1s ease-in-out 3;
}

/* ===== EMAIL WINDOW STYLES ===== */
.email-toolbar {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
}

.email-form {
  background: #ffffff;
  border-radius: 6px;
  padding: 15px;
  border: 1px solid #dee2e6;
}

.email-field-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-field-label {
  min-width: 60px;
  font-weight: 500;
  color: #495057;
  margin: 0;
  text-align: right;
}

.email-field-input {
  flex: 1;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.email-field-input:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: 0;
}

.email-message-body {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 12px;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.email-message-body:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: 0;
}

.email-footer {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px 15px;
}

/* Email window specific styles */
#email-window {
  min-width: 650px;
}

#email-window .window-content {
  padding: 15px;
  height: calc(100% - 35px);
  overflow-y: auto;
  max-height: 540px; /* Ensure content fits within 600px window height */
}

/* Email form validation styles */
.email-field-input.is-invalid {
  border-color: #dc3545;
}

.email-field-input.is-valid {
  border-color: #28a745;
}

.email-message-body.is-invalid {
  border-color: #dc3545;
}

.email-message-body.is-valid {
  border-color: #28a745;
}

/* Email sending states */
.email-sending {
  opacity: 0.7;
  pointer-events: none;
}

.email-sent-success {
  background: #d4edda !important;
  border-color: #c3e6cb !important;
  color: #155724 !important;
}

/* Mobile email styles */
@media (max-width: 768px) {
  #email-window {
    width: 95% !important;
    height: 90% !important;
    min-width: unset;
    left: 2.5% !important;
    top: 5% !important;
  }
  
  .email-field-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .email-field-label {
    min-width: unset;
    text-align: left;
    font-size: 14px;
  }
  
  .email-field-input {
    width: 100%;
  }
  
  .email-message-body {
    min-height: 120px;
  }
  
  .email-toolbar .d-flex {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .email-toolbar .btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  #email-window .window-content {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .email-footer .row {
    flex-direction: column;
    text-align: center !important;
  }
  
  .email-footer .col-md-4 {
    margin-top: 10px;
  }
}

/* ===== MUSIC PLAYER STYLES ===== */
.music-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.current-track {
  border: 2px solid #28a745 !important;
  transition: all 0.3s ease;
}

.track-artwork {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
  transition: transform 0.3s ease;
}

.current-track:hover .track-artwork {
  transform: scale(1.05);
}

.music-controls .btn {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all 0.2s ease;
}

.music-controls .btn:hover {
  transform: scale(1.1);
}

.track-item {
  cursor: pointer;
  transition: all 0.2s ease;
  border: none !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.track-item:hover {
  background-color: #f8f9fa !important;
  transform: translateX(5px);
}

.track-item.active {
  background-color: #e7f3ff !important;
  border-left: 4px solid #007bff !important;
}

.track-number {
  width: 30px;
  text-align: center;
  font-weight: bold;
  color: #6c757d;
}

.track-item.active .track-number {
  color: #007bff;
}

.track-title {
  font-weight: 600;
  color: #212529;
}

.track-item.active .track-title {
  color: #007bff;
}

.playlist {
  max-height: 280px;
  overflow-y: auto;
}

.playlist::-webkit-scrollbar {
  width: 8px;
}

.playlist::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.volume-control {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6;
}

.form-range::-webkit-slider-thumb {
  background: #007bff;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
  background: #007bff;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== SPOTIFY WEB PLAYER STYLES ===== */

.spotify-header {
  background: linear-gradient(135deg, #1db954 0%, #1ed760 100%) !important;
  border: none;
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.spotify-placeholder {
  min-height: 300px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.playlist-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.playlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #1db954;
}

.playlist-card.border-success {
  border-color: #1db954 !important;
  background: linear-gradient(135deg, #1db954 0%, #1ed760 100%) !important;
  color: white;
}

.playlist-card.border-success .text-muted {
  color: rgba(255,255,255,0.8) !important;
}

.playlist-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.05);
  border-radius: 12px;
}

.spotify-container {
  min-height: 300px;
  position: relative;
}

.spotify-embed-wrapper {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.embed-container {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.embed-container iframe {
  display: block;
  border: none;
  border-radius: 12px;
}

.embed-header {
  background: linear-gradient(135deg, #1db954 0%, #1ed760 100%) !important;
  border: none;
}

.embed-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6;
}

.quick-access {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6;
}

.privacy-notice {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
  border: 1px solid #ffc107;
}

@media (max-width: 768px) {
  #music-window {
    width: 95% !important;
    height: 90% !important;
    top: 5% !important;
    left: 2.5% !important;
  }
  
  .music-controls .btn {
    width: 35px;
    height: 35px;
    margin: 0 3px;
  }
  
  .current-track .col-md-2,
  .current-track .col-md-6,
  .current-track .col-md-4 {
    margin-bottom: 15px;
  }
  
  .track-artwork {
    width: 60px !important;
    height: 60px !important;
  }
  
  .playlist-card {
    margin-bottom: 1rem;
  }
  
  .playlist-icon {
    width: 40px;
    height: 40px;
  }
  
  .spotify-embed-wrapper iframe {
    height: 280px;
  }
  
  .embed-footer .btn-group {
    width: 100%;
  }
  
  .embed-footer .btn-group .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Hide reCAPTCHA badge (we display text notice in the form instead) */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}