/* ==================== BIPBIP - Compléments au design Tailwind ==================== */
:root {
    --accent-warning: #fbbf24;
}

/* Écrans : un seul visible à la fois */
.screen {
    display: none;
    animation: slideIn 0.3s ease;
}
.screen.active {
    display: block;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Toast */
.toast.show {
    transform: translate(-50%, 0) !important;
    opacity: 1;
}
.toast.success {
    background: rgb(16 185 129) !important;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.toast.error {
    background: rgb(239 68 68) !important;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Résumé commande (écran téléphone) */
.order-summary p {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
    color: #e2e8f0;
}
.order-summary p:last-child {
    border-bottom: none;
    font-weight: 700;
    color: #34d399;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed rgba(52, 211, 153, 0.4);
}

/* Confirmation - lignes détail */
.confirmation-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    align-items: center;
}
.confirmation-card .detail-row:last-child {
    border-bottom: none;
}
.confirmation-card .detail-label {
    color: #cbd5e1;
    font-size: 14px;
}
.confirmation-card .detail-value {
    font-weight: 600;
    color: #f8fafc;
    font-size: 14px;
}
.confirmation-card .total-row {
    margin: 16px -24px -24px;
    padding: 16px 24px;
    background: rgba(52, 211, 153, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 0 0 12px 12px;
}
.confirmation-card .total-row .detail-label,
.confirmation-card .total-row .detail-value {
    color: #fff;
}
.confirmation-card .total-row .detail-value {
    font-size: 18px;
}

/* Opérateur sélectionné (injecté par JS) */
#selected-operator-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Indices champ téléphone */
.input-hint.success {
    color: #34d399;
    font-weight: 600;
}
.input-hint.error {
    color: #f87171;
}

/* Cartes commandes (liste) */
.order-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}
.order-card:hover {
    background: rgba(255,255,255,0.12);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.order-id {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 15px;
}
.order-status {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}
.order-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}
.order-status.validated {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}
.order-details p {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 4px;
}

/* Admin */
.admin-tabs .tab-btn.active {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
}
.admin-order-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 16px;
}
.admin-order-card .proof-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 12px 0;
    border: 1px solid rgba(255,255,255,0.15);
}
.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.btn-validate {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-validate:hover {
    background: rgba(52, 211, 153, 0.3);
}
.btn-reject {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-reject:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Order status info (succès) */
.order-status-info p {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
    color: #e2e8f0;
}
.order-status-info p:last-child {
    border-bottom: none;
}
