:root {
    --lavender: #e6e6fa;
    --mint: #d4f0db;
    --blush: #ffdbdb;
    --sky-blue: #d4f1f9;
    --dark-text: #2e2e45;
    --light-text: #666;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 12px;
    --transition-fast: 0.2s;
    --transition-smooth: 0.3s ease;
}

/* Base styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #E0D2E8;
    color: var(--dark-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Glassmorphic card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    transition: var(--transition-smooth);
    border-radius: 12px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.btn-lavender { background-color: var(--lavender); }
.btn-mint     { background-color: var(--mint);     }
.btn-blush    { background-color: var(--blush);    }
.btn-sky      { background-color: var(--sky-blue); }

/* Habit Tracker */
.habit-item {
    transition: var(--transition-smooth);
}

.habit-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.habit-check {
    transition: var(--transition-fast);
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: inline-block;
}

.habit-check.checked {
    background-color: #a5d6a7;
    border-color: #66bb6a;
}

/* Mood Emojis */
.mood-emoji {
    font-size: 1.8rem;
    opacity: 0.6;
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mood-emoji:hover,
.mood-emoji.selected {
    transform: scale(1.25);
    opacity: 1;
}


/* Tasks */
.task-item {
    transition: var(--transition-smooth);
}

.task-item.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Quote block */
.quote-text {
    font-style: italic;
    color: var(--light-text);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.bounce {
    animation: bounce 0.5s ease;
}

.check-animation {
    animation: checkmark 0.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

@keyframes checkmark {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Tabs */
.tab {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    color: var(--dark-text);
}

.tab.active {
    border-bottom: 2px solid #9c88ff;
    font-weight: 600;
    color: #6c5ce7;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    justify-content: space-around;
    padding: 0.5rem 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.mobile-tab svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.mobile-tab span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #333;
}

@media (max-width: 768px) {
    .desktop-view {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }
}

@media (max-width: 640px) {
  header h1.text-3xl {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: 4rem; /* enough to clear the fixed nav */
  }
}

