* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    width: 100%;
    flex: 1;
}

#title {
    color: #D9116B;
    font-size: xx-large;
}

/* Tab Styles */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin: 0;
    width: '100%';
    display: inline-block;
    border-radius: 0;
}

.tab-button:hover {
    color: #D9116B;
    opacity: 1;
}

.tab-button.active {
    color: #D9116B;
    border-color: #D9116B;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-section {
    width: 50%;
    padding: 40px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
}

.form-section h2,
.form-section h3 {
    text-align: center;
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

select,
input,
button {
    display: block;
    width: 100%;
    margin: 10px 0 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: #D9116B;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* Loader styles */
.button-loader {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button-loader::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes button-loading-spinner {
    from {
        transform: translate(-50%, -50%) rotate(0turn);
    }
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

.advanced-btn {
    background: none;
    border: none;
    color: gray;
    text-align: left;
    padding: 0;
    margin-top: 10px;
    cursor: pointer;
}

.advanced-btn:hover {
    color: #D9116B
}

.advanced-container {
    display: none;
}

#posIdContainer {
    display: none;
}

.qr-section {
    width: 50%;
    background-color: #D9116B;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: auto;
}

#qrCodeContainer,
#responseContainer {
    display: none;
    width: 100%;
}

#qrCode {
    margin-top: 20px;
    max-width: 300px;
    height: auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

pre {
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 630px) {
    body {
        height: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
    }

    .form-section,
    .qr-section {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .qr-section {
        border-top: 4px solid #fff;
    }
}