/* ============================================
   G2T ADMIN — STYLES MODERNES
   ============================================ */



/* --- Correction du scroll horizontal --- */
.business-page {
    overflow-x: hidden;
    max-width: 100vw;
}

.business-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.business-sidebar::-webkit-scrollbar {
    width: 4px;
}

.business-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.business-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.business-main {
    max-width: 100%;
    overflow-x: hidden;
}

.business-main > * {
    max-width: 100%;
}


.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.admin-search {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-search input {
    padding: 10px 16px;
    border: 1.5px solid #dfe6ef;
    border-radius: 10px;
    font-size: 14px;
    min-width: 250px;
    transition: border-color 0.2s;
}

.admin-search input:focus {
    border-color: #0057b8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,87,184,0.08);
}

.admin-search button {
    padding: 10px 20px;
    background: #003580;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-search button:hover {
    background: #0057b8;
}

/* Tableau des demandes */
.admin-table-wrapper {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,33,71,0.04);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 1px solid #eef2f6;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.admin-table .status-pending {
    background: #fef3d7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.admin-table .status-confirmed {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.admin-table .status-failed {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-actions .btn-confirm {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-actions .btn-confirm:hover {
    background: #059669;
}

.admin-actions .btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal de confirmation */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.admin-modal.active {
    display: flex;
}

.admin-modal-content {
    background: #fff;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,20,40,0.2);
}

.admin-modal-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.admin-modal-content .info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.admin-modal-content .info-row .label {
    color: #64748b;
    font-weight: 500;
}

.admin-modal-content .info-row .value {
    font-weight: 600;
    color: #0f172a;
}

.admin-modal-content .form-group {
    margin-top: 20px;
}

.admin-modal-content .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #0f172a;
}

.admin-modal-content .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dfe6ef;
    border-radius: 10px;
    font-size: 15px;
}

.admin-modal-content .form-group input:focus {
    border-color: #0057b8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,87,184,0.08);
}

.admin-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.admin-modal-actions .btn-cancel {
    padding: 10px 24px;
    border: 1.5px solid #dfe6ef;
    border-radius: 10px;
    background: #ff3636;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-modal-actions .btn-cancel:hover {
    background: #f99191;
}

.admin-modal-actions .btn-confirm-final {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background: #003580;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-modal-actions .btn-confirm-final:hover {
    background: #0057b8;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-search {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-search input {
        min-width: auto;
        width: 100%;
    }
    .admin-table-wrapper {
        overflow-x: auto;
    }
    .admin-table {
        min-width: 700px;
        font-size: 13px;
    }
    .admin-table th, .admin-table td {
        padding: 10px 12px;
    }
}

/* ============================================
   ADMIN BALANCES — STYLES SPÉCIFIQUES
   ============================================ */

/* Badge de statut KYB */
.kyb-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.kyb-badge.verified {
    background: #d1fae5;
    color: #065f46;
}

.kyb-badge.pending {
    background: #fef3d7;
    color: #92400e;
}

.kyb-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Montant positif/négatif */
.amount-positive {
    color: #10b981;
}

.amount-negative {
    color: #e14e52;
}

/* Modal en 3 étapes - Wizard */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-step .step-indicator {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.wizard-step .step-indicator .step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wizard-step .step-indicator .step-dot .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #dfe6ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s;
}

.wizard-step .step-indicator .step-dot.active .circle {
    border-color: #003580;
    background: #003580;
    color: #fff;
}

.wizard-step .step-indicator .step-dot.done .circle {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
}

.wizard-step .step-indicator .step-dot .label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.wizard-step .step-indicator .step-dot.active .label {
    color: #003580;
}

.wizard-step .step-indicator .step-dot.done .label {
    color: #10b981;
}

.wizard-step .wizard-content {
    padding: 8px 0;
}

.wizard-step .wizard-content .info-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid #eef2f6;
}

.wizard-step .wizard-content .info-box .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.wizard-step .wizard-content .info-box .row:last-child {
    border-bottom: none;
}

.wizard-step .wizard-content .info-box .row .label {
    color: #64748b;
    font-weight: 500;
}

.wizard-step .wizard-content .info-box .row .value {
    font-weight: 600;
    color: #0f172a;
}

.wizard-step .wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.wizard-step .wizard-actions .btn-prev {
    background: transparent;
    border: 1.5px solid #dfe6ef;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.wizard-step .wizard-actions .btn-prev:hover {
    background: #f1f5f9;
}

.wizard-step .wizard-actions .btn-next {
    background: #003580;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.wizard-step .wizard-actions .btn-next:hover {
    background: #0057b8;
}

.wizard-step .wizard-actions .btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alerte de validation */
.alert-warning {
    background: #fef3d7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    margin: 12px 0;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #f87171;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    margin: 12px 0;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    margin: 12px 0;
}

/* ============================================
   ANIMATIONS BOUTONS ADMIN
   ============================================ */

/* --- Bouton Valider --- */
.btn-confirm {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.btn-confirm:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-confirm:active {
    transform: scale(0.95) translateY(0);
}

.btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Effet de ripple au clic */
.btn-confirm::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-confirm:active::after {
    width: 200px;
    height: 200px;
}

/* --- Bouton Supprimer --- */
.btn-delete {
    background: #e14e52;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(225, 78, 82, 0.35);
}

.btn-delete:active {
    transform: scale(0.95) translateY(0);
}

.btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-delete::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-delete:active::after {
    width: 200px;
    height: 200px;
}

/* --- Spinner de chargement --- */
.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Animation d'apparition des boutons --- */
.admin-actions .btn-confirm,
.admin-actions .btn-delete {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.admin-actions .btn-confirm {
    animation-delay: 0.05s;
}

.admin-actions .btn-delete {
    animation-delay: 0.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Animation de confirmation (flash vert) --- */
.btn-confirm-flash {
    animation: flashGreen 0.6s ease;
}

@keyframes flashGreen {
    0% { background: #10b981; }
    30% { background: #34d399; transform: scale(1.05); }
    70% { background: #10b981; }
    100% { background: #059669; }
}

/* --- Animation de suppression (flash rouge) --- */
.btn-delete-flash {
    animation: flashRed 0.6s ease;
}

@keyframes flashRed {
    0% { background: #e14e52; }
    30% { background: #f87171; transform: scale(1.05); }
    70% { background: #e14e52; }
    100% { background: #c0392b; }
}

/* --- Effet de pulse sur les boutons importants --- */
.btn-confirm,
.btn-delete {
    animation: fadeInUp 0.3s ease forwards;
}

/* Hover avec dégradé subtil */
.btn-confirm:hover {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #e14e52, #c0392b);
}

/* ============================================
   ANIMATION MODAL
   ============================================ */

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-modal.active .admin-modal-content {
    animation: modalSlideIn 0.3s ease forwards;
}