:root {
    /* Base Colors */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-primary: #6366f1;
    /* Indigo default */
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);

    /* Category Colors - Soft Pastels for UI */
    --color-poop: #d97706;
    --color-cry: #3b82f6;
    --color-vomit: #10b981;
    --color-workout: #ef4444;
    --color-waxing: #9b59b6;
    --color-headache: #e74c3c;
    --color-wins: #eab308;
    --color-mood: #06b6d4;

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 500px;
    /* Mobile width focus */
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

/* Utilities */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.mt-8 {
    margin-top: 32px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

/* Buttons & Inputs */
.btn {
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    font-family: var(--font-family);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 16px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-enter {
    animation: fadeInSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Calendar Styles */
.calendar-wrapper {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-title {
    font-weight: 700;
    font-size: 1rem;
}

.calendar-nav-btn {
    background: transparent;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-day-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: #f0f0f0;
}

.calendar-day.active {
    background: #f0f0f0;
    border-color: var(--accent-primary);
}

.calendar-day.today {
    font-weight: 700;
    color: var(--accent-primary);
}

.calendar-day.empty {
    pointer-events: none;
}

.calendar-dots {
    display: flex;
    gap: 2px;
    margin-top: 2px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.view-toggle {
    display: flex;
    background: #e0e0e0;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.view-toggle-btn {
    flex: 1;
    padding: 6px;
    text-align: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
    color: #666;
    font-weight: 500;
}

.view-toggle-btn.active {
    background: white;
    color: black;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}