body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: center;
    padding: 2rem;
}

h1 {
    color: #4a0e4e;
    text-align: center;
}

h3 {
    color: #4a0e4e;
    text-align: left;
    display: block;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    width: 100%;
}
.name-fields {
    display: flex;
    gap: 10px;
    width: 95%;
}

.name-fields input {
    flex: 1;
    width: 100%; /* Ensures inputs take equal space */
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"] {
    width: 95%;
    padding: 0.5rem;
    background-color: #fcfcfc;
    color: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
}

textarea {
    width: 95%;
    height: 150px;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #fcfcfc;
    color: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    resize: vertical;
}

.url-group {
    width: 95%;
    display: flex;
    align-items: left;
    margin-bottom: 10px;
}

.url-group input[type="url"] {
    flex-grow: 1;
    margin-bottom: 0;
    margin-right: 10px;
}

.url-btn {
    background-color: #4a0e4e;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.info-content,
.debug-content {
    background-color: #e9e9e9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
}

.toggle-btn {
    background: none;
    border: none;
    color: #4a0e4e;
    cursor: pointer;
    font-size: 1em;
    padding: 5px 0;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.info-header h3 {
    margin: 0;
}


.close-btn {
    background: none;
    border: none;
    color: #4a0e4e;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
}

.button-group button {
    background-color: #4a0e4e;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    min-width: 120px;
    margin: 0;
}

.button-group button:hover:not(:disabled) {
    background-color: #4a0e4e;
}

.button-group button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

.toggle-btn {
    background: none;
    border: none;
    color: #4a0e4e;
    cursor: pointer;
    font-size: 1em;
    padding: 5px 0;
    text-align: left;
    width: 100%;
}

.toggle-btn:hover {
    text-decoration: underline;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.qr-container #qrcode {
    text-align: center;
    margin-top: 20px;
    padding: 1rem;
    height: auto;
    display: flex;
}

.qr-container #qrcode canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
}

.header-logo {
    height: 3rem;
    width: 3rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.color-content {
    background-color: #e9e9e9;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
    width: 100%;
    font-size: 0.85rem;
}

.color-schemes {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.35rem;
    flex-wrap: wrap;
}

.color-scheme {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex: 1;
    min-width: 110px;
}

.color-scheme:hover {
    background-color: #f0f0f0;
}

.color-scheme.active {
    background-color: #f0f0f0;
    outline: 2px solid #4a0e4e;
}

.color-preview {
    display: flex;
    align-items: center;
}

.color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
