.option-group {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.color-picker-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

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

input[type="color"] {
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
}

.range-slider {
    width: 100%;
    margin-top: 10px;
}

.qr-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

#qrcode {
    border: 1px solid #e2e8f0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 250px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#qrcode img,
#qrcode canvas {
    max-width: 100%;
    height: auto;
}

.download-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
}

.action-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #f0f9ff;
}

.action-btn.primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.action-btn.primary:hover {
    background: var(--primary-hover);
}

.logo-upload-box {
    border: 2px dashed var(--border-color);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}

.logo-upload-box:hover {
    border-color: var(--primary-blue);
    background: #f0f9ff;
}

.type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding-bottom: 0;
}

.type-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    font-weight: 500;
    flex: 1 1 auto;
    justify-content: center;
}

.type-btn:hover {
    background: #e2e8f0;
}

.type-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 6px rgba(18, 119, 173, 0.2);
}

.type-btn.link-btn {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.type-btn.link-btn:hover {
    background: #fce7f3;
}

@media (max-width: 768px) {
    .type-selector {
        gap: 8px;
    }

    .type-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .type-btn span {
        display: inline-block;
    }
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.template-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.template-item:hover {
    border-color: var(--primary-blue);
    background: #f0f9ff;
    transform: translateY(-2px);
}

.template-item.active {
    border-color: var(--primary-blue);
    background: #eff6ff;
    color: var(--primary-blue);
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.template-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #94a3b8;
}

.template-item.active i {
    color: var(--primary-blue);
}
