/* ============================================
   SELLER PAGES - Design Unifié & Coloré
   Supprime le "trop blanc", ajoute chaleur
   ============================================ */

/* ============================================
   0. MONTANTS - Style unifié noir & mis en valeur
   ============================================ */

.amount {
    color: #1a1a1a !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.amount-lg {
    color: #1a1a1a !important;
    font-weight: 800;
    font-size: 1.15em;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.amount-sm {
    color: #1a1a1a !important;
    font-weight: 600;
    font-size: 0.9em;
    font-variant-numeric: tabular-nums;
}

.amount .currency,
.amount-lg .currency,
.amount-sm .currency {
    color: #78716c !important;
    font-weight: 500;
    font-size: 0.8em;
    margin-left: 3px;
}

/* Déductions (commissions, frais) restent en rouge */
.amount-deduction {
    color: #dc2626 !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   1. FOND GLOBAL - Plus chaud
   ============================================ */

.seller-main {
    background: linear-gradient(180deg, #f0ebe4 0%, #f5f0eb 30%, #f8f5f1 100%) !important;
}

/* ============================================
   2. PAGE CONTAINER - Uniformisation
   ============================================ */

.seller-main > .container-fluid,
.seller-main > .container,
.seller-main > .notifications-page {
    max-width: 1440px;
}

/* ============================================
   3. PAGE HEADER UNIFIÉ
   ============================================ */

/* Style unifié pour .page-header partout */
.seller-main .page-header {
    margin: -2rem -2rem 2rem -2rem;
    padding: 1.75rem 2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fef7f0 60%, #fff3e6 100%);
    border-bottom: none;
    position: relative;
    box-shadow: 0 2px 12px rgba(242, 122, 26, 0.06);
    border-radius: 0;
}

.seller-main .page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f27a1a 0%, #f59e0b 50%, transparent 100%);
}

.seller-main .page-header h1,
.seller-main .page-header h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.seller-main .page-header .breadcrumb,
.seller-main .page-header .breadcrumb-modern {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.seller-main .page-header .breadcrumb a,
.seller-main .page-header .breadcrumb-modern a {
    color: #f27a1a;
    text-decoration: none;
    font-weight: 500;
}

.seller-main .page-header .breadcrumb a:hover,
.seller-main .page-header .breadcrumb-modern a:hover {
    color: #e06500;
    text-decoration: underline;
}

.seller-main .page-header .breadcrumb-item.active {
    color: #94a3b8;
}

.seller-main .page-header .page-subtitle,
.seller-main .page-header .text-muted {
    color: #64748b !important;
    font-size: 0.9rem;
}

/* Boutons dans page-header */
.seller-main .page-header .btn-modern.btn-primary,
.seller-main .page-header .btn-modern-primary {
    background: linear-gradient(135deg, #f27a1a, #e06500);
    color: white;
    box-shadow: 0 3px 10px rgba(242, 122, 26, 0.3);
}

.seller-main .page-header .btn-modern.btn-primary:hover,
.seller-main .page-header .btn-modern-primary:hover {
    box-shadow: 0 6px 20px rgba(242, 122, 26, 0.4);
    transform: translateY(-1px);
}

/* ============================================
   4. STAT CARDS - Plus colorées, moins blanches
   ============================================ */

.seller-main .stat-card,
.seller-main .dash-stat {
    background: linear-gradient(135deg, #ffffff 0%, #fefdfb 100%);
    border: 1px solid rgba(242, 122, 26, 0.08);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(242, 122, 26, 0.04);
    transition: all 0.25s ease;
}

.seller-main .stat-card:hover,
.seller-main .dash-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(242, 122, 26, 0.12), 0 0 0 1px rgba(242, 122, 26, 0.1);
    border-color: rgba(242, 122, 26, 0.15);
}

/* ============================================
   5. MODERN CARDS - Fond subtil, moins blanc
   ============================================ */

.seller-main .modern-card,
.seller-main .dash-card {
    background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
    border: 1px solid #e8e2da;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.seller-main .modern-card:hover,
.seller-main .dash-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.seller-main .modern-card .card-header,
.seller-main .modern-card-header,
.seller-main .dash-card .dash-card-header {
    background: linear-gradient(135deg, #fafaf8 0%, #fef8f3 100%);
    border-bottom: 1px solid #efe9e0;
}

.seller-main .modern-card .card-body,
.seller-main .modern-card-body,
.seller-main .dash-card .dash-card-body {
    background: #ffffff;
}

/* ============================================
   6. TABLES - Plus colorées, alternance chaude
   ============================================ */

.seller-main .modern-table thead th {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%);
    color: #64748b;
    border-bottom: 2px solid #e8e2da;
}

.seller-main .modern-table tbody tr {
    background: #ffffff;
}

.seller-main .modern-table tbody tr:nth-child(even) {
    background: #fdfcfa;
}

.seller-main .modern-table tbody tr:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #fff9f2 100%);
    box-shadow: 0 2px 8px rgba(242, 122, 26, 0.06);
}

/* Tables Bootstrap standard (pour les pages non migrées) */
.seller-main .table thead th {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%);
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e8e2da;
    padding: 0.875rem 1rem;
}

.seller-main .table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    color: #334155;
    border-bottom: 1px solid #f3ede6;
}

.seller-main .table-striped tbody tr:nth-child(even) {
    background: #fdfcfa !important;
}

.seller-main .table-striped tbody tr:nth-child(odd) {
    background: #ffffff !important;
}

.seller-main .table tbody tr:hover {
    background: #fff7ed !important;
}

/* ============================================
   7. FILTER PANEL - Plus de couleur
   ============================================ */

.seller-main .filter-panel,
.seller-main .filter-row {
    background: linear-gradient(135deg, #faf8f5 0%, #fef7f0 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #efe9e0;
    margin-bottom: 1.25rem;
}

/* ============================================
   8. BOUTONS - Style cohérent
   ============================================ */

.seller-main .btn-primary:not(.btn-modern):not(.btn-modern-primary) {
    background: linear-gradient(135deg, #f27a1a, #e06500) !important;
    border-color: #e06500 !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(242, 122, 26, 0.25);
}

.seller-main .btn-primary:not(.btn-modern):not(.btn-modern-primary):hover {
    background: linear-gradient(135deg, #e06500, #c05500) !important;
    box-shadow: 0 4px 12px rgba(242, 122, 26, 0.35);
}

.seller-main .btn-outline-primary:not(.btn-modern) {
    color: #f27a1a !important;
    border-color: #f27a1a !important;
}

.seller-main .btn-outline-primary:not(.btn-modern):hover {
    background: #fff7ed !important;
    color: #e06500 !important;
    border-color: #e06500 !important;
}

/* ============================================
   9. EMPTY STATE - Fond chaud
   ============================================ */

.seller-main .empty-state {
    background: linear-gradient(180deg, #faf8f5 0%, #ffffff 100%);
    border: 2px dashed #e8ddd2;
}

/* ============================================
   10. QUICK ACTIONS (Dashboard)
   ============================================ */

.seller-main .quick-action-btn {
    border: 1px solid #efe9e0;
    background: linear-gradient(135deg, #ffffff, #fefdfb);
}

.seller-main .quick-action-btn:hover {
    border-color: #f27a1a;
    background: linear-gradient(135deg, #fff7ed 0%, #fef2e4 100%);
    box-shadow: 0 4px 16px rgba(242, 122, 26, 0.12);
}

/* ============================================
   11. NOTIFICATIONS - Fond chaud
   ============================================ */

.seller-main .notification-filters {
    background: linear-gradient(135deg, #faf8f5 0%, #fef7f0 100%);
    border: 1px solid #efe9e0;
}

.seller-main .notification-list {
    background: linear-gradient(180deg, #ffffff, #fefdfb);
    border: 1px solid #e8e2da;
}

.seller-main .notification-card:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #fff9f2 100%);
}

.seller-main .notification-card.unread {
    background: linear-gradient(to right, #fff4e8, #fffaf5);
}

/* ============================================
   12. BOOTSTRAP CARDS (tous les .card génériques)
   ============================================ */

/* Surcharge générique de orders.css et Bootstrap */
.seller-main .card {
    border: 1px solid #e8e2da;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
}

.seller-main .card.border-0,
.seller-main .card.shadow-sm {
    border: 1px solid #e8e2da !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
}

.seller-main .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.seller-main .card.border-0:hover,
.seller-main .card.shadow-sm:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

.seller-main .card .card-header,
.seller-main .card-header {
    background: linear-gradient(135deg, #fafaf8 0%, #fef8f3 100%);
    border-bottom: 1px solid #efe9e0;
    color: #333;
    font-weight: 600;
}

.seller-main .card .card-header.bg-transparent {
    background: linear-gradient(135deg, #fafaf8 0%, #fef8f3 100%) !important;
    border-bottom: 1px solid #efe9e0;
}

.seller-main .card .card-body {
    background: transparent;
}

/* Surcharge du hover de table depuis orders.css */
.seller-main .table-hover tbody tr:hover {
    background-color: rgba(242, 122, 26, 0.05);
}

/* Surcharge pagination depuis orders.css */
.seller-main .pagination .page-item.active .page-link {
    background-color: #f27a1a;
    border-color: #f27a1a;
}

/* ============================================
   13. DÉTAILS DE COMMANDE INLINE
   ============================================ */

.seller-main .detail-section {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%);
    border: 1px solid #efe9e0;
}

/* ============================================
   14. BADGES & STATUS
   ============================================ */

.seller-main .badge.bg-light {
    background: #fef7f0 !important;
    color: #875a2c !important;
}

/* ============================================
   15. FORMULAIRES DANS LES PAGES
   ============================================ */

.seller-main .form-control,
.seller-main .form-select {
    border: 1.5px solid #e0dbd4;
    background: #ffffff;
}

.seller-main .form-control:focus,
.seller-main .form-select:focus {
    border-color: #f27a1a;
    box-shadow: 0 0 0 3px rgba(242, 122, 26, 0.1);
    background: #ffffff;
}

/* ============================================
   16. MODALS/POPUPS - Harmonisés et colorés
   ============================================ */

/* Overlay plus professionnel */
.modal.show,
.modal.d-block {
    background-color: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(6px);
}

/* Modal content */
.modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    overflow: hidden;
}

/* Modal Header - Orange gradient par défaut */
.modal .modal-header {
    background: linear-gradient(135deg, #f27a1a 0%, #e06500 100%) !important;
    border-bottom: none !important;
    padding: 1.5rem 2rem !important;
    color: white;
}

.modal .modal-header .modal-title {
    color: white !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal .modal-header .modal-title i {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem;
}

.modal .modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8;
}

.modal .modal-header .btn-close:hover {
    opacity: 1;
}

/* Modal Body - Fond légèrement chaud */
.modal .modal-body {
    padding: 1.75rem 2rem !important;
    background: linear-gradient(180deg, #fffcf8 0%, #ffffff 100%);
}

/* Form labels dans modals */
.modal .modal-body .form-label {
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.4rem !important;
}

/* Form controls dans modals */
.modal .modal-body .form-control,
.modal .modal-body .form-select {
    border-radius: 10px !important;
    border: 2px solid #e8e2da !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.modal .modal-body .form-control:focus,
.modal .modal-body .form-select:focus {
    border-color: #f27a1a !important;
    box-shadow: 0 0 0 4px rgba(242, 122, 26, 0.1) !important;
}

/* Sections dans les modals */
.modal .detail-section,
.modal .modal-body .detail-section {
    background: linear-gradient(135deg, #faf8f5 0%, #fef7f0 100%);
    border: 1px solid #efe9e0;
    border-radius: 12px;
    padding: 1.25rem;
}

.modal .detail-section h6 {
    color: #f27a1a;
    font-weight: 700;
}

/* Modal Footer */
.modal .modal-footer {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%) !important;
    border-top: 1px solid #efe9e0 !important;
    padding: 1.25rem 2rem !important;
    gap: 0.75rem;
}

/* Tables dans modals */
.modal .table thead th {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%) !important;
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.modal .table tbody td {
    border-bottom: 1px solid #f3ede6;
}

/* Résumé financier dans modals commande */
.modal .text-success.fw-bold,
.modal .text-success {
    color: #16a34a !important;
}

.modal .text-danger {
    color: #dc2626 !important;
}

/* ============================================
   17. SCROLLBAR CUSTOMISÉE
   ============================================ */

.seller-main::-webkit-scrollbar {
    width: 8px;
}

.seller-main::-webkit-scrollbar-track {
    background: #f5f0eb;
}

.seller-main::-webkit-scrollbar-thumb {
    background: #d4c4b0;
    border-radius: 10px;
}

.seller-main::-webkit-scrollbar-thumb:hover {
    background: #c0a88e;
}

/* ============================================
   18. LOADING STATE
   ============================================ */

.seller-main .spinner-border.text-warning,
.seller-main .spinner-border.text-primary {
    color: #f27a1a !important;
}

/* ============================================
   19. PAGINATION
   ============================================ */

.seller-main .modern-pagination button.active {
    background: linear-gradient(135deg, #f27a1a, #e06500);
    border-color: #f27a1a;
    box-shadow: 0 2px 8px rgba(242, 122, 26, 0.3);
}

/* ============================================
   20. INFO BOXES
   ============================================ */

.seller-main .alert-info,
.seller-main [style*="background:#eff6ff"],
.seller-main [style*="background: #eff6ff"] {
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

/* ============================================
   21. ORDER DETAIL (page Orders.razor inline)
   ============================================ */

.order-detail-view {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   22. CHART AREAS
   ============================================ */

.seller-main .chart-area,
.seller-main canvas {
    background: transparent;
}

/* ============================================
   23. PROGRESS BARS
   ============================================ */

.seller-main .progress,
.seller-main .progress-slim {
    background: #efe9e0;
    border-radius: 10px;
}

/* ============================================
   24. LINKS
   ============================================ */

.seller-main a:not(.btn):not(.menu-item):not(.menu-subitem):not(.nav-link):not(.dropdown-item):not(.quick-action-btn):not(.notification-link) {
    color: #f27a1a;
}

.seller-main a:not(.btn):not(.menu-item):not(.menu-subitem):not(.nav-link):not(.dropdown-item):not(.quick-action-btn):not(.notification-link):hover {
    color: #e06500;
}

/* ============================================
   25. SECTIONS SPÉCIFIQUES - AdvancedDashboard
   ============================================ */

.seller-main .bg-primary.bg-opacity-10 {
    background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
}

.seller-main .bg-success.bg-opacity-10 {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
}

.seller-main .bg-info.bg-opacity-10 {
    background: linear-gradient(135deg, #ecfeff, #cffafe) !important;
}

.seller-main .bg-warning.bg-opacity-10 {
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
}

.seller-main .bg-danger.bg-opacity-10 {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
}

/* ============================================
   26. RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .seller-main .page-header {
        margin: -1.5rem -1rem 1.5rem -1rem;
        padding: 1.25rem 1.5rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .seller-main .page-header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1rem 1rem 1rem;
    }
    
    .seller-main .page-header h1,
    .seller-main .page-header h4 {
        font-size: 1.25rem;
    }
    
    .seller-main .stat-card,
    .seller-main .dash-stat {
        padding: 1rem;
    }
    
    .seller-main .modern-card .card-body,
    .seller-main .modern-card-body {
        padding: 1rem;
    }

    .modal .modal-header {
        padding: 1.25rem 1.5rem !important;
    }

    .modal .modal-body {
        padding: 1.25rem 1.5rem !important;
    }

    .modal .modal-footer {
        padding: 1rem 1.5rem !important;
        flex-direction: column;
    }

    .modal .modal-footer .btn,
    .modal .modal-footer .btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   EXPORT OPTIONS (Inventory modal)
   ============================================ */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e8e2da;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fdfcfa;
}

.export-option:hover {
    border-color: #f27a1a;
    background: #fef7f0;
    box-shadow: 0 2px 8px rgba(242, 122, 26, 0.08);
}

.export-option .form-check-input {
    margin: 0;
}

.export-option .form-check-input:checked {
    background-color: #f27a1a;
    border-color: #f27a1a;
}
