        /* CSS Variables for Theming */
        :root {
            --bg-color: #f4f7f9;
            --container-bg: #ffffff;
            --text-color: #333;
            --heading-color: #0056b3;
            --primary-color: #007bff;
            --border-color: #e3e3e3;
            --answer-bg: #e9ecef;
            --answer-text: #495057;
            --shadow-color: rgba(0,0,0,0.1);
            --code-bg: #f9f2f4;
            --code-color: #c7254e;
        }

        body.dark-mode {
            --bg-color: #121212;
            --container-bg: #1e1e1e;
            --text-color: #e0e0e0;
            --heading-color: #64b5f6;
            --primary-color: #42a5f5;
            --border-color: #424242;
            --answer-bg: #2c2c2c;
            --answer-text: #bdbdbd;
            --shadow-color: rgba(255,255,255,0.05);
            --code-bg: #3e2723;
            --code-color: #ffccbc;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            margin: 0;
            padding: 20px;
            transition: background-color 0.3s, color 0.3s;
        }

        .container {
            max-width: 900px;
            margin: auto;
            background: var(--container-bg);
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 4px 12px var(--shadow-color);
            transition: background-color 0.3s;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        h1 {
            color: var(--heading-color);
            margin: 0;
            font-size: 1.8em;
        }

        h2 {
            text-align: center;
            color: var(--heading-color);
        }

        .input-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            padding: 20px;
            background-color: var(--answer-bg);
            border-radius: 8px;
            margin-bottom: 25px;
        }
        
        .input-group { display: flex; flex-direction: column; }
        .input-group label { margin-bottom: 5px; font-weight: bold; }
        .input-group input {
            padding: 8px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            background-color: var(--container-bg);
            color: var(--text-color);
        }

        #analyzeBtn {
            grid-column: 1 / -1; /* Span full width */
            padding: 12px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: bold;
            transition: background-color 0.2s;
        }
        #analyzeBtn:hover { background-color: var(--heading-color); }
        #error-message { color: #f44336; text-align: center; grid-column: 1 / -1; margin-top: 10px; }


        .task-item, details {
            background-color: var(--container-bg);
            border: 1px solid var(--border-color);
            border-left: 5px solid var(--primary-color);
            padding: 15px;
            margin-bottom: 15px;
            border-radius: 5px;
        }

        details > summary {
            cursor: pointer;
            font-weight: bold;
            color: var(--heading-color);
            list-style: none; /* Remove default marker */
        }
        details > summary::-webkit-details-marker { display: none; } /* For Chrome */
        details > summary::before {
            content: '►';
            margin-right: 10px;
            display: inline-block;
            transition: transform 0.2s;
        }
        details[open] > summary::before {
            transform: rotate(90deg);
        }
        
        h3 { margin-top: 0; color: var(--heading-color); display: inline; }
        .task-item h3 { display: block; }
        
        .answer-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-top: 10px;
        }

        .answer {
            flex-grow: 1;
            font-family: 'Courier New', Courier, monospace;
            background-color: var(--answer-bg);
            padding: 10px;
            border-radius: 4px;
            white-space: pre-wrap;
            word-wrap: break-word;
            color: var(--answer-text);
            max-height: 250px;
            overflow-y: auto;
        }
        
        .copy-btn {
            padding: 5px 10px;
            background-color: #6c757d;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9em;
            transition: background-color 0.2s;
        }
        .copy-btn:hover { background-color: #5a6268; }

        code {
            font-weight: bold;
            color: var(--code-color);
            background-color: var(--code-bg);
            padding: 2px 4px;
            border-radius: 4px;
        }
        
        /* Dark Mode Toggle Switch */
        .theme-switch-wrapper { display: flex; align-items: center; }
        .theme-switch { display: inline-block; height: 24px; position: relative; width: 48px; }
        .theme-switch input { display:none; }
        .slider { background-color: #ccc; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; }
        .slider:before { background-color: #fff; bottom: 4px; content: ""; height: 16px; left: 4px; position: absolute; transition: .4s; width: 16px; }
        input:checked + .slider { background-color: var(--primary-color); }
        input:checked + .slider:before { transform: translateX(24px); }
        .slider.round { border-radius: 34px; }
        .slider.round:before { border-radius: 50%; }