/* Updated Glassmorphic Style with Better Readability */


:root {
  --primary: #4a90e2;
  --accent: #ff69b4;
  --glass-bg-light: rgba(255, 255, 255, 0.3);
  --glass-bg-dark: rgba(0, 0, 0, 0.3);
  --glass-blur: blur(12px);
  --text-dark: #222;
  --text-light: #f5f5f5;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #e0eafc, #cfdef3);
  color: var(--text-dark);
  overflow-x: hidden;
}

.app {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 700;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.tab {
  border: none;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: var(--glass-blur);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab.active {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

.tab:hover {
  background-color: var(--accent);
  color: white;
}

.quote-card {
  width: 100%;
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 20px;
  backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.animate {
  animation: bounce 0.4s ease;
}

@keyframes bounce {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.quote-emoji {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.quote-text {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 auto;
  max-width: 90%;
}

.quote-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.action-btn {
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  background-color: var(--primary);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.action-btn:hover {
  background-color: #0073e6;
}

footer {
  font-size: 0.75rem;
  color: #555;
  margin-top: 30px;
  padding-bottom: 20px;
}

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 999;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.toast.show {
  opacity: 1;
  bottom: 100px;
}
@keyframes bounce {
  0% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}
