* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 95%;
    max-width: 800px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 30px;
}

.input-section {
    margin-bottom: 30px;
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.type-btn {
    padding: 10px;
    border: 2px solid #1e3c72;
    background: transparent;
    color: #1e3c72;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-btn.active {
    background: #1e3c72;
    color: white;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group.hidden {
    display: none;
}

input, textarea, select {
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #1e3c72;
    outline: none;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.qr-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-weight: 500;
    color: #444;
}

input[type="range"] {
    width: 100%;
}

input[type="color"] {
    height: 40px;
    padding: 2px;
}

#generate-btn {
    width: 100%;
    padding: 15px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#generate-btn:hover {
    background: #2a5298;
}

.qr-result {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-result.hidden {
    display: none;
}

#qrcode {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons button {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #1e3c72;
    color: #1e3c72;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-buttons button:hover {
    background: #1e3c72;
    color: white;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .type-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .qr-options {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-buttons button {
        width: 100%;
    }
}