/* Complete Underground Market App CSS */ * { margin: 0; padding: 0; box-sizing: border-box; } ::-webkit-scrollbar { display: none; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #f5f9fc; overflow-x: hidden; height: 100vh; font-size: 18px; visibility: visible; } /* ===== UNDERGROUND MARKET APP ===== */ .app-container { height: 100vh; display: flex; flex-direction: column; background: #212528; } /* Header */ .header { background: #1b1d21; border-bottom: 1.5px solid #383838; padding: 15px 15px 25px 15px; display: flex; align-items: center; justify-content: space-between; min-height: 140px; } .back-btn, .cancel-btn { background: #212528; border: 1.5px solid #383838; border-radius: 8px; padding: 12px; color: #b9eff0; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; } .back-btn:hover, .cancel-btn:hover { background: #343a3f; color: #f5f9fc; transform: scale(1.05); } .cancel-btn { background: rgba(220, 38, 38, 0.2); border-color: rgba(220, 38, 38, 0.6); color: #fca5a5; } .cancel-btn:hover { background: rgba(220, 38, 38, 0.3); color: #fecaca; } .header-title { font-size: 22px; font-weight: 700; flex: 1; text-align: center; color: #b9eff0; font-variant-caps: all-petite-caps; } .w-5 { width: 20px; height: 20px; } /* Loading Screen */ .loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 20px; } .loading-spinner { width: 50px; height: 50px; border: 3px solid rgba(185, 239, 240, 0.3); border-top: 3px solid #b9eff0; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-text { color: #f5f9fc; font-size: 18px; font-weight: 600; } /* Content Container */ .content-container { flex: 1; overflow: hidden; position: relative; } .view { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateX(100%); transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden; } .view.active { opacity: 1; transform: translateX(0); } .view-header { padding: 15px; border-bottom: 1.5px solid #383838; background: #1b1d21; } .view-description { color: #f5f9fc; font-size: 18px; font-weight: 500; text-align: center; font-variant-caps: all-petite-caps; } /* Items Lists */ .items-list { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 15px; } /* Cards */ .dealer-card, .buyer-card { background: #1b1d21; border: 1.5px solid #383838; border-radius: 8px; padding: 20px; cursor: pointer; transition: all 0.3s ease; } .dealer-card:hover, .buyer-card:hover { background: #343a3f; transform: translateY(-2px); border-color: #b9eff0; } .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; } .card-title { font-size: 20px; font-weight: 700; color: #f5f9fc; } .tier-badge, .items-badge { background: #b9eff0; color: #1b1d21; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 700; font-variant-caps: all-petite-caps; } .items-badge { background: #10b981; color: #f5f9fc; } .card-location { display: flex; align-items: center; color: #f5f9fc; font-size: 16px; font-weight: 500; margin-bottom: 15px; } .card-location svg { width: 18px; height: 18px; margin-right: 8px; color: #b9eff0; } .trust-section { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .trust-label { color: #f5f9fc; font-size: 16px; font-weight: 500; } .trust-value { font-size: 18px; font-weight: 700; } .trust-value.low { color: #ef4444; } .trust-value.medium { color: #f59e0b; } .trust-value.high { color: #10b981; } .trust-value.max { color: #b9eff0; } .trust-bar-container { width: 100%; background: #212528; border-radius: 10px; height: 8px; overflow: hidden; border: 1px solid #383838; } .trust-bar { height: 100%; background: linear-gradient(90deg, #b9eff0, #10b981); border-radius: 10px; transition: width 0.3s ease; } /* Buyer Specific */ .buyer-trust { display: flex; align-items: center; color: #f5f9fc; font-size: 16px; font-weight: 500; margin-bottom: 15px; } .buyer-trust svg { width: 18px; height: 18px; margin-right: 8px; color: #b9eff0; } .items-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .item-preview { background: #212528; border: 1px solid #383838; border-radius: 6px; padding: 12px; display: flex; align-items: center; gap: 10px; } .item-icon { font-size: 20px; } .item-info { flex: 1; min-width: 0; } .item-name { color: #f5f9fc; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; } .item-price { color: #b9eff0; font-weight: 700; font-size: 16px; } .more-items { grid-column: span 2; text-align: center; color: #f5f9fc; font-style: italic; font-size: 14px; padding: 10px; } /* Buyer Details */ .buyer-details-card { background: #1b1d21; border: 1.5px solid #383838; border-radius: 8px; padding: 25px; margin: 15px; } .buyer-name { font-size: 24px; font-weight: 800; margin-bottom: 15px; color: #b9eff0; font-variant-caps: all-petite-caps; } .buyer-trust-info { display: flex; align-items: center; color: #f5f9fc; font-size: 18px; font-weight: 500; margin-bottom: 25px; } .buyer-trust-info svg { width: 20px; height: 20px; margin-right: 8px; color: #b9eff0; } .items-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; color: #f5f9fc; font-variant-caps: all-petite-caps; } .items-title svg { width: 22px; height: 22px; margin-right: 10px; color: #b9eff0; } .items-detailed { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; } .item-detailed { background: #212528; border: 1px solid #383838; border-radius: 6px; padding: 18px; display: flex; align-items: center; justify-content: space-between; transition: all 0.2s ease; } .item-detailed:hover { background: #343a3f; border-color: #b9eff0; } .item-left { display: flex; align-items: center; gap: 15px; } .item-icon-large { font-size: 24px; } .item-details h4 { font-weight: 700; margin-bottom: 6px; color: #f5f9fc; font-size: 18px; } .item-category { color: #f5f9fc; font-size: 14px; text-transform: capitalize; opacity: 0.8; font-weight: 500; } .item-right { text-align: right; } .item-price-large { color: #b9eff0; font-weight: 800; font-size: 20px; } .item-per { color: #f5f9fc; font-size: 14px; opacity: 0.8; margin-top: 4px; } /* Action Button */ .action-btn { background: #b9eff0; color: #1b1d21; border: none; border-radius: 8px; padding: 18px 20px; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font-variant-caps: all-petite-caps; } .action-btn:hover { background: #f5f9fc; transform: translateY(-2px) scale(1.02); } .action-btn svg { width: 22px; height: 22px; } /* Warning Box */ .warning-box { margin-top: 20px; padding: 15px; background: rgba(217, 119, 6, 0.15); border: 1.5px solid rgba(217, 119, 6, 0.4); border-radius: 8px; display: flex; align-items: flex-start; gap: 12px; } .warning-icon { color: #f59e0b; margin-top: 2px; width: 20px; height: 20px; flex-shrink: 0; } .warning-text { color: #f5f9fc; font-size: 14px; line-height: 1.5; font-weight: 500; } /* No Items State */ .no-items { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; flex: 1; } .no-items-icon { font-size: 60px; margin-bottom: 20px; opacity: 0.7; } .no-items-title { color: #f5f9fc; font-size: 20px; font-weight: 700; margin-bottom: 10px; font-variant-caps: all-petite-caps; } .no-items-subtitle { color: #f5f9fc; font-size: 16px; opacity: 0.8; font-weight: 500; } /* ===== SALE MENU INTERFACE ===== */ .sale-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .sale-menu-container { background: #1b1d21; border: 1.5px solid #383838; border-radius: 12px; width: 100%; max-width: 500px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; } .sale-header { background: #212528; border-bottom: 1.5px solid #383838; padding: 20px; display: flex; align-items: center; justify-content: space-between; } .sale-title { color: #b9eff0; font-size: 20px; font-weight: 700; font-variant-caps: all-petite-caps; } .close-sale-btn { background: rgba(220, 38, 38, 0.2); border: 1px solid rgba(220, 38, 38, 0.4); border-radius: 6px; padding: 8px; color: #fca5a5; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; } .close-sale-btn:hover { background: rgba(220, 38, 38, 0.3); color: #fecaca; } .close-sale-btn svg { width: 18px; height: 18px; } .sale-content { flex: 1; overflow-y: auto; padding: 20px; } .buyer-info { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding: 15px; background: #212528; border: 1px solid #383838; border-radius: 8px; } .buyer-avatar { width: 50px; height: 50px; background: #b9eff0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #1b1d21; } .buyer-name-sale { color: #f5f9fc; font-size: 18px; font-weight: 700; margin-bottom: 4px; } .buyer-status { color: #10b981; font-size: 14px; font-weight: 500; } .sale-items-section { margin-bottom: 20px; } .section-title { color: #f5f9fc; font-size: 18px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-variant-caps: all-petite-caps; } .section-title svg { color: #b9eff0; } .sale-items-list { display: flex; flex-direction: column; gap: 12px; } .sale-item { background: #212528; border: 1px solid #383838; border-radius: 8px; padding: 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.2s ease; } .sale-item:hover { background: #343a3f; border-color: #b9eff0; transform: translateY(-1px); } .sale-item-left { display: flex; align-items: center; gap: 12px; } .sale-item-icon { font-size: 24px; } .sale-item-info h4 { color: #f5f9fc; font-size: 16px; font-weight: 700; margin-bottom: 4px; } .sale-item-category { color: #f5f9fc; font-size: 12px; opacity: 0.7; text-transform: capitalize; } .sale-item-amount { color: #b9eff0; font-size: 12px; font-weight: 600; margin-top: 2px; } .sale-item-right { text-align: right; } .sale-item-price { color: #b9eff0; font-size: 18px; font-weight: 800; } .sale-item-per { color: #f5f9fc; font-size: 12px; opacity: 0.7; } .no-sale-items { text-align: center; padding: 40px 20px; } .sale-actions { border-top: 1.5px solid #383838; padding-top: 20px; display: flex; gap: 12px; } .cancel-sale-btn { background: rgba(220, 38, 38, 0.2); border: 1px solid rgba(220, 38, 38, 0.4); color: #fca5a5; border-radius: 8px; padding: 12px 20px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; } .cancel-sale-btn:hover { background: rgba(220, 38, 38, 0.3); color: #fecaca; } /* ===== QUANTITY MODAL ===== */ .quantity-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 1100; padding: 20px; } .quantity-modal { background: #1b1d21; border: 1.5px solid #383838; border-radius: 12px; width: 100%; max-width: 400px; overflow: hidden; } .quantity-header { background: #212528; border-bottom: 1.5px solid #383838; padding: 20px; display: flex; align-items: center; justify-content: space-between; } .quantity-title { color: #b9eff0; font-size: 18px; font-weight: 700; font-variant-caps: all-petite-caps; } .close-quantity-btn { background: rgba(220, 38, 38, 0.2); border: 1px solid rgba(220, 38, 38, 0.4); border-radius: 6px; padding: 6px; color: #fca5a5; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; } .close-quantity-btn:hover { background: rgba(220, 38, 38, 0.3); color: #fecaca; } .close-quantity-btn svg { width: 16px; height: 16px; } .quantity-content { padding: 20px; } .item-preview-large { background: #212528; border: 1px solid #383838; border-radius: 8px; padding: 20px; display: flex; align-items: center; gap: 15px; margin-bottom: 25px; } .item-icon-xl { font-size: 32px; } .item-label-large { color: #f5f9fc; font-size: 18px; font-weight: 700; margin-bottom: 6px; } .item-price-xl { color: #b9eff0; font-size: 20px; font-weight: 800; } .item-stock { color: #f5f9fc; font-size: 14px; opacity: 0.8; margin-top: 4px; } .quantity-selector { margin-bottom: 20px; } .quantity-label { color: #f5f9fc; font-size: 16px; font-weight: 600; display: block; margin-bottom: 12px; } .quantity-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .qty-btn { background: #212528; border: 1.5px solid #383838; border-radius: 6px; width: 40px; height: 40px; color: #b9eff0; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; } .qty-btn:hover { background: #343a3f; border-color: #b9eff0; } .quantity-input { background: #212528; border: 1.5px solid #383838; border-radius: 6px; padding: 10px; color: #f5f9fc; font-size: 18px; font-weight: 600; text-align: center; width: 80px; outline: none; } .quantity-input:focus { border-color: #b9eff0; } .quantity-info { display: flex; justify-content: space-between; align-items: center; } .max-qty { color: #f5f9fc; font-size: 14px; opacity: 0.8; } .total-calculation { background: #212528; border: 1px solid #383838; border-radius: 8px; padding: 15px; margin-bottom: 25px; } .total-row { display: flex; justify-content: space-between; align-items: center; } .total-label { color: #f5f9fc; font-size: 16px; font-weight: 600; } .total-amount { color: #b9eff0; font-size: 22px; font-weight: 800; } .quantity-actions { display: flex; gap: 12px; } .confirm-sale-btn { background: #b9eff0; color: #1b1d21; border: none; border-radius: 8px; padding: 15px 20px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; flex: 2; font-variant-caps: all-petite-caps; } .confirm-sale-btn:hover { background: #f5f9fc; transform: translateY(-1px); } .cancel-quantity-btn { background: #212528; border: 1.5px solid #383838; color: #f5f9fc; border-radius: 8px; padding: 15px 20px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; flex: 1; } .cancel-quantity-btn:hover { background: #343a3f; border-color: #b9eff0; } /* Scrollbar Styling */ .items-list::-webkit-scrollbar, .sale-content::-webkit-scrollbar { width: 6px; } .items-list::-webkit-scrollbar-track, .sale-content::-webkit-scrollbar-track { background: #212528; border-radius: 3px; } .items-list::-webkit-scrollbar-thumb, .sale-content::-webkit-scrollbar-thumb { background: #383838; border-radius: 3px; } .items-list::-webkit-scrollbar-thumb:hover, .sale-content::-webkit-scrollbar-thumb:hover { background: #b9eff0; } /* Responsive Design */ @media (max-width: 480px) { .header { padding: 12px; } .header-title { font-size: 18px; } .card-header { flex-direction: column; align-items: flex-start; gap: 10px; } .card-title { font-size: 18px; } .items-preview { grid-template-columns: 1fr; } .item-detailed { flex-direction: column; align-items: flex-start; gap: 10px; } .item-right { text-align: left; width: 100%; } .buyer-details-card { margin: 10px; padding: 20px; } .buyer-name { font-size: 20px; } .action-btn { padding: 15px; font-size: 16px; } .view-description { font-size: 16px; } .sale-menu-overlay { padding: 10px; } .sale-menu-container { max-width: 100%; } .sale-header { padding: 15px; } .sale-title { font-size: 18px; } .sale-content { padding: 15px; } .buyer-info { flex-direction: column; text-align: center; gap: 10px; } .sale-actions { flex-direction: column; } .quantity-modal-overlay { padding: 10px; } .quantity-modal { max-width: 100%; } .quantity-header { padding: 15px; } .quantity-content { padding: 15px; } .item-preview-large { flex-direction: column; text-align: center; gap: 10px; } .quantity-actions { flex-direction: column; } } /* Animation Classes */ .fade-in { animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } } .slide-in-right { animation: slideInRight 0.3s ease-out; } @keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } } /* Loading States */ .loading { opacity: 0.7; pointer-events: none; } .skeleton { background: linear-gradient(90deg, #212528 25%, #383838 50%, #212528 75%); background-size: 200% 100%; animation: loading 1.5s infinite; } @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* Focus States for Accessibility */ .back-btn:focus, .cancel-btn:focus, .action-btn:focus, .dealer-card:focus, .buyer-card:focus, .sale-item:focus, .confirm-sale-btn:focus, .cancel-sale-btn:focus, .qty-btn:focus, .quantity-input:focus { outline: 2px solid #b9eff0; outline-offset: 2px; } /* High Contrast Mode Support */ @media (prefers-contrast: high) { .dealer-card, .buyer-card, .sale-item { border-width: 2px; } .trust-bar { background: #f5f9fc; } } /* Reduced Motion Support */ @media (prefers-reduced-motion: reduce) { .view { transition: none; } .loading-spinner { animation: none; } .skeleton { animation: none; } .dealer-card, .buyer-card, .action-btn, .sale-item, .confirm-sale-btn { transition: none; } }