.qr_container * {
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.qr_container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.qr-card {
    max-width: 620px;
    width: 100%;
    background: white;
    border-radius: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background-color: #e7e7e9;
}

.header {
    background: linear-gradient(135deg, #3d7af2, #0553ef);
    padding: 20px 30px;
    color: white;
    text-align: center;
}

.header h1 {
    font-weight: 600;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header p {
    margin-top: 8px;
    opacity: 0.85;
    font-size: 0.9rem;
}

.content {
    padding: 20px 28px 32px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.input-group label i {
    color: #3b82f6;
}

textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    resize: vertical;
    font-family: inherit;
    outline: none;
    transition: 0.2s;
}

textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.options {
    padding: 10px 20px;
    border-radius: 32px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3d7af2, #0553ef);
}

.opt-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.opt-item span {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.85rem;
}

input[type="number"] {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    width: 75px;
    text-align: center;
}

input[type="color"] {
    width: 48px;
    height: 42px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    background: white;
    padding: 3px;
}

.qr-display {
    background: white;
    border-radius: 32px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.qr-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

#qrcode canvas {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.info-message {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 12px;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 40px;
    color: #475569;
}

.info-message.error {
    background: #fee2e2;
    color: #dc2626;
}

.info-message.success {
    background: #dcfce7;
    color: #16a34a;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn {
    border: none;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f1f5f9;
    color: #1e293b;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: white;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.btn:active {
    transform: translateY(1px);
}

@media (max-width: 540px) {
    .content {
        padding: 20px;
    }
    .options {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        justify-content: center;
        flex: 1;
    }
}