.badge-gen-flex {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    color: #333;
}

.badge-gen-form-side {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.badge-gen-preview-side {
    flex: 1;
}

.badge-gen-field {
    margin-bottom: 20px;
}

.badge-gen-field label {
    display: block;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 8px;
    color: #666;
}

/* Edition Options Styling */
.badge-edition-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edition-option {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.edition-option:hover {
    background: #f8f9fa;
}

.edition-option.active {
    background: #f0f7ff;
    border-color: #0056b3;
}

.edition-info {
    display: flex;
    flex-direction: column;
}

.edition-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.edition-sub {
    font-size: 11px;
    color: #888;
    font-weight: normal !important;
}

.edition-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
}

.edition-option.active .radio-custom {
    border-color: #0056b3;
}

.edition-option.active .radio-custom::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #0056b3;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.badge-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.upload-box {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    color: #666;
}

.field-hint {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.badge-btn-primary {
    width: 100%;
    background: #0056b3;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 16px;
}

.badge-btn-secondary {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

#badge-preview-wrapper {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#badge-svg {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.badge-gen-disclaimer {
    font-size: 11px;
    color: #888;
    margin-top: 15px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .badge-gen-flex {
        flex-direction: column;
    }
}
