        :root {
            --primary: #ff6f61;
            --primary-dark: #e85c50;
            --primary-light: #ff8a7a;
            --bg-light: #f8fafc;
            --card-light: #ffffff;
            --text-light: #1e293b;
            --text-secondary: #64748b;
            --accent: #ffeb3b;
            --success: #10b981;
            --error: #ef4444;
            --warning: #f59e0b;
            --dark-bg: #0f172a;
            --dark-card: #1e293b;
            --dark-text: #f1f5f9;
            --dark-secondary: #94a3b8;
            --border-light: #e2e8f0;
            --border-dark: #334155;
            --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            --navbar-height: 80px;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--bg-light);
            color: var(--text-light);
            line-height: 1.6;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            min-height: 100vh;
            padding-top: var(--navbar-height);
        }

        body.dark {
            background: var(--dark-bg);
            color: var(--dark-text);
        }

        /* Navbar Styles */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--navbar-height);
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-light);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        body.dark .navbar {
            background: rgba(15, 23, 42, 0.95);
            border-bottom-color: var(--border-dark);
        }

        .navbar.scrolled {
            box-shadow: var(--shadow);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary);
            text-decoration: none;
        }

        .nav-brand i {
            font-size: 2rem;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 30px;
            list-style: none;
        }

        .nav-menu a {
            color: var(--text-light);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        body.dark .nav-menu a {
            color: var(--dark-text);
        }

        .nav-menu a:hover {
            color: var(--primary);
            background: rgba(255, 111, 97, 0.1);
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--primary);
            transform: translateX(-50%);
            transition: width 0.3s ease;
        }

        .nav-menu a:hover::after {
            width: 80%;
        }

        .nav-toggle {
            display: none;
            background: none;
            border: none;
            
            padding: 8px;
            border-radius: 8px;
            transition: background 0.3s ease;
        }

        .nav-toggle:hover {
            background: rgba(255, 111, 97, 0.1);
        }

        .nav-toggle i {
            font-size: 1.5rem;
            color: var(--text-light);
        }

        body.dark .nav-toggle i {
            color: var(--dark-text);
        }

        .theme-toggle {
            background: none;
            border: none;
            
            padding: 12px;
            border-radius: 50%;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-toggle:hover {
            background: rgba(255, 111, 97, 0.1);
            transform: rotate(360deg);
        }

        .theme-toggle i {
            font-size: 1.2rem;
            color: var(--primary);
        }

        /* Hero Section */
        .hero {
            background: var(--gradient);
            color: white;
            padding: 80px 20px 60px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
            animation: float 20s infinite linear;
        }

        @keyframes float {
            0% { transform: translateY(0) rotate(0deg); }
            100% { transform: translateY(-100px) rotate(360deg); }
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            animation: slideInUp 1s ease-out;
        }

        .hero p {
            font-size: 1.2rem;
            opacity: 0.95;
            margin-bottom: 30px;
            animation: slideInUp 1s ease-out 0.2s both;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 40px;
            animation: slideInUp 1s ease-out 0.4s both;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Main Container */
        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 20px;
        }

        .generator-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-bottom: 60px;
        }

        .form-panel, .preview-panel {
            background: var(--card-light);
            border-radius: 20px;
            padding: 30px;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            border: 1px solid var(--border-light);
        }

        body.dark .form-panel,
        body.dark .preview-panel {
            background: var(--dark-card);
            border-color: var(--border-dark);
        }

        .form-panel:hover,
        .preview-panel:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .panel-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-light);
        }

        body.dark .panel-header {
            border-bottom-color: var(--border-dark);
        }

        .panel-header i {
            font-size: 1.5rem;
            color: var(--primary);
        }

        .panel-header h2 {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--text-light);
        }

        body.dark .panel-header h2 {
            color: var(--dark-text);
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--text-light);
        }

        body.dark .form-label {
            color: var(--dark-text);
        }

        .form-label i {
            font-size: 1rem;
            color: var(--primary);
        }

        .form-input, .form-select {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--border-light);
            border-radius: 12px;
            font-size: 1rem;
            font-family: inherit;
            background: var(--card-light);
            color: var(--text-light);
            transition: all 0.3s ease;
            outline: none;
        }

        body.dark .form-input,
        body.dark .form-select {
            background: var(--dark-bg);
            border-color: var(--border-dark);
            color: var(--dark-text);
        }

        .form-input:focus,
        .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
        }

        .form-input:invalid {
            border-color: var(--error);
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 15px;
        }

        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        .color-input-group {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .color-input {
            width: 60px;
            height: 45px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .color-input:hover {
            transform: scale(1.1);
        }

        /* Button Styles */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 24px;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            font-family: inherit;
            position: relative;
            overflow: hidden;
        }

        .btn::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;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: var(--gradient);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: var(--text-light);
            border: 2px solid var(--border-light);
        }

        body.dark .btn-secondary {
            color: var(--dark-text);
            border-color: var(--border-dark);
        }

        .btn-secondary:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .btn-group {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        /* Preview Styles */
        .preview-container {
            min-height: 300px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 2px dashed var(--border-light);
            border-radius: 16px;
            padding: 30px;
            background: var(--bg-light);
            position: relative;
            transition: all 0.3s ease;
        }

        body.dark .preview-container {
            background: var(--dark-bg);
            border-color: var(--border-dark);
        }

        .preview-container.has-qr {
            border-style: solid;
            background: white;
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
        }

        body.dark .preview-container.has-qr {
            background: var(--dark-card);
        }

        .preview-placeholder {
            text-align: center;
            color: var(--text-secondary);
        }

        body.dark .preview-placeholder {
            color: var(--dark-secondary);
        }

        .preview-placeholder i {
            font-size: 4rem;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        /* QR Code List */
        .qr-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .qr-item {
            background: var(--card-light);
            border-radius: 20px;
            padding: 25px;
            box-shadow: var(--shadow);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border-light);
            position: relative;
            overflow: hidden;
        }

        body.dark .qr-item {
            background: var(--dark-card);
            border-color: var(--border-dark);
        }

        .qr-item:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }

        .qr-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient);
        }

        .qr-item img,
        .qr-item canvas {
            width: 100%;
            max-width: 200px;
            height: auto;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .qr-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 10px;
        }

        .qr-actions .btn {
            justify-content: center;
            font-size: 0.9rem;
            padding: 10px 16px;
        }

        /* Stats Section */
        .stats-section {
            background: var(--card-light);
            border-radius: 20px;
            padding: 30px;
            margin: 40px 0;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
        }

        body.dark .stats-section {
            background: var(--dark-card);
            border-color: var(--border-dark);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
        }

        .stat-card {
            text-align: center;
            padding: 20px;
            border-radius: 16px;
            background: var(--bg-light);
            transition: transform 0.3s ease;
        }

        body.dark .stat-card {
            background: var(--dark-bg);
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 12px;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-light);
            margin-bottom: 8px;
        }

        body.dark .stat-value {
            color: var(--dark-text);
        }

        .stat-label {
            color: white;
            font-size: 0.9rem;
        }

        body.dark .stat-label {
                       color: white;

        }

        /* Features Section */
        .features-section {
            margin: 60px 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-light);
            margin-bottom: 15px;
        }

        body.dark .section-title {
            color: var(--dark-text);
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        body.dark .section-subtitle {
            color: var(--dark-secondary);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .feature-card {
            background: var(--card-light);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border-light);
            position: relative;
            overflow: hidden;
        }

        body.dark .feature-card {
            background: var(--dark-card);
            border-color: var(--border-dark);
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: var(--gradient);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            transition: transform 0.3s ease;
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .feature-icon i {
            font-size: 2rem;
            color: white;
        }

        .feature-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 15px;
        }

        body.dark .feature-title {
            color: var(--dark-text);
        }

        .feature-description {
            color: var(--text-secondary);
            line-height: 1.6;
        }

        body.dark .feature-description {
            color: var(--dark-secondary);
        }

        /* Newsletter Section */
        .newsletter-section {
            background: var(--gradient);
            color: white;
            border-radius: 20px;
            padding: 40px;
            margin: 40px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .newsletter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
            animation: float 20s infinite linear;
        }

        .newsletter-content {
            position: relative;
            z-index: 1;
            max-width: 500px;
            margin: 0 auto;
        }

        .newsletter-title {
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .newsletter-form {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .newsletter-input {
            flex: 1;
            padding: 14px 20px;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            outline: none;
        }

        .newsletter-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
        }

        .newsletter-btn:hover {
            background: white;
            color: var(--primary);
        }

        /* Footer */
        .footer {
            background: var(--text-light);
            color: white;
            padding: 60px 20px 30px;
            margin-top: 80px;
            position: relative;
        }

        body.dark .footer {
            background: var(--dark-card);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-section h3 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--primary);
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-links a:hover {
            color: var(--primary);
            transform: translateX(5px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
        }

        /* Notification */
        /* === START: CSS CORRECTION === */
        .notification {
            position: fixed;
            top: 100px;
            right: 20px;
            padding: 16px 24px;
            border-radius: 12px;
            color: white;
            font-weight: 500;
            z-index: 1001;
            transform: translateX(400px);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; /* MODIFIED */
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: var(--shadow-lg);
            opacity: 0; /* ADDED */
            pointer-events: none; /* ADDED */
        }

        .notification.show {
            transform: translateX(0);
            opacity: 1; /* ADDED */
            pointer-events: auto; /* ADDED */
        }
        /* === END: CSS CORRECTION === */

        .notification.success {
            background: var(--success);
        }

        .notification.error {
            background: var(--error);
        }

        .notification.warning {
            background: var(--warning);
        }

        /* Loader */
        .loader {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border-light);
            border-top: 3px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

        body.dark .loader {
            border-color: var(--border-dark);
            border-top-color: var(--primary);
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-menu {
                position: fixed;
                top: var(--navbar-height);
                left: -100%;
                width: 100%;
                height: calc(100vh - var(--navbar-height));
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                justify-content: flex-start;
                padding: 40px 20px;
                transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }

            body.dark .nav-menu {
                background: rgba(15, 23, 42, 0.98);
            }

            .nav-menu.active {
                left: 0;
            }

            .nav-toggle {
                display: block;
            }

            .generator-section {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .hero-stats {
                flex-direction: column;
                gap: 20px;
            }

            .newsletter-form {
                flex-direction: column;
            }

            .btn-group {
                flex-direction: column;
            }

            .qr-actions {
                grid-template-columns: 1fr;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .main-container {
                padding: 30px 15px;
            }

            .form-panel, .preview-panel {
                padding: 20px;
            }

            .hero {
                padding: 60px 15px 40px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .notification {
                right: 10px;
                left: 10px;
                transform: translateY(-100px);
            }

            .notification.show {
                transform: translateY(0);
            }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-light);
        }

        body.dark ::-webkit-scrollbar-track {
            background: var(--dark-bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Loading Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .fade-in {
            animation: fadeIn 0.6s ease-out;
        }

        /* Tooltip */
        .tooltip {
            position: relative;
            cursor: help;
        }

        .tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            padding: 8px 12px;
            background: var(--text-light);
            color: white;
            font-size: 0.8rem;
            border-radius: 6px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
            z-index: 1000;
        }

        body.dark .tooltip::after {
            background: var(--dark-text);
            color: var(--dark-bg);
        }

        .tooltip:hover::after {
            opacity: 1;
        }



        /* Change theme toggle button style in dark mode */
body.dark .theme-toggle {
    color: #ffffff; /* Sets the button background to white */

    border: 2px solid var(--dark-border); /* Optional: Adds a subtle border */
}

/* Change the icon color to be visible on the white background */
body.dark .theme-toggle i {
    color: var(--dark-bg); /* Sets icon color to the dark background color */
}
