:root {
  --primary-blue: #6B93D6;
  --soft-green: #7DCEA0;
  --light-purple: #BB8FCE;
  --warm-gray: #F8F9FA;
  --text-dark: #2C3E50;
  --text-light: #5D6D7E;
  --background: #FFFFFF;
  --card-bg: #ffffff;
  --shadow: rgba(108, 147, 214, 0.1);
  --accent: #52C4B0;
  --error: #FF4E4E;
  --success: #27AE60;
}

[data-theme="dark"] {
  --background: #1A1A2E;
  --card-bg: #16213E;
  --warm-gray: #0F3460;
  --text-dark: #EAEAEA;
  --text-light: #B8B8B8;
  --shadow: rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
  background: var(--primary-blue);
  padding: 0.7rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.nav-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Logo styles */
.logo-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text {
  font-size: 1.2rem;
}

a {
  text-decoration: none;
}

/* Professional Theme Toggle */
.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.theme-toggle-track {
  position: relative;
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle-track:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.theme-icon {
  font-size: 14px;
  z-index: 1;
  transition: all 0.3s ease;
}

.theme-icon.sun {
  opacity: 0.5;
}

.theme-icon.moon {
  opacity: 1;
}

.theme-toggle-thumb {
  position: absolute;
  right: 4px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ffd93d, #ff9500);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.4);
}

/* Dark mode styles */
[data-theme="dark"] {
  --background: #1A1A2E;
  --card-bg: #16213E;
  --warm-gray: #0F3460;
  --text-dark: #EAEAEA;
  --text-light: #B8B8B8;
  --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle-track {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-icon.sun {
  opacity: 1;
}

[data-theme="dark"] .theme-icon.moon {
  opacity: 0.5;
}

[data-theme="dark"] .theme-toggle-thumb {
  right: calc(100% - 28px);
  background: linear-gradient(135deg, #6B93D6, #BB8FCE);
  box-shadow: 0 2px 8px rgba(107, 147, 214, 0.4);
}

[data-theme="dark"] body {
  background: var(--background);
  color: var(--text-dark);
}

[data-theme="dark"] .mood-card {
  background: var(--card-bg);
}

[data-theme="dark"] .top-header {
  color: var(--text-dark);
}

/* Account Dropdown */
.account-dropdown-container {
  position: relative;
}

.account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 180px;
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 1000;
}

.account-menu.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
}

.menu-item:hover {
  background: var(--warm-gray);
  color: var(--primary-blue);
}

.menu-divider {
  height: 1px;
  background: rgba(107, 147, 214, 0.1);
  margin: 0.5rem 0;
}

.menu-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* Auth Modal */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.auth-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.auth-modal-content {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 40px var(--shadow);
}

.close-auth {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.close-auth:hover {
  color: var(--error);
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(107, 147, 214, 0.2);
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: all 0.3s ease;
}

.auth-tab.active {
  color: var(--primary-blue);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-form.active {
  display: flex;
}

.auth-form h3 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-group input {
  padding: 0.8rem;
  border: 2px solid rgba(107, 147, 214, 0.2);
  border-radius: 10px;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.auth-btn {
  background: linear-gradient(135deg, var(--primary-blue), #BB8FCE);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 147, 214, 0.3);
}

.auth-error {
  color: #E74C3C;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2rem;
}

/* Google Sign-In Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem;
  background: white;
  border: 2px solid #E5E5E5;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: #444;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.google-btn:hover {
  background: #F8F8F8;
  border-color: #CCC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn svg {
  flex-shrink: 0;
}

[data-theme="dark"] .google-btn {
  background: var(--card-bg);
  border-color: var(--warm-gray);
  color: var(--text-dark);
}

[data-theme="dark"] .google-btn:hover {
  background: var(--warm-gray);
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(107, 147, 214, 0.2);
}

.auth-divider span {
  padding: 0 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 20px var(--shadow);
  border-top: 1px solid rgba(107, 147, 214, 0.1);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-light);
  text-decoration: none;
  min-width: 60px;
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-purple));
  color: white;
  transform: translateY(-2px);
}

.nav-item:hover:not(.active) {
  background: var(--warm-gray);
  color: var(--primary-blue);
}

.nav-icon {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, 0.25));
}

.nav-icon svg {
  stroke-width: 2.2;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 500;
}



/* Global */
body {
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif;
  background: #F2F5FB;
}

.top-header {
  text-align: center;
  padding: 1.5rem 1rem;
}

.page-title {
  font-size: 1.8rem;
}

/* Center Container */
.container {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

/* Main Card */
.mood-card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Inputs */
.input-group {
  margin-bottom: 1.4rem;
}

.input-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--text-dark);
}

/* Emojis */
.mood-quick-log {
  display: flex;
  justify-content: space-between;
}

.mood-emoji {
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 12px;
  transition: 0.25s;
}

.mood-emoji:hover {
  transform: scale(1.2);
}

.mood-emoji.selected {
  background: rgba(107, 147, 214, 0.25);
  box-shadow: 0 0 0 2px var(--primary-blue);
}

/* Textarea */
.text-input {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border-radius: 14px;
  border: 2px solid rgba(107, 147, 214, 0.25);
  outline: none;
  resize: vertical;
  font-size: 1rem;
  transition: .3s;
}

.text-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(107, 147, 214, 0.2);
}

/* Mic Button */
.voice-btn {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent), var(--soft-green));
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.voice-btn.recording {
  background: linear-gradient(135deg, var(--error), #ff7a7a);
  animation: pulse 1.3s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}

.record-tip {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Save Button */
.save-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: none;
  color: white;
  background: var(--primary-blue);
  border-radius: 14px;
  cursor: pointer;
  transition: .3s;
}

.save-btn:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 500px) {
  .mood-card {
    padding: 1.3rem;
  }

  .mood-emoji {
    font-size: 1.9rem;
  }
}

/*footer*/
/* Reset */

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Urbanist', sans-serif;
}

.site-footer {
  background-color: #1E1E1E;
  color: #F3F4F6;
  padding: 64px 24px 32px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand {
  flex: 1 1 200px;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  border-radius: 50px;
}

.brand-line {
  font-weight: 400;
  font-size: 14px;
  color: #D1D5DB;
  margin-top: 12px;
  margin-left: 30px;
}

.footer-nav,
.footer-contact,
.footer-social {
  flex: 1 1 180px;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #F3F4F6;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: #E9B64B;
  text-decoration: underline;
}

.footer-contact p a {
  color: #A1A1AA;
  text-decoration: none;
}

.footer-contact p {
  font-size: 14px;
  color: #A1A1AA;
  margin-bottom: 8px;
}

.footer-contact a:hover {
  color: #D13F2D;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px #E9B64B);

}

.footer-bottom {
  max-width: 1240px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  color: #9CA3AF;
  text-align: center;
  font-size: 12px;
}

.footer-bottom a {
  color: #9CA3AF;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .site-footer {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-social {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Global Responsive Reset */
body {
  overflow-x: hidden;
  max-width: 100%;
}

