:root {
    --primary-blue: #0d6efd; /* Your website's main blue */
    --success-green: #198754;
    --danger-red: #dc3545;
    --gray: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1000px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
}

.title {
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
}

.input-group { margin-bottom: 20px; }

textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
}

.row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.col { flex: 1; }

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

select, input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

small { color: #888; font-size: 11px; }

.color-pickers {
    display: flex;
    gap: 10px;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; }
.btn-blue { background-color: var(--primary-blue); }
.btn-green { background-color: var(--success-green); }
.btn-red { background-color: var(--danger-red); }
.btn-gray { background-color: var(--gray); }

#status-msg {
    margin-top: 10px;
    color: #888;
    font-size: 12px;
}

.preview-area {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed #ccc;
    border-radius: 12px;
    min-height: 400px;
    background: #fff;
}

#qrcode-container canvas, #qrcode-container img {
    max-width: 100%;
    height: auto !important;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary-blue);
}