/* Mise en forme globale des formulaires d'administration */

body.skin-dark {
    background-color: #050608;
    color: #f5f7fb;
    --bs-body-color: #f5f7fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.content-body {
    padding: 30px;
}

.content-body .card-form,
.content-body .form-wrapper {
    background: #141620;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.content-body h1,
.content-body h2,
.content-body h3 {
    color: #ffffff;
    font-weight: 600;
}

form .form-group,
form div.form-group,
form > div > div.form-group {
    margin-bottom: 16px;
}

form label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #d7d9e2;
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="url"],
form input[type="password"],
form select,
form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #30354a;
    background-color: #050608;
    color: #f5f7fb;
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form input[type="email"]:focus,
form input[type="url"]:focus,
form input[type="password"]:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.6);
}

form small,
form .form-text {
    color: #9ca3af;
}

.btn,
button.btn {
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
}

.btn-secondary,
button.btn-secondary {
    background: #374151;
    color: #e5e7eb;
}

.btn-danger,
button.btn-danger {
    background: #b91c1c;
    color: #fee2e2;
}

.btn:hover,
button.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.btn:active,
button.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* Tableaux d'administration */

.content-body .table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 1.5rem;
    background-color: #050608;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.content-body .table thead {
    background: radial-gradient(circle at top left, #4f46e5, #111827 55%);
}

.content-body .table thead th {
    border-bottom: none;
    padding: 0.9rem 0.95rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #e5e7eb;
    white-space: nowrap;
}

.content-body .table tbody tr {
    background-color: #050608;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.content-body .table tbody tr:hover {
    background-color: #101320;
    transform: translateY(-1px);
}

.content-body .table td {
    border-top: 1px solid #1f2937;
    padding: 0.75rem 0.95rem;
    font-size: 0.88rem;
    color: #d1d5db;
}

.content-body .table td:first-child,
.content-body .table th:first-child {
    padding-left: 1.25rem;
}

.content-body .table td:last-child,
.content-body .table th:last-child {
    padding-right: 1.25rem;
}

.content-body .table .text-end {
    white-space: nowrap;
}

.content-body .table .persona-attach-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.content-body .table .persona-attach-wrapper .form-select {
    min-width: 230px;
}

.content-body .table .persona-telephone {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: #a5b4fc;
}

/* Override des bordures de tableaux du thème */

body.skin-dark .table tbody tr th,
body.skin-dark .table tbody tr td,
body.skin-dark .table tfoot tr th,
body.skin-dark .table tfoot tr td {
    border-color: #30354a; /* même teinte que les champs de formulaire, bien visible sur #050608 */
}

/* Bloc paramètres de scénario */

#scenario-parameters {
    margin: 10px 0 20px 0;
}

.scenario-parameter-item {
    border: 1px solid #272b3c;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background-color: #10121c;
}

.scenario-parameter-item .btn-danger {
    margin-top: 8px;
}

/* Wizard de campagne */

.campaign-wizard {
    background: #141620;
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
    max-width: 980px;
    margin: 0 auto 40px auto;
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.wizard-step-btn {
    background: #111827;
    color: #d1d5db;
    border-radius: 999px;
    border: 1px solid #374151;
    padding: 6px 14px;
    font-size: 0.85rem;
}

.wizard-step-btn.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border-color: transparent;
}

.wizard-step {
    border-top: 1px solid #272b3c;
    padding-top: 16px;
    margin-top: 6px;
}

.wizard-targeting h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

