     /* CSS Variables for consistent theming */
        :root {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --bg-tertiary: #252525;
            --text-primary: #e0e0e0;
            --text-secondary: #a0a0a0;
            --accent: #64b5f6;
            --accent-green: #4caf50;
            --accent-red: #f44336;
            --border: #404040;
            --shadow: rgba(0, 0, 0, 0.5);
            --line-numbers: #666;
            --white: #ffffff;
            --gray: #a0a0a0;
            --black: #000000;
            --blue: #2196f3;
            --green: #4caf50;
            --red: #f44336;
        }

        .light-mode {
            --bg-primary: #f5f5f5;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f0f0f0;
            --text-primary: #333333;
            --text-secondary: #666666;
            --accent: #1976d2;
            --accent-green: #388e3c;
            --accent-red: #d32f2f;
            --border: #dddddd;
            --shadow: rgba(0, 0, 0, 0.1);
            --line-numbers: #aaaaaa;
        }

        /* Base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto Mono', monospace;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 1rem;
            transition: all 0.3s ease;
        }

        /* Header styles */
        header {
            text-align: center;
            margin-bottom: 2rem;
            padding: 1rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-content {
            flex: 1;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            color: var(--accent);
            font-weight: 700;
        }

        .subtitle {
            color: var(--text-secondary);
            font-size: 1rem;
        }

        /* Theme toggle */
        .theme-toggle {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            background-color: var(--bg-tertiary);
        }

        /* Main container */
        .container {
            max-width: 900px;
            margin: 0 auto;
            width: 100%;
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        /* Input and display areas */
        .input-area, .display-area {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 4px 12px var(--shadow);
            transition: all 0.3s ease;
        }

        .input-area:focus-within, .display-area:hover {
            box-shadow: 0 6px 16px var(--shadow);
        }

        .input-label, .display-label {
            display: block;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Textarea styling with line numbers */
        .input-wrapper {
            position: relative;
            display: flex;
            border: 1px solid var(--border);
            border-radius: 4px;
            overflow: hidden;
            background-color: var(--bg-tertiary);
        }

        .line-numbers {
            background-color: var(--bg-tertiary);
            color: var(--line-numbers);
            padding: 1rem 0.5rem;
            text-align: right;
            min-width: 50px;
            user-select: none;
            line-height: 1.5;
            font-size: 0.9rem;
            border-right: 1px solid var(--border);
        }

        #text-input {
            flex: 1;
            min-height: 200px;
            background-color: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 1rem;
            padding: 1rem;
            resize: vertical;
            outline: none;
            line-height: 1.5;
        }

        /* Display area styling with line numbers */
        .display-wrapper {
            position: relative;
            display: flex;
            border: 1px solid var(--border);
            border-radius: 4px;
            overflow: hidden;
            background-color: var(--bg-tertiary);
            min-height: 200px;
            max-height: 400px;
            overflow-y: auto;
        }

        .display-line-numbers {
            background-color: var(--bg-tertiary);
            color: var(--line-numbers);
            padding: 1rem 0.5rem;
            text-align: right;
            min-width: 50px;
            user-select: none;
            line-height: 1.5;
            font-size: 0.9rem;
            border-right: 1px solid var(--border);
        }

        #live-display {
            flex: 1;
            padding: 1rem;
            white-space: pre-wrap;
            word-wrap: break-word;
            line-height: 1.5;
            position: relative;
        }

        /* Cursor animation */
        .cursor {
            display: inline-block;
            width: 2px;
            height: 1.2rem;
            background-color: var(--accent);
            margin-left: 2px;
            animation: blink 1s infinite;
            vertical-align: middle;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* Character animation */
        .char {
            opacity: 0;
            animation: fadeIn 0.1s forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(2px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Stats and controls */
        .stats-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }

        .stats {
            display: flex;
            gap: 1.5rem;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent);
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Action buttons */
        .action-buttons {
            display: flex;
            gap: 0.5rem;
        }

        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 0.7rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .action-btn:hover {
            background-color: var(--accent);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px var(--shadow);
        }

        .action-btn.copy:hover {
            background-color: var(--green);
        }

        .action-btn.download:hover {
            background-color: var(--blue);
        }

        .action-btn.reset:hover {
            background-color: var(--red);
        }

        .action-btn:active {
            transform: translateY(0);
        }

        /* Footer */
        footer {
            margin-top: auto;
            text-align: center;
            padding: 1.5rem;
            color: var(--text-secondary);
            font-size: 0.8rem;
        }

        /* Toast notification */
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: var(--green);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 4px;
            box-shadow: 0 4px 12px var(--shadow);
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .container {
                gap: 1.5rem;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .input-area, .display-area {
                padding: 1rem;
            }
            
            .stats-controls {
                flex-direction: column;
                align-items: stretch;
            }
            
            .stats {
                justify-content: space-around;
            }
            
            .action-buttons {
                width: 100%;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0.5rem;
            }
            
            h1 {
                font-size: 1.7rem;
            }
            
            .stat-value {
                font-size: 1.2rem;
            }
            
            .line-numbers, .display-line-numbers {
                min-width: 40px;
                font-size: 0.8rem;
            }
            
            .action-buttons {
                flex-direction: column;
            }
        }