body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container, .qr-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

h1 {
    color: #333;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #4CAF50;
}

button {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

.message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.error {
    color: #f44336;
    background: #ffebee;
}

.success {
    color: #4CAF50;
    background: #e8f5e9;
}

.qr-container img {
    max-width: 300px;
    height: auto;
    margin: 20px 0;
}

.url-box {
    margin-top: 20px;
    padding: 10px 20px;
    background: #e3f2fd;
    border-radius: 5px;
    color: #1976d2;
    word-break: break-all;
    font-size: 14px;
}

.stats {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

[hidden] {
    display: none !important;
}
