body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.input-group {
    margin-bottom: 1rem;
}

input[type="text"], select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
}

button:hover {
    background-color: #0056b3;
}

.barcode-container {
    margin-top: 1rem;
    min-height: 100px;
}

nav {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}


.template-section {
    margin-bottom: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.template-links a {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.template-links a:hover {
    background-color: #0056b3;
}

:root {
    --primary-color: #007bff; /* A nice blue, change to your brand color */
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --border-color: #dee2e6;
}

body {
    background-color: var(--light-gray);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#qr-generator-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

#qr-generator-container h2 {
    color: var(--dark-gray);
    margin-top: 0;
    margin-bottom: 20px;
}

#qr-text-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
}

.qr-button {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.qr-button:hover {
    background-color: #0056b3;
}

#download-btn {
    background-color: #28a745;
    margin-left: 10px;
}

#download-btn:hover {
    background-color: #218838;
}

#qrcode-container {
    margin-top: 25px;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    min-height: 256px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
}

#qrcode-container img {
    max-width: 100%;
}

#qrcode-placeholder {
    color: #6c757d;
}

.hidden {
    display: none;
}