.bnq-admin-wrapper {
    padding: 30px;
}

.bnq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.bnq-header h1 {
    font-size: 26px;
    font-weight: 600;
}

.bnq-btn-primary {
    background: #4f46e5;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.bnq-btn-primary:hover {
    background: #4338ca;
    color: white;
}

.bnq-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.bnq-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.bnq-card:hover {
    transform: translateY(-2px);
}

.bnq-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bnq-context {
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.bnq-shortcode {
    background: #f3f4f6;
    padding: 8px;
    margin: 15px 0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
}

.bnq-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.bnq-actions {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.bnq-actions a {
    text-decoration: none;
    color: #4f46e5;
    font-weight: 500;
}

.bnq-delete {
    color: #dc2626 !important;
}

.bnq-empty {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.bnq-builder-wrapper {
    padding: 30px;
}

.bnq-builder-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bnq-builder-header input {
    width: 60%;
    padding: 10px;
    font-size: 16px;
}

.bnq-builder {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 20px;
}

.bnq-builder-sidebar button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #eef2ff;
    cursor: pointer;
}

.bnq-builder-canvas {
    background: white;
    padding: 20px;
    border-radius: 12px;
    min-height: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.bnq-field-block {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fafafa;
}
.bnq-builder-actions {
    display: flex;
    gap: 12px;
}

.bnq-btn-secondary {
    background: #e5e7eb;
    color: #111;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.bnq-btn-secondary:hover {
    background: #d1d5db;
}
.bnq-options {
    margin-top: 10px;
}

.bnq-option-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.bnq-option-input {
    flex: 1;
}

.bnq-remove-option {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.bnq-file-settings {
    margin-top: 10px;
}
.bnq-html-settings textarea {
    width: 100%;
    min-height: 100px;
    margin-top: 10px;
}
/* Bloc principal */
.bnq-field-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
}


/* Bloc principal */
.bnq-field-block {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e5eaf2;
}

/* BARRE DE TITRE - BLEU DOUX */
.bnq-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #4f7df3; /* bleu plus doux */
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* Type */
.bnq-field-type {
    letter-spacing: 0.3px;
}

/* Bouton supprimer */
.bnq-remove-field {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bnq-remove-field:hover {
    background: rgba(255,255,255,0.35);
}

/* Contenu */
.bnq-field-body {
    padding: 18px;
}
background: linear-gradient(135deg, #5b8df7, #4f7df3);

.bnq-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    color: #1f2937;
}

.bnq-form-title-wrapper input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.bnq-builder-settings-bottom {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.bnq-builder-settings-bottom textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-bottom: 10px;
}
.bnq-builder {
    display: grid;
    grid-template-columns: 240px 1fr 350px;
    gap: 25px;
}

.bnq-builder-preview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

#bnq-preview-content {
    font-size: 14px;
    color: #6b7280;
}