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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #a855f7, #ec4899, #ef4444);
}

.main-container {
  min-height: 100vh;
  position: relative;
  width: 100%;
}

/* Floating Elements */
.floating-elements {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.floating-1 {
  top: 10%;
  left: 5%;
  width: 4rem;
  height: 4rem;
  background-color: #fde047;
  animation: float 6s ease-in-out infinite;
}

.floating-2 {
  top: 20%;
  right: 10%;
  width: 3rem;
  height: 3rem;
  background-color: #93c5fd;
  animation: float 8s ease-in-out infinite reverse;
}

.floating-3 {
  bottom: 30%;
  left: 15%;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #86efac;
  animation: float 7s ease-in-out infinite;
  animation-delay: 2s;
}

.floating-4 {
  bottom: 20%;
  right: 20%;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #f9a8d4;
  animation: float 9s ease-in-out infinite;
  animation-delay: 1s;
}

.floating-5 {
  top: 60%;
  left: 8%;
  width: 2rem;
  height: 2rem;
  background-color: #a78bfa;
  animation: float 5s ease-in-out infinite;
  animation-delay: 3s;
}

.floating-6 {
  top: 40%;
  right: 5%;
  width: 4.5rem;
  height: 4.5rem;
  background-color: #fbbf24;
  animation: float 10s ease-in-out infinite reverse;
  animation-delay: 4s;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.sparkle-icon {
  width: 1.5rem;
  height: 1.5rem;
  animation: pulse 2s infinite;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-item i {
  width: 1rem;
  height: 1rem;
}

.logout-btn {
  background: rgba(239, 68, 68, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 1);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Dashboard Card */
.dashboard-card {
  max-width: 1200px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

.dashboard-header {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  color: white;
  padding: 2rem;
  text-align: center;
}

.welcome-section h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.welcome-section p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.diary-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fbbf24;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.diary-streak i {
  width: 1.25rem;
  height: 1.25rem;
}

/* Dashboard Content Grid */
.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.content-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}

.card-header i {
  width: 1.25rem;
  height: 1.25rem;
  color: #7c3aed;
}

.card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  flex: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.empty-icon {
  font-size: 4rem;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.empty-text {
  font-size: 1rem;
  opacity: 0.8;
}

/* Toast Container */
.toast {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 20rem;
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@media (max-width: 576px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .dashboard-card {
    margin: 1rem;
  }
  .dashboard-content {
    padding: 1rem;
  }
}

