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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            color: #2d3748;
            background: #fdf2f8;
            transition: background-color 0.5s ease;
            min-height: 100vh;
        }

        /* Mood-based backgrounds */
        body.mood-sad { background: #dbeafe; }
        body.mood-neutral { background: #f3f4f6; }
        body.mood-happy { background: #fef3c7; }
        body.mood-love { background: #fce7f3; }
        body.mood-excited { background: #e0e7ff; }

        .container {
            max-width: 700px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        /* Card styling */
        .card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 1.5rem;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .card:hover {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        /* Header */
        .header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: bold;
            color: #2d3748;
            margin-bottom: 0.5rem;
        }

        .header p {
            color: #718096;
            font-size: 1.1rem;
        }

        /* Quote card */
        .quote-card {
            background: linear-gradient(135deg, #e0e7ff, #fce7f3);
            border: 1px solid #c7d2fe;
            text-align: center;
        }

        .quote-emoji {
            font-size: 2rem;
            margin-bottom: 1rem;
            animation: float 3s ease-in-out infinite;
        }

        .quote-text {
            font-style: italic;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: #4c51bf;
        }

        .quote-author {
            font-size: 0.875rem;
            color: #718096;
        }

        .quote-heading {
            color: #6366f1;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

        /* Mood selector */
        .mood-selector h2 {
            text-align: center;
            font-size: 1.5rem;
            margin-bottom: 2rem;
            color: #2d3748;
        }

        .mood-grid {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .mood-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }

        .mood-button {
            width: 4rem;
            height: 4rem;
            border-radius: 50%;
            border: 2px solid #e2e8f0;
            background: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
        }

        .mood-button:hover {
            transform: scale(1.1);
            border-color: #a78bfa;
            box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
        }

        .mood-button.selected {
            border-color: #a78bfa;
            background: #f3f4f6;
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
        }

        .mood-button.bounce {
            animation: bounce 0.6s ease;
        }

        .mood-label {
            font-size: 0.875rem;
            font-weight: 500;
        }

        .mood-label.sad { color: #3b82f6; }
        .mood-label.neutral { color: #6b7280; }
        .mood-label.happy { color: #f59e0b; }
        .mood-label.love { color: #ec4899; }
        .mood-label.excited { color: #8b5cf6; }

        .mood-feedback {
            text-align: center;
            color: #718096;
            font-size: 0.875rem;
            opacity: 0;
            animation: fadeIn 0.6s ease forwards;
        }

    .hidden { display: none !important; }

        /* Note input */
        .note-section h3 {
            text-align: center;
            font-size: 1.25rem;
            margin-bottom: 1.5rem;
            color: #2d3748;
        }

        .note-textarea {
            width: 100%;
            min-height: 8rem;
            padding: 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            background: rgba(255, 255, 255, 0.7);
            font-family: inherit;
            font-size: 0.875rem;
            resize: vertical;
            transition: all 0.3s ease;
        }

        .note-textarea:focus {
            outline: none;
            border-color: #a78bfa;
            box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
        }

        .note-textarea:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .save-button {
            width: 100%;
            margin-top: 1rem;
            padding: 0.75rem 1.5rem;
            background: #a78bfa;
            color: white;
            border: none;
            border-radius: 0.75rem;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .save-button:hover:not(:disabled) {
            background: #8b5cf6;
            transform: translateY(-1px);
        }

        .save-button:active {
            transform: translateY(0);
        }

        .save-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .disabled-section {
            opacity: 0.5;
        }

        /* Chart */
        .chart h3 {
            text-align: center;
            font-size: 1.25rem;
            margin-bottom: 1.5rem;
            color: #2d3748;
        }

        .chart-emoji {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 1rem;
            animation: float 3s ease-in-out infinite;
        }

        .chart-bars {
            margin-top: 1.5rem;
        }

        .chart-bar {
            margin-bottom: 1rem;
            opacity: 0;
            animation: fadeIn 0.6s ease forwards;
        }

        .chart-bar:nth-child(2) { animation-delay: 0.1s; }
        .chart-bar:nth-child(3) { animation-delay: 0.2s; }
        .chart-bar:nth-child(4) { animation-delay: 0.3s; }
        .chart-bar:nth-child(5) { animation-delay: 0.4s; }

        .chart-bar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .chart-bar-label {
            font-size: 0.875rem;
            font-weight: 500;
        }

        .chart-bar-value {
            font-size: 0.75rem;
            color: #718096;
        }

        .chart-bar-track {
            width: 100%;
            height: 0.5rem;
            background: #f3f4f6;
            border-radius: 0.25rem;
            overflow: hidden;
        }

        .chart-bar-fill {
            height: 100%;
            border-radius: 0.25rem;
            transition: width 1s ease;
        }

        .chart-bar-fill.sad { background: #60a5fa; }
        .chart-bar-fill.neutral { background: #9ca3af; }
        .chart-bar-fill.happy { background: #fbbf24; }
        .chart-bar-fill.love { background: #f472b6; }
        .chart-bar-fill.excited { background: #a78bfa; }

        .chart-subtitle {
            text-align: center;
            color: #718096;
            font-size: 0.875rem;
            margin-bottom: 1rem;
        }

        .chart-footer {
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(0,0,0,0.1);
            text-align: center;
        }

        .chart-footer-note {
            font-size: 0.75rem;
            color: #718096;
        }

        /* History */
        .history h3 {
            text-align: center;
            font-size: 1.25rem;
            margin-bottom: 1.5rem;
            color: #2d3748;
        }

        .history-empty {
            text-align: center;
            color: #718096;
        }

        .history-empty-emoji {
            font-size: 3rem;
            margin-bottom: 1rem;
            animation: float 3s ease-in-out infinite;
        }

        .history-empty-heading {
            margin-bottom: 0.5rem;
        }

        .history-empty-note {
            font-size: 0.875rem;
        }

        .entry {
            background: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeIn 0.6s ease forwards;
        }

        .entry.sad { background: rgba(147, 197, 253, 0.2); border-color: rgba(147, 197, 253, 0.3); }
        .entry.neutral { background: rgba(209, 213, 219, 0.2); border-color: rgba(209, 213, 219, 0.3); }
        .entry.happy { background: rgba(254, 240, 138, 0.2); border-color: rgba(254, 240, 138, 0.3); }
        .entry.love { background: rgba(252, 165, 165, 0.2); border-color: rgba(252, 165, 165, 0.3); }
        .entry.excited { background: rgba(196, 181, 253, 0.2); border-color: rgba(196, 181, 253, 0.3); }

        .entry-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .entry-emoji {
            font-size: 2rem;
            flex-shrink: 0;
        }

        .entry-info {
            flex: 1;
        }

        .entry-date {
            font-size: 0.875rem;
            font-weight: 500;
            color: #718096;
            margin-bottom: 0.25rem;
        }

        .entry-note {
            color: #2d3748;
            line-height: 1.5;
        }

        .entry-delete {
            background: none;
            border: none;
            color: #718096;
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 0.25rem;
            transition: all 0.2s ease;
        }

        .entry-delete:hover {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
        }

        /* Footer */
        .footer {
            text-align: center;
            padding: 2rem 0;
            color: #718096;
            font-size: 0.75rem;
        }

        

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

        @keyframes bounce {
            0%, 20%, 53%, 80%, 100% {
                transform: translate3d(0,0,0);
            }
            40%, 43% {
                transform: translate3d(0, -15px, 0);
            }
            70% {
                transform: translate3d(0, -8px, 0);
            }
            90% {
                transform: translate3d(0, -3px, 0);
            }
        }

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

        /* Responsive */
        @media (max-width: 640px) {
            .container {
                padding: 1rem;
            }
            
            .card {
                padding: 1.5rem;
                margin-bottom: 1.5rem;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .mood-grid {
                gap: 0.75rem;
            }
            
            .mood-button {
                width: 3.5rem;
                height: 3.5rem;
                font-size: 1.25rem;
            }
        }

        /* Toast notification */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 1rem 1.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .toast.show {
            transform: translateX(0);
        }

        .toast-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .toast-description {
            font-size: 0.875rem;
            color: #718096;
        }

        /* Inline loading spinner */
        .loading-inline {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            justify-content: center;
        }
        .spinner {
            width: 1rem;
            height: 1rem;
            border: 2px solid currentColor;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }