:root {
            --primary-light: #e8f5e9;
            --primary: #c8e6c9;
            --primary-dark: #a5d6a7;
            --secondary: #81c784;
            --secondary-dark: #4caf50;
            --accent: #ffcc80;
            --accent-dark: #ffb74d;
            --text: #1b5e20;
            --text-light: #388e3c;
            --text-lighter: #66bb6a;
            --white: #ffffff;
            --shadow: rgba(76, 175, 80, 0.1);
            --border-radius: 16px;
            --transition: all 0.3s ease;
            --blur-bg: rgba(255, 255, 255, 0.92);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Nunito', sans-serif;
            background: linear-gradient(145deg, 
                #e0f7fa 0%, 
                #e8f5e9 25%, 
                #f1f8e9 50%, 
                #f9fbe7 75%, 
                #fffde7 100%);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }
        
        /* New Elegant Background */
        .background-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }
        
        /* Floating Particles System */
        .particle {
            position: fixed;
            background: linear-gradient(135deg, 
                rgba(129, 199, 132, 0.15) 0%, 
                rgba(76, 175, 80, 0.2) 100%);
            border-radius: 50%;
            z-index: -1;
            pointer-events: none;
            filter: blur(1px);
        }
        
        /* Subtle Light Rays */
        .light-ray {
            position: fixed;
            background: linear-gradient(90deg, 
                rgba(255, 255, 255, 0) 0%, 
                rgba(255, 255, 255, 0.08) 50%, 
                rgba(255, 255, 255, 0) 100%);
            transform-origin: center;
            z-index: -1;
            pointer-events: none;
            filter: blur(15px);
        }
        
        /* Soft Gradient Overlays */
        .gradient-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            opacity: 0.4;
            background: 
                radial-gradient(circle at 20% 30%, rgba(129, 199, 132, 0.18) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 30% 80%, rgba(165, 214, 167, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 85% 85%, rgba(200, 230, 201, 0.1) 0%, transparent 35%),
                radial-gradient(circle at 15% 50%, rgba(102, 187, 106, 0.2) 0%, transparent 30%),
                radial-gradient(circle at 70% 35%, rgba(56, 142, 60, 0.1) 0%, transparent 40%);
        }
        
        /* Animated Floating Elements */
        .floating-element {
            position: fixed;
            font-size: 32px;
            opacity: 0.1;
            z-index: -1;
            pointer-events: none;
            animation: floatElement 25s infinite ease-in-out;
            filter: blur(0.5px);
        }
        
        /* Elegant Floating Circles */
        .floating-circle {
            position: fixed;
            border-radius: 50%;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(129, 199, 132, 0.05) 100%);
            z-index: -1;
            pointer-events: none;
            animation: floatCircle 20s infinite ease-in-out;
        }
        
        /* Container for main content */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }
        
        /* Animations */
        @keyframes floatElement {
            0%, 100% { 
                transform: translateY(0) rotate(0deg) scale(1); 
                opacity: 0.08;
            }
            25% { 
                transform: translateY(-40px) rotate(45deg) scale(1.1); 
                opacity: 0.12;
            }
            50% { 
                transform: translateY(-20px) rotate(90deg) scale(1); 
                opacity: 0.08;
            }
            75% { 
                transform: translateY(-60px) rotate(135deg) scale(0.9); 
                opacity: 0.12;
            }
        }
        
        @keyframes floatCircle {
            0%, 100% { 
                transform: translateY(0) translateX(0) scale(1); 
                opacity: 0.05;
            }
            33% { 
                transform: translateY(-30px) translateX(20px) scale(1.1); 
                opacity: 0.08;
            }
            66% { 
                transform: translateY(-60px) translateX(-10px) scale(0.9); 
                opacity: 0.03;
            }
        }
        
        @keyframes lightRay {
            0%, 100% { 
                transform: rotate(0deg); 
                opacity: 0.3;
            }
            50% { 
                transform: rotate(180deg); 
                opacity: 0.5;
            }
        }
        
        /* Rest of the CSS remains unchanged from your working version */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            margin-bottom: 30px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-icon {
            font-size: 28px;
            color: var(--secondary-dark);
        }
        
        .logo h1 {
            font-family: 'Playfair Display', serif;
            font-weight: 500;
            font-size: 28px;
            background: linear-gradient(135deg, var(--secondary-dark), var(--text-light));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .date-display {
            background: var(--blur-bg);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius);
            padding: 12px 20px;
            box-shadow: 0 4px 12px var(--shadow);
            font-weight: 500;
        }
        
        .greeting {
            font-size: 18px;
            color: var(--text-light);
        }
        
        .dashboard {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 30px;
        }
        
        @media (max-width: 992px) {
            .dashboard {
                grid-template-columns: 1fr;
            }
        }
        
        .card {
            background: var(--blur-bg);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius);
            padding: 25px;
            box-shadow: 0 8px 25px var(--shadow);
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: var(--transition);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px var(--shadow);
        }
        
        .card-title {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            font-size: 20px;
            font-weight: 600;
            color: var(--text);
        }
        
        .card-title i {
            color: var(--secondary-dark);
        }
        
        .habits-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .habit-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: var(--white);
            border-radius: 12px;
            border-left: 4px solid var(--secondary);
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            transition: var(--transition);
        }
        
        .habit-item:hover {
            background: #f9f9f9;
        }
        
        .habit-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .habit-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--primary);
            border-radius: 10px;
            color: var(--text);
            font-size: 18px;
        }
        
        .habit-details h3 {
            font-weight: 600;
            margin-bottom: 3px;
        }
        
        .habit-details p {
            font-size: 14px;
            color: var(--text-lighter);
        }
        
        .habit-streak {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
            color: var(--accent-dark);
            font-weight: 500;
        }
        
        .habit-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .habit-check {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 2px solid var(--secondary);
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            font-size: 16px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .habit-check:hover {
            background: var(--secondary);
            color: white;
        }
        
        .habit-check.completed {
            background: var(--secondary);
            color: white;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        .stat-item {
            background: var(--white);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }
        
        .stat-value {
            font-size: 32px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 5px;
        }
        
        .stat-label {
            font-size: 14px;
            color: var(--text-lighter);
        }
        
        .progress-ring {
            width: 100px;
            height: 100px;
            margin: 0 auto 15px;
            position: relative;
        }
        
        .progress-ring-circle {
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        
        .progress-ring-bg {
            fill: none;
            stroke: var(--primary);
            stroke-width: 8;
        }
        
        .progress-ring-fill {
            fill: none;
            stroke: var(--secondary-dark);
            stroke-width: 8;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.5s ease;
        }
        
        .progress-ring-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
        }
        
        .insights-container {
            margin-top: 20px;
        }
        
        .insight-item {
            background: var(--white);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }
        
        .insight-icon {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent);
            border-radius: 8px;
            color: var(--text);
            font-size: 16px;
        }
        
        .garden-container {
            grid-column: 1 / -1;
            height: 300px;
            position: relative;
            overflow: hidden;
            border-radius: var(--border-radius);
        }
        
        .garden-bg {
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }
        
        .garden-element {
            position: absolute;
            transition: transform 0.5s ease;
            z-index: 2;
        }
        
        .tree {
            bottom: 0;
            font-size: 60px;
            color: #2e7d32;
            z-index: 2;
        }
        
        .flower {
            font-size: 30px;
            z-index: 3;
            filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
        }
        
        .bird {
            font-size: 24px;
            color: #5d4037;
            animation: fly 4s infinite alternate ease-in-out;
            z-index: 4;
        }
        
        .butterfly {
            font-size: 22px;
            color: #e65100;
            animation: flutter 3s infinite alternate ease-in-out;
            z-index: 4;
        }
        
        .rabbit {
            font-size: 28px;
            color: #777;
            bottom: 10px;
            z-index: 3;
            animation: hop 5s infinite alternate ease-in-out;
        }
        
        .water {
            font-size: 40px;
            color: #2196f3;
            bottom: 0;
            z-index: 1;
        }
        
        .bush {
            font-size: 35px;
            color: #33691e;
            bottom: 0;
            z-index: 2;
        }
        
        .rock {
            font-size: 30px;
            color: #757575;
            bottom: 0;
            z-index: 1;
        }
        
        @keyframes flutter {
            0% { transform: translateY(0) rotate(0deg); }
            100% { transform: translateY(-20px) rotate(5deg); }
        }
        
        @keyframes fly {
            0% { transform: translateX(0) translateY(0); }
            100% { transform: translateX(20px) translateY(-15px); }
        }
        
        @keyframes hop {
            0% { transform: translateX(0) translateY(0); }
            100% { transform: translateX(30px) translateY(-5px); }
        }
        
        .garden-message {
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
            z-index: 5;
            background: rgba(255, 255, 255, 0.8);
            padding: 10px 20px;
            margin: 0 30px;
            border-radius: 20px;
            backdrop-filter: blur(5px);
        }
        
        .time-based-message {
            margin-top: 10px;
            font-style: italic;
            color: var(--text-light);
            font-size: 14px;
        }
        
        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            overflow-x: auto;
            padding-bottom: 5px;
        }
        
        .tab {
            background: var(--blur-bg);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 12px 24px;
            border: none;
            font-family: 'Nunito', sans-serif;
            font-weight: 600;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
        }
        
        .tab:hover {
            background: var(--primary);
            color: var(--text);
        }
        
        .tab.active {
            background: var(--secondary);
            color: var(--white);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .add-habit-form, .edit-habit-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
            max-width: 500px;
            margin: 0 auto;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .form-group label {
            font-weight: 600;
            color: var(--text);
        }
        
        .form-control {
            padding: 12px 16px;
            border-radius: 10px;
            border: 1px solid var(--primary);
            font-family: 'Nunito', sans-serif;
            font-size: 16px;
            background: var(--white);
            transition: var(--transition);
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.2);
        }
        
        .btn {
            padding: 14px 24px;
            border-radius: 10px;
            border: none;
            font-family: 'Nunito', sans-serif;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: var(--secondary);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--secondary-dark);
        }
        
        .btn-secondary {
            background: var(--primary);
            color: var(--text);
        }
        
        .btn-secondary:hover {
            background: var(--primary-dark);
        }
        
        .btn-danger {
            background: #f44336;
            color: white;
        }
        
        .btn-danger:hover {
            background: #d32f2f;
        }
        
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }
        
        .modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background: var(--white);
            border-radius: var(--border-radius);
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
            transform: translateY(20px);
            transition: var(--transition);
        }
        
        .modal.active .modal-content {
            transform: translateY(0);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--text);
        }
        
        .close-modal {
            background: none;
            border: none;
            font-size: 24px;
            color: var(--text-lighter);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .close-modal:hover {
            color: var(--text);
        }
        
        .streak-fire {
            color: #ff9800;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-lighter);
        }
        
        .empty-state i {
            font-size: 48px;
            margin-bottom: 15px;
            color: var(--primary);
        }
        
        footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            color: var(--text-lighter);
            font-size: 14px;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
        }
        
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .user-info {
                width: 100%;
                justify-content: space-between;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .habit-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .habit-actions {
                align-self: flex-end;
                width: 100%;
                justify-content: flex-end;
            }
            
            .action-buttons {
                flex-wrap: wrap;
                justify-content: flex-end;
            }
        }
        
        .celebrate {
            animation: celebrate 0.5s ease;
        }
        
        @keyframes celebrate {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        
        .bloom {
            animation: bloom 1.5s ease;
        }
        
        @keyframes bloom {
            0% { transform: scale(0.5); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .delete-confirm {
            background: #ffebee;
            border: 1px solid #ffcdd2;
            padding: 15px;
            border-radius: 10px;
            margin-top: 15px;
        }
        
        .delete-confirm p {
            margin-bottom: 10px;
            color: #c62828;
        }
        
        .delete-buttons {
            display: flex;
            gap: 10px;
        }
    