body {
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 50px;
            background-color: #f4f4f4;
        }
        .main-content {
            display: flex;
            justify-content: center;
            width: 80%;
            max-width: 1200px; /* Increased max-width for side-by-side layout */
            gap: 20px;
            margin-top: 20px;
        }
        .input-section, .output-section {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            flex: 1;
        }
        .input-section {
            max-width: 400px;
        }
        .output-section {
            flex: 2;
        }
        .container {
            display: flex;
            width: 100%;
            max-width: 1200px;
            margin: 20px auto;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            overflow: hidden;
        }

        .left-panel {
            flex: 2; /* Make left panel wider */
            padding: 20px;
            border-right: 1px solid #eee;
        }

        .right-panel {
            flex: 0; /* Make right panel narrower */
            padding-left: 20px;
            display: none; /* Hide the right panel as QR codes are now in input-group */
            flex-direction: column;
            align-items: center;
        }

        .input-group {
            display: flex;
            margin-bottom: 20px;
            border: 1px solid #ddd;
            padding: 15px;
            border-radius: 8px;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            align-items: flex-start; /* Align items to the top */
        }

        .input-area {
            flex: 2; /* Input area takes 2/3 of the space within input-group */
            padding-right: 15px;
            display: flex; /* Make children horizontal */
            align-items: center; /* Vertically align children */
        }

        .input-group label {
            margin-right: 10px;
            font-weight: bold;
            width: 30px; /* Fixed width for label */
            flex-shrink: 0; /* Prevent label from shrinking */
        }

        .input-group textarea {
            flex: 1;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            min-height: 80px; /* Make input box taller */
            resize: vertical; /* Allow vertical resizing for textarea */
            margin-right: 10px; /* Add margin between textarea and delete button */
        }

        .input-area button.delete-input {
            flex-shrink: 0; /* Prevent button from shrinking */
            padding: 8px 15px;
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }

        .input-area button.delete-input:hover {
            background-color: #c82333;
        }

        .qr-code-output-area {
            flex: 1; /* QR code output area takes 1/3 of the space within input-group */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-left: 15px;
            border-left: 1px solid #eee;
        }

        .qr-code-item {
            display: flex;
            flex-direction: row; /* Change to row for side-by-side layout */
            align-items: center;
            margin-bottom: 0;
            border: none;
            padding: 0;
            background-color: transparent;
            width: auto;
            box-sizing: border-box;
        }

        .qr-code-item img {
            width: 250px;
            height: 250px;
            margin-right: 15px;
            margin-bottom: 0;
            border: 1px solid #ccc;
            padding: 5px;
            background-color: #fff;
        }

        .qr-code-details {
            display: flex;
            flex-direction: column;
            align-items: flex-start; /* Align content and download link to the start */
            justify-content: center;
            flex: 1; /* Allow details to take remaining space */
            text-align: left;
        }

        .qr-code-details p {
            margin-bottom: 5px;
            word-break: break-all;
            white-space: normal;
        }

        .qr-code-details a {
            align-self: flex-start; /* Align download link to the start */
            margin-left: 0;
            display: inline-block;
            padding: 8px 15px;
            background-color: #007bff; /* Blue background */
            color: white;
            text-decoration: none;
            border-radius: 4px;
            margin-top: 10px; /* Add some space above the button */
        }

        .qr-code-details a:hover {
            background-color: #0056b3;
        }

        .qr-code-display {
            display: none; /* Hide the old qr-code-display */
        }

        .button-container {
            margin-top: 20px;
            display: flex;
            gap: 10px;
        }

        button {
            padding: 10px 20px;
            background-color: #28a745;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }

        button:hover {
            background-color: #218838;
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
                width: 95%;
            }

            .left-panel {
                border-right: none;
                border-bottom: 1px solid #eee;
                padding-bottom: 20px;
            }

            .right-panel {
                padding-top: 0;
            }

            .input-group {
                flex-direction: column;
                align-items: stretch;
            }

            .input-area {
                padding-right: 0;
                margin-bottom: 15px;
            }

            .qr-code-output-area {
                padding-left: 0;
                border-left: none;
                border-top: 1px solid #eee;
                padding-top: 15px;
            }

            .qr-code-item {
                flex-direction: column;
                width: 100%;
            }

            .qr-code-item img {
                margin-right: 0;
                margin-bottom: 15px;
            }

            .qr-code-details {
                align-items: center;
                text-align: center;
            }

            .qr-code-details a {
                align-self: center;
            }

            .button-container {
                flex-direction: column;
                gap: 5px;
            }

            .button-container button {
                width: 100%;
            }
        }