@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
/* Base styles and variables */
:root {
  /* Light theme variables */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83% 53.3%;
  
  /* Custom colors for moods */
  --happy: 47 95% 67%;
  --sad: 210 100% 76%;
  --motivated: 126 74% 72%;
  --stressed: 0 100% 89%;
  --relaxed: 262 83% 82%;
}

html.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
    
    /* Custom colors for moods in dark mode */
    --happy: 47 85% 57%;
    --sad: 210 90% 66%;
    --motivated: 126 64% 62%;
    --stressed: 0 90% 79%;
    --relaxed: 262 73% 72%;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    transition: background-color 0.3s ease;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .logo img {
    width: 100px;
    height: 100px;
    margin-right: 0.5rem;
  }

  .no-transitions {
    transition: none !important;
  }
  
  .home-gradient {
    background: linear-gradient(to bottom, hsl(210, 100%, 98%), hsl(220, 100%, 98%), hsl(0, 0%, 100%));
  }

  .dark .home-gradient {
    background: linear-gradient(to bottom, hsl(210, 30%, 10%), hsl(220, 30%, 8%), hsl(220, 30%, 6%));
  }

  .page-gradient {
    background: linear-gradient(to bottom, hsl(210, 100%, 98%), hsl(220, 80%, 98%), hsl(0, 0%, 100%));
    min-height: calc(100vh - 160px);
  }

  .dark .page-gradient {
    background: linear-gradient(to bottom, hsl(210, 30%, 10%), hsl(220, 30%, 8%), hsl(220, 30%, 6%));
  }

  /* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  /* Logo */
  .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary));
    color: hsl(var(--foreground));
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
  }
  
  
  /* Navigation */
  .desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
  }
  
  .glass-nav {
    background-color: hsla(var(--background), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(var(--border), 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  
  .nav-link {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .nav-link:hover {
    color: hsl(var(--foreground));
  }
  
  .nav-link.active {
    color: hsl(var(--primary));
    font-weight: 500;
  }
  
  .mobile-logo {
    display: none;
  }
  
  /* Bottom Navigation for Mobile */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 50;
    background-color: hsla(var(--background), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid hsla(var(--border), 0.3);
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    padding: 6px 0;
    transition: color 0.2s ease;
  }
  
  .bottom-nav-item:hover {
    color: hsl(var(--foreground));
  }
  
  .bottom-nav-item.active {
    color: hsl(var(--primary));
  }
  
  .bottom-nav-item svg {
    margin-bottom: 4px;
  }
  
  .bottom-nav {
    transition: transform 0.3s ease-in-out;
  }
  
  .bottom-nav.hide {
    transform: translateY(100%);
  }
  
  .bottom-nav.show {
    transform: translateY(0);
  }

  /* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
  }
  
  .theme-toggle:hover {
    background-color: hsla(var(--muted), 0.8);
  }
  
  .theme-toggle-small {
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }
  
  .btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
  }
  
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: hsl(var(--foreground));
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .btn-secondary:hover {
    background-color: hsl(var(--secondary));
  }
  
  .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .btn-danger:hover {
    background-color: hsl(var(--destructive) / 0.9);
  }
  
  .btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
  }
  
  .btn-icon:hover {
    background-color: hsl(var(--secondary));
  }

  /* Glass Card Style */
  .glass {
    background-color: hsla(var(--card) / 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(var(--border) / 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  }

  
  /* Hero Section */
.hero {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto 2rem;
  }
  
  .highlight {
    color: hsl(var(--primary));
  }

  /* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
  }
  
  .features .glass {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .features h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
  }
  
  .features p {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
  }
  
  /* Floating Action Button */
  .fab {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 40;
    transform: translateY(0);
    opacity: 1;
  }
  
  .fab:hover {
    transform: scale(1.05);
    background-color: hsl(var(--primary) / 0.9);
  }
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  .hide-scrollbar::-webkit-scrollbar {
    display: none;
  }
  
  /* Hide scrollbar for IE, Edge and Firefox */
  .hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  
  /* Entry Form */
  .entry-form {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .entry-form.hidden {
    transform: translateY(100%);
  }
  
  .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
  }
  
  /* Journal Page */
  .page-header {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .search-container,
  .mood-filter-container {
    position: relative;
  }
  
  .filter-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
  }
  
  #search-input,
  #mood-filter {
    padding: 0.5rem 0.5rem 0.5rem 2.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    min-width: 200px;
  }
  
  /* Bento Grid */
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .bento-card {
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    min-height: 150px;
    position: relative;
    overflow: hidden;
  }
  
  /* Journal Cards */
  .journal-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .card-happy {
    background: linear-gradient(to bottom right, hsl(var(--happy)), hsl(var(--happy) / 0.7));
  }
  
  .card-sad {
    background: linear-gradient(to bottom right, hsl(var(--sad)), hsl(var(--sad) / 0.7));
  }
  
  .card-motivated {
    background: linear-gradient(to bottom right, hsl(var(--motivated)), hsl(var(--motivated) / 0.7));
  }
  
  .card-stressed {
    background: linear-gradient(to bottom right, hsl(var(--stressed)), hsl(var(--stressed) / 0.7));
  }
  
  .card-relaxed {
    background: linear-gradient(to bottom right, hsl(var(--relaxed)), hsl(var(--relaxed) / 0.7));
  }
  
  .journal-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--card-foreground));
  }
  
  .journal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: hsl(var(--card-foreground) / 0.8);
    font-size: 0.85rem;
  }
  
  .journal-excerpt {
    color: hsl(var(--card-foreground) / 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
  }
  
  /* Empty state */
  .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
  }
  
  .empty-title {
    font-size: 1.25rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
  }
  
  .empty-description {
    color: hsl(var(--muted-foreground));
  }
  
  /* Entry Detail Modal */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .modal.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-content {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .modal-content.small {
    max-width: 400px;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  
  .modal-header h2 {
    margin-bottom: 0;
    margin-right: 2rem;
  }
  
  .modal-actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .entry-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
  }
  
  .entry-mood {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .mood-happy {
    background-color: hsl(var(--happy) / 0.2);
    color: hsl(var(--happy) / 1.2);
  }
  
  .mood-sad {
    background-color: hsl(var(--sad) / 0.2);
    color: hsl(var(--sad) / 1.2);
  }
  
  .mood-motivated {
    background-color: hsl(var(--motivated) / 0.2);
    color: hsl(var(--motivated) / 1.2);
  }
  
  .mood-stressed {
    background-color: hsl(var(--stressed) / 0.2);
    color: hsl(var(--stressed) / 1.2);
  }
  
  .mood-relaxed {
    background-color: hsl(var(--relaxed) / 0.2);
    color: hsl(var(--relaxed) / 1.2);
  }
  
  .entry-content {
    white-space: pre-wrap;
  }
  
  .modal-actions.centered {
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  /* Image preview styling */
  .image-preview {
    width: 100%;
    height: 150px;
    margin-top: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    display: none;
    background-size: cover;
    background-position: center;
    border: 1px dashed hsl(var(--border));
  }
  
  .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Checkbox styling */
  .checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    user-select: none;
  }
  
  .checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.25rem;
  }
  
  .checkbox-container:hover input ~ .checkmark {
    background-color: hsl(var(--secondary));
  }
  
  .checkbox-container input:checked ~ .checkmark {
    background-color: hsl(var(--primary));
  }
  
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  .checkbox-container input:checked ~ .checkmark:after {
    display: block;
  }
  
  .checkbox-container .checkmark:after {
    left: 0.4rem;
    top: 0.15rem;
    width: 0.3rem;
    height: 0.6rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  .fab {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }
  
  .fab.hide {
    transform: translateY(100px);
    opacity: 0;
  }
  
  .fab.show {
    transform: translateY(0);
    opacity: 1;
  }

  /* Statistics Page */
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.streak-card {
  background: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--primary) / 0.8));
  color: hsl(var(--primary-foreground));
}

.streak-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 1.5rem 0;
}

.streak-count span:first-child {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.streak-label {
  font-size: 1.25rem;
  margin-left: 0.5rem;
}

.streak-message {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

.stats-count {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.stats-count span {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.stats-message {
  text-align: center;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
}

.no-data-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
}

  /* About Page */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
  }
  
  .about-intro p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .about-card {
    height: 100%;
  }
  
  .about-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
  }
  
  .benefit-list,
  .steps-list {
    list-style: none;
  }
  
  .benefit-list li,
  .steps-list li {
    display: flex;
    margin-bottom: 1rem;
  }
  
  .bullet,
  .step {
    color: hsl(var(--primary));
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }
  
  .step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background-color: hsl(var(--primary) / 0.1);
    border-radius: 50%;
  }
  
  .privacy-notice {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
  }
  
  .privacy-notice h2 {
    margin-bottom: 1rem;
  }

  
/* Media Queries */
@media (max-width: 640px) {
    .mobile-logo-container {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 64px;
      padding: 0 1rem;
      display: flex;
      align-items: center;
      z-index: 50;
      background-color: hsla(var(--background), 0.7);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid hsla(var(--border), 0.3);
    }
    
    body {
      padding-top: 64px;
      padding-bottom: 100px;
    }
    
    /* Style the mobile logo */
    .mobile-logo {
      font-size: 1.2rem;
      font-weight: 600;
      color: hsl(var(--foreground));
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
  
    .desktop-nav {
      display: none;
    }
  
    .hero h1 {
      font-size: 2.5rem;
    }
  
    .hero p {
      font-size: 1rem;
    }
  
    .bento-grid {
      grid-template-columns: 1fr;
    }
  
    .page-header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .filters {
      width: 100%;
    }
  
    .search-container,
    .mood-filter-container {
      width: 100%;
    }
  
    #search-input,
    #mood-filter {
      width: 100%;
    }
  
    .about-intro {
      padding: 1.5rem;
    }
  }
  
  @media (min-width: 641px) and (max-width: 1023px) {
    .desktop-nav {
      display: flex;
    }
    .bottom-nav {
      display: none;
    }
    
    .bento-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .bottom-nav {
      display: none;
    }
  
    .fab {
      bottom: 1.5rem;
    }
  }
  
/* --- Entry Form Backdrop for Tablet/Desktop --- */
@media (min-width: 641px) {
  .entry-form-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.18);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
  }
  .entry-form {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    margin: 0 auto;
    max-width: 420px;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    background: linear-gradient(to bottom right, hsl(var(--card)), hsl(var(--card) / 0.9));
    border: 1px solid hsla(var(--border), 0.3);
    padding: 2rem 1.5rem;
    z-index: 100;
    transform: none;
    transition: box-shadow 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }
  .entry-form.hidden {
    display: none;
  }
}

/* --- End Entry Form Backdrop --- */
  