* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
        }

        :root {
            /* Primary Color Palette */
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            
            /* Solid Colors */
            --primary-color: #667eea;
            --secondary-color: #764ba2;
            --accent-color: #4facfe;
            --success-color: #43e97b;
            --danger-color: #f5576c;
            --warning-color: #ffa726;
            
            /* Neutral Colors */
            --white: #ffffff;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #6c757d;
            --text-dark: #2d3436;
            --text-light: #636e72;
            
            /* Shadows */
            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
            --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
            
            /* Transitions */
            --transition-fast: all 0.2s ease;
            --transition-normal: all 0.3s ease;
            --transition-slow: all 0.4s ease;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: var(--primary-gradient);
            padding: 1rem;
            position: relative;
            overflow-x: hidden;
        }

        /* Animated background shapes */
        body::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
            background-size: 20px 20px;
            animation: backgroundMove 20s linear infinite;
            z-index: -1;
        }

        @keyframes backgroundMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(20px, 20px); }
        }

        .container {
            width: 100%;
            max-width: 600px;
            min-height: 400px;
            color: var(--text-dark);
            border-radius: 20px;
            margin: 1rem;
            padding: 2rem;
            text-align: center;
            box-shadow: var(--shadow-xl);
            background: var(--white);
            backdrop-filter: blur(10px);
            transition: var(--transition-normal);
            position: relative;
            overflow: hidden;
        }

        /* Container decorative elements */
        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--accent-gradient);
            border-radius: 20px 20px 0 0;
        }

        .container h1 {
            margin-bottom: 1.5rem;
            font-size: 2.5rem;
            font-weight: 600;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .container:hover {
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
            transform: translateY(-5px);
            transition: var(--transition-slow);
        }

        .input-row {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 1.5rem;
            gap: 0.75rem;
        }

        #taskInput {
            flex: 1;
            padding: 0.875rem 1.25rem;
            border: 2px solid var(--medium-gray);
            border-radius: 15px;
            font-size: 1rem;
            font-weight: 400;
            outline: none;
            transition: var(--transition-normal);
            background-color: var(--light-gray);
            color: var(--text-dark);
        }

        #taskInput:focus {
            border: 2px solid var(--primary-color);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            background-color: var(--white);
            transform: translateY(-2px);
        }

        #taskInput::placeholder {
            color: var(--text-light);
            font-weight: 300;
        }

        .Buttons {
            padding: 0.875rem 1.75rem;
            border: none;
            border-radius: 15px;
            background: var(--success-gradient);
            color: var(--white);
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
            transition: var(--transition-normal);
            position: relative;
            overflow: hidden;
        }

        .Buttons::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .Buttons:hover::before {
            left: 100%;
        }

        .Buttons:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(67, 233, 123, 0.4);
            transition: var(--transition-normal);
        }

        .Buttons:active {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(67, 233, 123, 0.3);
        }

        #taskList {
            margin-top: 1.5rem;
            text-align: left;
        }

        #tasklist {
            list-style-type: none;
            padding: 0.5rem;
            margin: 0;
            max-height: 400px;
            overflow-y: auto;
        }

        #taskList h3 {
            margin-bottom: 1rem;
            font-size: 1.5rem;
            font-weight: 500;
            color: var(--text-dark);
            border-bottom: 2px solid var(--medium-gray);
            padding-bottom: 0.5rem;
            position: relative;
        }

        #taskList h3::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 60px;
            height: 2px;
            background: var(--accent-gradient);
        }

        .taskItem {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--medium-gray);
            transition: var(--transition-fast);
            border-radius: 12px;
            position: relative;
            background-color: var(--white);
            margin-bottom: 0.5rem;
        }

        .taskItem label {
            display: flex;
            gap: 0.85rem;
            align-items: center;
            width: 100%;
            cursor: pointer;
        }

        .taskItem input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: var(--success-color);
            cursor: pointer;
            transition: var(--transition-fast);
        }

        .taskItem input[type="checkbox"]:checked {
            transform: scale(1.1);
        }

        .taskText {
            font-size: 1rem;
            font-weight: 400;
            color: var(--text-dark);
            word-break: break-word;
            line-height: 1.4;
            transition: var(--transition-fast);
        }

        .taskText.completed {
            text-decoration: line-through;
            color: var(--text-light);
            opacity: 0.7;
        }

        .taskItem:hover {
            background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
            transform: translateX(5px);
            box-shadow: var(--shadow-md);
        }

        .delete-icon {
            position: absolute;
            right: 15px;
            opacity: 0;
            transition: var(--transition-fast);
            cursor: pointer;
            color: var(--danger-color);
            padding: 5px;
            border-radius: 50%;
        }

        .taskItem:hover .delete-icon {
            opacity: 1;
        }

        @media screen and (max-width: 768px) {
            .delete-icon {
                position: absolute;
                right: 15px;
                opacity: 1 !important;
                visibility: visible !important;
                display: block !important;
            }

            .taskItem {
                padding-right: 45px !important; /* Ensure there's space for the delete icon */
            }
            
            .taskItem:hover .delete-icon {
                opacity: 1;
            }
        }

        /* Scrollbar styling */
        #tasklist::-webkit-scrollbar {
            width: 8px;
        }

        #tasklist::-webkit-scrollbar-track {
            background: var(--light-gray);
            border-radius: 10px;
        }

        #tasklist::-webkit-scrollbar-thumb {
            background: var(--accent-gradient);
            border-radius: 10px;
        }

        #tasklist::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }

        /* Media Queries for Responsiveness */
        @media (max-width: 768px) {
            .container {
                padding: 1.5rem;
                margin: 0.5rem;
                min-height: 500px;
                border-radius: 15px;
            }
            
            .container h1 {
                font-size: 2rem;
                margin-bottom: 1.25rem;
            }
            
            .input-row {
                flex-direction: column;
                gap: 1rem;
            }
            
            #taskInput {
                width: 100%;
            }
            
            .Buttons {
                width: 100%;
            }
            
            #tasklist {
                max-height: 300px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0.5rem;
            }
            
            .container {
                padding: 1.25rem;
                margin: 0;
                min-height: 70vh;
                border-radius: 12px;
            }
            
            .container h1 {
                font-size: 1.75rem;
                margin-bottom: 1rem;
            }
            
            .taskItem {
                padding: 0.875rem 1rem;
            }
            
            .taskText {
                font-size: 0.95rem;
            }
            
            #tasklist {
                max-height: 250px;
            }
            
            #taskList h3 {
                font-size: 1.25rem;
            }
        }

        @media screen and (max-width: 768px) {
    .container {
        margin: 0.5rem;
        padding: 1.5rem;
        width: 95%;
    }

    .container h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .input-row {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    #taskInput {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .Buttons {
        width: 100%;
        padding: 0.75rem;
    }

    .taskItem {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }

    .delete-icon {
        opacity: 1;
        position: absolute;
        right: 10px;
    }

    #taskList h3 {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 1rem;
        margin: 0.25rem;
    }

    .container h1 {
        font-size: 1.75rem;
    }

    .taskItem label {
        font-size: 0.9rem;
    }

    #taskInput {
        font-size: 0.9rem;
    }

    .Buttons {
        font-size: 0.9rem;
    }

    #tasklist {
        max-height: 350px;
    }
}

/* Add smooth scrolling for better mobile experience */
html {
    scroll-behavior: smooth;
}

/* Improve touch targets for mobile */
.taskItem input[type="checkbox"] {
    min-width: 24px;
    min-height: 24px;
}