/* ==========================
   GLOBAL RESET & BASE THEME
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  transition: background 0.3s ease, color 0.3s ease;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
}

/* Color Variables */
:root {
  --bg: #121212;
  --text: #f0f0f0;
  --accent: #00bcd4;
  --card: #1e1e1e;
  --hover: #0097a7;
}
body.light-mode {
  --bg: #f9f9f9;
  --text: #222;
  --accent: #00bcd4;
  --card: #e3f4fa;
  --hover: #007a89;
}

/* Hide scrollbar */
::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

/* ==========================
   LAYOUT
========================== */
.layout {
  display: flex;
  min-height: 100vh;
  animation: fadeIn 0.8s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================
   SIDEBAR
========================== */
.sidebar {
  width: 220px;
  background-color: var(--card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100vh;
  z-index: 101;
  position: relative;
  animation: slideIn 0.6s ease;
}
@keyframes slideIn {
  from { transform: translateX(-80px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.sidebar h2 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  animation: glowText 2s infinite alternate;
}
@keyframes glowText {
  from { text-shadow: 0 0 6px var(--accent); }
  to { text-shadow: 0 0 14px #00e5ff; }
}

.sidebar a {
  color: var(--text);
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  font-weight: 500;
  margin-bottom: 6px;
  transition: transform 0.25s ease, background 0.25s ease;
  display: block;
}
.sidebar a:hover, .sidebar a.active {
  background-color: var(--accent);
  color: #181818;
  font-weight: bold;
  transform: translateX(6px);
}

/* ==========================
   MAIN CONTENT
========================== */
.main-content {
  flex: 1;
  padding: 30px;
  animation: fadeUp 0.6s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 10px;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }

/* ==========================
   BUTTONS
========================== */
.button {
  display: inline-block;
  background-color: var(--accent);
  color: #121212;
  padding: 10px 20px;
  margin: 10px 10px 10px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}
.button:hover {
  background-color: var(--hover);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* Google Login Button */
.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #4285F4;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}
.google-btn:hover {
  background-color: #357ae8;
  transform: translateY(-2px) scale(1.03);
}

/* ==========================
   SOCIAL BUTTONS
========================== */
.social-buttons {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.social-buttons a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.social-buttons a:hover {
  transform: scale(1.08) rotate(-2deg);
  opacity: 0.95;
}
.whatsapp { background-color: #25D366; }
.youtube { background-color: #FF0000; }
.instagram { background-color: #E1306C; }

/* ==========================
   FLOATING MUSIC BUTTON
========================== */
.audio-button, .music-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 1500;
  font-size: 28px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 8px var(--accent); }
  50% { transform: scale(1.08); box-shadow: 0 0 18px #00e5ff; }
  100% { transform: scale(1); box-shadow: 0 0 8px var(--accent); }
}
.audio-button:hover, .music-btn:hover {
  background-color: var(--hover);
}

/* ==========================
   NOTIFICATION POPUP
========================== */
.popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--card);
  color: var(--text);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  z-index: 999;
  animation: slideUp 0.5s ease, fadeout 8s forwards;
}
@keyframes slideUp {
  from { transform: translateY(25px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeout {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==========================
   DAILY QUOTE CARD
========================== */
.daily-quote {
  margin-top: 30px;
  padding: 15px 20px;
  background: rgba(0, 188, 212, 0.12);
  border-left: 4px solid var(--accent);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 6px;
  animation: fadeIn 0.8s ease;
}

/* ==========================
   THEME TOGGLE
========================== */
.theme-toggle {
  position: fixed;
  top: 28px;
  right: 28px;
  background: var(--card);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: transform 0.25s ease, background 0.25s ease;
}
.theme-toggle:hover {
  background: var(--hover);
  transform: rotate(20deg);
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: 60px;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
  }
  .sidebar h2 { display: none; }
  .sidebar a { margin:0 8px; padding:8px 12px; font-size:14px; }
  .main-content { margin-top: 70px; padding: 15px; }
  .social-buttons { flex-direction: column; gap: 16px; }
  .audio-button, .music-btn { bottom: 20px; right: 20px; }
  .theme-toggle { top: 14px; right: 18px; }
}