/* ============================================ SuiviLivraison.css - COMPLET AVEC SCROLL MODAL ============================================ */ /* Container principal */ .suivi-container { width: 100%; min-height: 100vh; padding: clamp(1rem, 3vw, 2rem); padding-top: calc(60px + clamp(1rem, 3vw, 2rem)); max-width: 1200px; margin: 0 auto; background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%); color: white; } /* Header */ .suivi-header { text-align: left; margin-top: 50px; animation: slideDown 0.5s ease-out; } @keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } .suivi-header h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); background: #ffffff; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; font-weight: bold; letter-spacing: -0.5px; } .suivi-header p { font-size: clamp(1rem, 3vw, 1.1em); color: rgba(255, 255, 255, 0.6); margin: 0; } /* Error Banner */ .error-banner { background: rgba(239, 68, 68, 0.1); border-left: 4px solid #ef4444; padding: clamp(1rem, 3vw, 1.5rem); border-radius: 8px; margin-bottom: clamp(1rem, 3vw, 1.5rem); display: flex; justify-content: space-between; align-items: center; color: #f472b6; animation: slideDown 0.3s ease-out; } .error-banner button { background: none; border: none; color: #f472b6; font-size: 1.2em; cursor: pointer; padding: 0; opacity: 0.7; transition: opacity 0.2s; } .error-banner button:hover { opacity: 1; } /* Loading State */ .loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; gap: 1.5rem; } .spinner { width: 50px; height: 50px; border: 4px solid rgba(16, 185, 129, 0.2); border-top: 4px solid #10b981; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading-state p { color: rgba(255, 255, 255, 0.6); font-size: clamp(1rem, 3vw, 1.1em); } /* Empty State */ .empty-state { text-align: center; padding: clamp(2rem, 6vw, 4rem); background: linear-gradient( 135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100% ); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; animation: slideDown 0.5s ease-out; } .empty-state h2 { font-size: clamp(1.4rem, 5vw, 1.8em); color: rgba(255, 255, 255, 0.9); margin-bottom: 0.5rem; } .empty-state p { color: rgba(255, 255, 255, 0.6); font-size: clamp(1rem, 3vw, 1.05em); margin-bottom: clamp(1rem, 3vw, 1.5rem); } .action-button { background: linear-gradient(to right, #7c3aed, #6d28d9); color: white; border: none; padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem); border-radius: 12px; font-size: clamp(0.95rem, 3vw, 1.05em); font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 30px rgba(124, 58, 237, 0.3); } .action-button:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 58, 237, 0.3); } /* Orders List */ .orders-list { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 2rem); margin-bottom: clamp(1.5rem, 4vw, 2rem); } /* Order Card */ .order-card { background: linear-gradient( 135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100% ); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); animation: slideUp 0.5s ease-out; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); backdrop-filter: blur(8px); } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .order-card:hover { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15); } /* Order Header */ .order-header { display: flex; justify-content: space-between; align-items: center; padding: clamp(1rem, 3vw, 1.5rem); background: linear-gradient( 135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100% ); cursor: pointer; user-select: none; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .order-header:hover { background: linear-gradient( 135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100% ); } .order-header-left { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.5rem); flex: 1; flex-wrap: wrap; } .order-header-left h3 { margin: 0; font-size: clamp(1.1rem, 4vw, 1.3em); color: white; font-weight: 600; } /* Status Badge */ .status-badge { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 20px; color: white; font-size: clamp(0.8rem, 2vw, 0.9em); font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); white-space: nowrap; } .order-header-right { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.5rem); flex-shrink: 0; } .order-total2 { font-size: clamp(1.1rem, 4vw, 1.3em); font-weight: 700; color: #6d28d9; } .expand-icon { color: rgba(255, 255, 255, 0.6); font-size: 1.2em; transition: color 0.2s ease; } .order-header:hover .expand-icon { color: #6d28d9; } /* Order Details */ .order-details { padding: clamp(1.5rem, 4vw, 2rem); border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: clamp(1rem, 3vw, 1.5rem); animation: expandDown 0.3s ease-out; } @keyframes expandDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 2000px; } } .detail-section { padding: clamp(1rem, 3vw, 1.5rem); background: rgba(255, 255, 255, 0.03); border-left: 3px solid #6d28d9; border-radius: 8px; width: 100%; } .detail-section h4 { margin: 0 0 0.75rem 0; color: rgba(255, 255, 255, 0.9); font-size: clamp(0.95rem, 2vw, 1.05em); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .detail-section p { margin: 0.5rem 0; color: rgba(255, 255, 255, 0.8); line-height: 1.5; } .detail-section small { display: block; color: rgba(255, 255, 255, 0.5); margin-top: 0.5rem; font-size: clamp(0.8rem, 2vw, 0.85em); } .address { font-size: clamp(1rem, 3vw, 1.05em); font-weight: 500; color: white; } .contact { color: rgba(255, 255, 255, 0.7); font-size: clamp(0.9rem, 2vw, 0.95em); } /* Items List */ .items-list { display: flex; flex-direction: column; gap: 0.5rem; } .item { display: flex; justify-content: space-between; padding: clamp(0.75rem, 2vw, 1rem); background: rgba(255, 255, 255, 0.02); border-radius: 8px; color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.2s ease; } .item:hover { background: rgba(255, 255, 255, 0.04); } .item-name { flex: 1; } .item .price { color: #10b981; font-weight: 600; margin-left: 1rem; } .total-amount { font-size: 1.5rem; color: #10b981; font-weight: 700; margin: 0; } /* Order Actions */ .order-actions { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); } .action-buttons { display: flex; gap: 1rem; flex-wrap: wrap; } .confirmation-section { background: #6d28d9; padding: clamp(1rem, 3vw, 1.5rem); border-radius: 12px; border: 1px solid rgba(16, 185, 129, 0.2); display: flex; flex-direction: column; gap: 1rem; } .delivery-notice { text-align: center; } .notice-title { font-size: clamp(1rem, 3vw, 1.1em); font-weight: 600; color: rgba(255, 255, 255, 0.9); margin: 0 0 0.5rem 0; } .notice-subtitle { font-size: clamp(0.85rem, 2vw, 0.95em); color: rgba(255, 255, 255, 0.7); margin: 0; } .btn-confirm-delivery { padding: clamp(0.75rem, 2vw, 1rem); border: none; border-radius: 10px; font-size: clamp(0.9rem, 2vw, 1em); font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; text-transform: uppercase; letter-spacing: 0.5px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; flex: 1; min-width: 200px; } /* Buttons */ .btn-primary, .btn-secondary, .btn-confirm, .btn-cancel, .btn-danger, .btn-cancel-order { padding: clamp(0.75rem, 2vw, 1rem); border: none; border-radius: 10px; font-size: clamp(0.9rem, 2vw, 1em); font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; text-transform: uppercase; letter-spacing: 0.5px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; flex: 1; margin-left: 45px; min-width: 200px; } .btn-confirm-delivery, .btn-primary, .btn-confirm { background: #7c3aed; color: white; box-shadow: 0 0 30px rgba(124, 58, 237, 0.5); } .btn-confirm-delivery:hover, .btn-primary:hover, .btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4); } .btn-confirm-delivery:disabled, .btn-cancel-order:disabled, .btn-danger:disabled { background: rgba(255, 255, 255, 0.1); cursor: not-allowed; box-shadow: none; transform: none; opacity: 0.5; } .btn-secondary, .btn-cancel { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); } .btn-secondary:hover, .btn-cancel:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); } .btn-danger, .btn-cancel-order { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; box-shadow: 0 0 30px rgba(239, 68, 68, 0.3); } .btn-danger:hover, .btn-cancel-order:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4); } /* Status Messages */ .status-message { padding: 1rem; border-radius: 8px; text-align: center; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 0.5rem; } .status-message.success { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); } .status-message.cancelled { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); } /* Footer Info */ .footer-info { text-align: center; padding: clamp(1rem, 3vw, 1.5rem); background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; color: rgba(255, 255, 255, 0.5); font-size: clamp(0.9rem, 2vw, 1em); } .footer-info p { margin: 0.5rem 0; } /* ============================================ ✅ DIALOG DE CONFIRMATION - AVEC SCROLL ============================================ */ .confirm-dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9998; animation: fadeIn 0.3s ease-out; padding: 1rem; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .confirm-dialog { background: linear-gradient( 135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100% ); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; max-width: 480px; width: 90%; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); animation: slideUp 0.3s ease-out; backdrop-filter: blur(20px); overflow: hidden; } .cancel-dialog { max-width: 600px; } .confirm-dialog-header { padding: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; background: linear-gradient( 135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100% ); } .confirm-dialog-header h3 { margin: 0; font-size: 1.3em; color: white; font-weight: 600; } .confirm-dialog-body { padding: 1.5rem; color: rgba(255, 255, 255, 0.8); overflow-y: auto; flex: 1; /* Smooth scrolling */ -webkit-overflow-scrolling: touch; } /* Custom scrollbar pour webkit browsers */ .confirm-dialog-body::-webkit-scrollbar { width: 8px; } .confirm-dialog-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; } .confirm-dialog-body::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.5); border-radius: 4px; } .confirm-dialog-body::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.7); } /* Pour Firefox */ .confirm-dialog-body { scrollbar-width: thin; scrollbar-color: rgba(124, 58, 237, 0.5) rgba(255, 255, 255, 0.05); } .confirm-dialog-body p { margin: 0 0 1rem 0; font-size: 1.05em; line-height: 1.5; } .confirm-dialog-reward { background: rgba(124, 58, 237, 0.3); border: 1px solid rgba(124, 58, 237, 0.3); border-radius: 8px; padding: 1rem; text-align: center; font-size: 1.1em; color: #a78bfa; } .confirm-dialog-reward strong { color: white; } /* ✅ STYLE POUR LE MESSAGE DES 20 POINTS */ .points-info { margin-top: 1rem; } .points-info p { font-size: 0.9em; color: rgba(255, 255, 255, 0.7); margin: 0; padding: 0.75rem; background: rgba(124, 58, 237, 0.1); border-radius: 6px; border: 1px solid rgba(124, 58, 237, 0.2); text-align: center; line-height: 1.5; } .confirm-dialog-actions { padding: 1rem 1.5rem 1.5rem; display: flex; gap: 1rem; flex-shrink: 0; border-top: 1px solid rgba(255, 255, 255, 0.05); background: linear-gradient( 135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100% ); } .confirm-dialog-actions .btn-cancel, .confirm-dialog-actions .btn-confirm, .confirm-dialog-actions .btn-danger, .confirm-dialog-actions .btn-secondary { flex: 1; margin: 0; min-width: auto; } /* ============================================ ✅ ANNULATION - FORMULAIRE & PÉNALITÉ ============================================ */ .cancel-form { display: flex; flex-direction: column; gap: 1rem; } .cancel-form .form-group { display: flex; flex-direction: column; gap: 0.5rem; } .cancel-form label { font-weight: 600; color: rgba(255, 255, 255, 0.9); font-size: 0.95em; } .cancel-form textarea { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 0.75rem; color: white; font-family: inherit; resize: vertical; min-height: 100px; font-size: 0.95em; } .cancel-form textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2); } .cancel-form small { color: rgba(255, 255, 255, 0.5); font-size: 0.85em; text-align: right; } .info-message { background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.3); border-radius: 8px; padding: 1rem; display: flex; gap: 0.75rem; align-items: flex-start; } .info-message svg { color: #a78bfa; flex-shrink: 0; margin-top: 2px; } .info-message span { line-height: 1.5; font-size: 0.95em; } /* Penalty Warning */ .penalty-warning { display: flex; flex-direction: column; gap: 1rem; } .warning-icon { text-align: center; font-size: 3em; color: #fbbf24; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } .warning-title { font-size: 1.1em; font-weight: 600; color: #fbbf24; text-align: center; } .warning-details { background: rgba(255, 255, 255, 0.05); padding: 1rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); } .warning-details p { margin: 0.5rem 0; color: rgba(255, 255, 255, 0.8); } .penalty-info { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 8px; padding: 1rem; } .penalty-amount { font-size: 1.2em; color: #ef4444; text-align: center; margin-bottom: 0.5rem; } .penalty-message { color: rgba(255, 255, 255, 0.8); text-align: center; margin-bottom: 1rem; font-size: 0.95em; } .penalty-scale { background: rgba(255, 255, 255, 0.03); padding: 1rem; border-radius: 6px; } .penalty-scale p { margin-bottom: 0.5rem; font-weight: 600; font-size: 0.95em; } .penalty-scale ul { list-style: none; padding: 0; margin: 0; } .penalty-scale li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.9em; } .penalty-scale li:last-child { border-bottom: none; } .warning-question { font-size: 1.05em; font-weight: 600; color: rgba(255, 255, 255, 0.9); text-align: center; margin-top: 1rem; } /* Responsive */ @media (max-width: 768px) { .suivi-container { padding: clamp(1rem, 2vw, 1.5rem); } .order-header { flex-direction: column; align-items: flex-start; gap: 1rem; } .order-header-right { width: 100%; justify-content: space-between; } .confirm-dialog, .cancel-dialog { width: 95%; max-height: 90vh; } .confirm-dialog-actions, .action-buttons { flex-direction: column; } .btn-confirm-delivery, .btn-primary, .btn-secondary, .btn-confirm, .btn-cancel, .btn-danger, .btn-cancel-order { min-width: auto; width: 100%; } } @media (max-width: 480px) { .suivi-container { padding: 1rem; } .order-header { padding: 1rem; } .order-details { padding: 1rem; } .penalty-scale { font-size: 0.85em; } .confirm-dialog { max-height: 95vh; } .confirm-dialog-overlay { padding: 0.5rem; } } @media (hover: none) { .order-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); } .btn-cancel:hover, .btn-confirm:hover, .btn-primary:hover, .btn-secondary:hover, .btn-danger:hover, .btn-cancel-order:hover { transform: none; } .action-button:hover { transform: none; } } /* ✅ Barre de progression du statut */ .status-progress { width: 100%; height: 4px; background: rgba(0, 0, 0, 0.1); border-radius: 2px; margin-bottom: 1.5rem; overflow: hidden; } .status-progress-bar { height: 100%; transition: width 0.5s ease, background-image 0.3s ease; border-radius: 2px; }