.rbg-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    font-family: system-ui, sans-serif;
}

.rbg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.rbg-wrapper label {
    font-size: 14px;
}

.rbg-wrapper input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.rbg-format {
    width: 100%;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0;
    height: 40px;
}

#rbg-generate,
#rbg-generate-random {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

#rbg-generate {
    background: linear-gradient(135deg, #5f2cff, #3a7bd5);
    color: #fff;
}

.rbg-secondary {
    background: #f1f1f1;
}

.rbg-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.rbg-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #ededed;
    cursor: pointer;
}

/* Click animation for ALL buttons */
.rbg-animate-btn,
#rbg-generate,
#rbg-generate-random {
    transition: transform .15s ease, background .15s ease;
}

.rbg-clicked {
    transform: scale(0.94);
    background: #dcdcdc !important;
}

#rbg-output {
    margin-top: 15px;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    font-size: 14px;
}
