/* 🌍 Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* 🌟 Header */
.main-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
}

/* 🌐 Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #4caf50;
}

/* 🔐 Login/Register Box - Glassmorphism */
.auth-container {
    width: 300px;
    margin: 80px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #fff;
}

.auth-container h2 {
    margin-bottom: 20px;
    color: #fff;
}

/* Inputs */
.auth-container input[type="text"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25); /* glass effect */
    color: #000; /* black text for readability */
    outline: none;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s;
}

.auth-container input[type="text"]:focus,
.auth-container input[type="password"]:focus {
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.8); /* green glow on focus */
}

.auth-container input::placeholder {
    color: rgba(50, 50, 50, 0.7);
}

/* Buttons */
.auth-container button {
    width: 100%;
    padding: 12px;
    background: rgba(76, 175, 80, 0.8);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.auth-container button:hover {
    background: rgba(56, 142, 60, 0.9);
}

/* Messages */
.success {
    color: #00e676;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.error {
    color: #ff5252;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

/* 📌 Logo inside login */
.auth-container .logo-img {
    width: 50px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.auth-container .logo-img:hover {
    transform: scale(1.05);
}

/* 📱 Medium screens (tablet) */
@media (max-width: 992px) {
    .auth-container .logo-img {
        width: 150px;
    }
}

/* 📱 Small screens (mobile) */
@media (max-width: 576px) {
    .auth-container .logo-img {
        width: 120px;
    }
    .auth-container {
        width: 90%;
        padding: 20px;
    }
}

/* 💬 Chatbox - Glassmorphism */
.chatbox {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 350px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: Arial, sans-serif;
  display: none; /* Hidden by default */
  flex-direction: column;
  z-index: 2000;
}

.chatbox h2 {
  text-align: center;
  margin: 0;
  padding: 10px;
  background: rgba(46,125,50,0.9);
  border-radius: 15px 15px 0 0;
}

.messages {
  height: 250px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  margin: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
}

/* Input fields inside chat */
#userInput {
  width: 70%;
  padding: 8px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.2);
  color: #000;
}

#userInput::placeholder {
  color: rgba(50,50,50,0.7);
}

/* Buttons (general + chat) */
button {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(76, 175, 80, 0.8);
  color: white;
  transition: 0.3s;
}

button:hover {
  background: rgba(56, 142, 60, 0.9);
}

/* Floating Chat Toggle Button */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(46, 125, 50, 0.9);
  color: white;
  font-size: 1.5rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: 0.3s;
  z-index: 3000;
}

.chat-toggle:hover {
  background: rgba(27, 94, 32, 0.95);
  transform: scale(1.1);
}
/* 🎵 Music Section */
#music {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 3rem 5%;
  margin: 3rem auto;
  max-width: 800px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  text-align: center;
}

#music h2 {
  font-family: 'Lora', serif;
  color: #2e7d32;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

#music h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: 0.3s;
}

#music h3:hover {
  color: #a5d6a7;
  text-decoration: underline;
}

#music audio {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Playlist Styling */
#playlist {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  text-align: left;
}

#playlist li {
  background: rgba(46,125,50,0.4);
  color: #fff;
  padding: 10px 15px;
  margin: 6px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

#playlist li:hover {
  background: rgba(46,125,50,0.7);
}

#playlist .active-track {
  background: #2e7d32;
  font-weight: bold;
  border: 2px solid #c8e6c9;
}
