* { margin: 0; padding: 0; box-sizing: border-box; } :root { --bg-dark: #0a0a0a; --bg-card: #141414; --bg-hover: #1a1a1a; --border: #2a2a2a; --text-primary: #f0f0f0; --text-secondary: #888; --accent: #ff6b35; --accent-glow: rgba(255, 107, 53, 0.3); --success: #4ade80; --warning: #fbbf24; --danger: #ef4444; --tier1: #ef4444; --tier2: #fbbf24; --tier3: #4ade80; } html { font-size: 16px; -webkit-text-size-adjust: 100%; } body { font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-dark); color: var(--text-primary); min-height: 100vh; min-height: 100dvh; line-height: 1.5; -webkit-font-smoothing: antialiased; } /* ===== LOGIN PAGE ===== */ .login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 16px; } .login-container { width: 100%; max-width: 400px; } .login-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px 24px; text-align: center; width: 100%; } .login-box h1 { font-size: 28px; margin-bottom: 4px; } .login-box h2 { font-size: 15px; color: var(--text-secondary); font-weight: 400; margin-bottom: 28px; } .login-box input { width: 100%; padding: 14px 16px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 16px; margin-bottom: 16px; outline: none; transition: border-color 0.2s; -webkit-appearance: none; } .login-box input:focus { border-color: var(--accent); } .login-box button { width: 100%; padding: 14px; background: var(--accent); border: none; border-radius: 10px; color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; min-height: 48px; } .login-box button:hover { background: #ff8555; transform: translateY(-1px); } .login-box button:active { transform: translateY(0); } .error { color: var(--danger); font-size: 14px; margin-top: 12px; } /* ===== SIDEBAR ===== */ .sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100vh; height: 100dvh; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 100; transition: transform 0.3s ease; } .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); } .logo h1 { font-size: 20px; margin-bottom: 2px; } .logo p { font-size: 12px; color: var(--text-secondary); } .menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 20px; padding: 8px 12px; cursor: pointer; min-height: 44px; min-width: 44px; } .sidebar-content { display: flex; flex-direction: column; flex: 1; overflow-y: auto; } .nav-menu { list-style: none; padding: 12px; flex: 1; } .nav-menu li { margin-bottom: 4px; } .nav-link { display: block; padding: 12px 14px; color: var(--text-secondary); text-decoration: none; border-radius: 10px; font-size: 14px; transition: all 0.2s; min-height: 44px; display: flex; align-items: center; } .nav-link:hover { background: var(--bg-hover); color: var(--text-primary); } .nav-link.active { background: var(--accent-glow); color: var(--accent); font-weight: 500; } .nav-footer { padding: 12px; border-top: 1px solid var(--border); } .nav-footer button { width: 100%; padding: 12px; background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); cursor: pointer; font-size: 14px; min-height: 44px; transition: all 0.2s; } .nav-footer button:hover { background: var(--bg-hover); color: var(--text-primary); } /* ===== MAIN CONTENT ===== */ .main-content { margin-left: 260px; padding: 24px; min-height: 100vh; min-height: 100dvh; transition: margin-left 0.3s ease; } .view { display: none; } .view.active { display: block; } .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; } .page-header h2 { font-size: 22px; font-weight: 600; } .subtitle { color: var(--text-secondary); font-size: 14px; margin-top: -12px; margin-bottom: 20px; } .header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .header-actions input, .header-actions select { padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 14px; outline: none; min-height: 44px; -webkit-appearance: none; } .header-actions input { min-width: 180px; } .header-actions input:focus, .header-actions select:focus { border-color: var(--accent); } /* ===== STATS BAR ===== */ .stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; } .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; } .stat-value { display: block; font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 4px; } .stat-label { font-size: 12px; color: var(--text-secondary); } /* ===== TABLE ===== */ .table-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; } .leads-table { width: 100%; min-width: 800px; border-collapse: collapse; font-size: 14px; } .leads-table th { background: var(--bg-hover); padding: 12px 14px; text-align: left; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); white-space: nowrap; } .leads-table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; white-space: nowrap; } .leads-table tr:hover { background: var(--bg-hover); } /* ===== TIER BADGES ===== */ .tier-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; } .tier-1 { background: rgba(239, 68, 68, 0.15); color: var(--tier1); } .tier-2 { background: rgba(251, 191, 36, 0.15); color: var(--tier2); } .tier-3 { background: rgba(74, 222, 128, 0.15); color: var(--tier3); } /* ===== STATUS BADGES ===== */ .status-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; text-transform: capitalize; white-space: nowrap; } .status-new { background: rgba(59, 130, 246, 0.15); color: #60a5fa; } .status-contacted { background: rgba(251, 191, 36, 0.15); color: var(--tier2); } .status-qualified { background: rgba(139, 92, 246, 0.15); color: #a78bfa; } .status-booked { background: rgba(14, 165, 233, 0.15); color: #38bdf8; } .status-paid { background: rgba(74, 222, 128, 0.15); color: var(--tier3); } .status-declined { background: rgba(107, 114, 128, 0.15); color: #9ca3af; } /* Fulfillment status badges */ .status-pending { background: rgba(239, 68, 68, 0.15); color: var(--danger); } .status-in_progress { background: rgba(251, 191, 36, 0.15); color: var(--warning); } .status-completed { background: rgba(74, 222, 128, 0.15); color: var(--success); } .status-cancelled { background: rgba(107, 114, 128, 0.15); color: #9ca3af; } /* ===== REPEAT CUSTOMER BADGE ===== */ .repeat-badge { display: inline-block; margin-left: 6px; font-size: 10px; background: linear-gradient(135deg, var(--accent), #ff8c5a); color: white; padding: 2px 8px; border-radius: 12px; font-weight: 600; white-space: nowrap; } /* ===== BUTTONS ===== */ .btn-primary { padding: 10px 20px; background: var(--accent); border: none; border-radius: 10px; color: white; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; min-height: 44px; -webkit-appearance: none; } .btn-primary:hover { background: #ff8555; transform: translateY(-1px); } .btn-primary:active { transform: translateY(0); } .btn-small { padding: 8px 14px; font-size: 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-primary); cursor: pointer; transition: all 0.2s; min-height: 36px; -webkit-appearance: none; } .btn-small:hover { background: var(--border); } /* ===== PAGINATION ===== */ .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; } .pagination button { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); cursor: pointer; min-height: 44px; min-width: 44px; font-size: 14px; -webkit-appearance: none; } .pagination button:hover { background: var(--bg-hover); } .pagination button.active { background: var(--accent); border-color: var(--accent); color: white; } /* ===== MODAL ===== */ .modal { display: none; position: fixed; z-index: 200; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); overflow-y: auto; -webkit-overflow-scrolling: touch; } .modal.active { display: flex; align-items: flex-start; justify-content: center; padding: 20px; } .modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; max-width: 700px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; margin-top: 20px; } .close-btn { position: absolute; right: 16px; top: 16px; font-size: 28px; cursor: pointer; color: var(--text-secondary); min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; z-index: 10; } .close-btn:hover { color: var(--text-primary); } /* ===== LEAD DETAIL ===== */ .lead-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; } .lead-detail-header h3 { font-size: 20px; } .lead-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; } .lead-stat { background: var(--bg-dark); padding: 14px; border-radius: 10px; text-align: center; } .lead-stat-value { font-size: 18px; font-weight: 700; color: var(--accent); } .lead-stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 4px; } .conversation-timeline { max-height: 350px; overflow-y: auto; padding-right: 8px; -webkit-overflow-scrolling: touch; } .timeline-message { padding: 12px 14px; margin-bottom: 10px; border-radius: 10px; border: 1px solid var(--border); word-break: break-word; } .timeline-message.inbound { background: var(--bg-dark); margin-right: 20px; } .timeline-message.outbound { background: var(--accent-glow); margin-left: 20px; border-color: var(--accent); } .message-meta { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; } .transaction-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: var(--bg-dark); border-radius: 8px; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; } /* ===== FORMS IN MODAL ===== */ .modal form input, .modal form select, .modal form textarea { width: 100%; padding: 12px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); margin-bottom: 12px; font-size: 16px; outline: none; -webkit-appearance: none; } .modal form input:focus, .modal form select:focus, .modal form textarea:focus { border-color: var(--accent); } .modal form textarea { min-height: 80px; resize: vertical; } .modal form select { min-height: 44px; } /* ===== IMPORT VIEW ===== */ .import-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; } .import-box textarea { width: 100%; min-height: 250px; padding: 14px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace; font-size: 13px; margin: 14px 0; outline: none; -webkit-appearance: none; } .import-box textarea:focus { border-color: var(--accent); } #importResult { margin-top: 14px; padding: 14px; border-radius: 10px; font-size: 14px; } #importResult.success { background: rgba(74, 222, 128, 0.1); color: var(--success); } #importResult.error { background: rgba(239, 68, 68, 0.1); color: var(--danger); } /* ===== PRIORITY CARDS ===== */ .priority-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; } .priority-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; border-left: 4px solid var(--tier1); } .priority-card h4 { margin-bottom: 6px; font-size: 15px; word-break: break-word; } .priority-card .reason { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; word-break: break-word; } /* ===== ANALYTICS GRID ===== */ .analytics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; } .analytics-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; } .analytics-card h4 { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; } .analytics-card .value { font-size: 28px; font-weight: 700; color: var(--accent); } /* ===== MOBILE RESPONSIVE ===== */ @media (max-width: 768px) { /* Sidebar collapses to hamburger */ .sidebar { transform: translateX(-100%); width: 280px; height: 100vh; height: 100dvh; } .sidebar.open { transform: translateX(0); } .sidebar-header { padding: 14px 16px; } .menu-toggle { display: block; } .main-content { margin-left: 0; padding: 16px; padding-top: 60px; } /* Overlay when sidebar is open */ .sidebar.open::after { content: ''; position: fixed; top: 0; left: 280px; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 99; } /* Sidebar height fix for mobile browser chrome */ .sidebar { height: 100vh; height: 100dvh; } /* Page header stacks */ .page-header { flex-direction: column; align-items: stretch; gap: 10px; } .page-header h2 { font-size: 20px; } .header-actions { width: 100%; flex-direction: column; align-items: stretch; } .header-actions input, .header-actions select, .header-actions .btn-primary { width: 100%; min-height: 44px; } /* Stats bar stacks */ .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; } .stat-card { padding: 14px; } .stat-value { font-size: 20px; } /* Table horizontal scroll */ .table-container { margin: 0 -16px; border-radius: 0; border-left: none; border-right: none; } .leads-table th, .leads-table td { padding: 10px 12px; font-size: 13px; } /* Modal full width on mobile */ .modal.active { padding: 0; align-items: flex-end; } .modal-content { border-radius: 16px 16px 0 0; margin-top: auto; max-height: 85vh; padding: 20px; } .close-btn { right: 12px; top: 12px; } /* Lead detail stacks */ .lead-detail-header { flex-direction: column; } .lead-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .lead-stat { padding: 10px; } .lead-stat-value { font-size: 16px; } .timeline-message.inbound, .timeline-message.outbound { margin-right: 0; margin-left: 0; } .transaction-row { flex-direction: column; align-items: flex-start; } /* Priority cards single column */ .priority-cards { grid-template-columns: 1fr; } /* Analytics single column */ .analytics-grid { grid-template-columns: 1fr; } .analytics-card .value { font-size: 24px; } /* Import box */ .import-box { padding: 16px; } .import-box textarea { min-height: 200px; } /* Login page */ .login-box { padding: 32px 20px; } .login-box h1 { font-size: 24px; } } @media (max-width: 480px) { .stats-bar { grid-template-columns: 1fr; } .lead-stats { grid-template-columns: 1fr; } .page-header h2 { font-size: 18px; } } /* ===== TOAST ANIMATION ===== */ @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* ===== SCROLLBAR STYLING ===== */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: var(--bg-dark); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } /* ===== PRICING ===== */ .price-input { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; color: var(--text-primary); font-size: 14px; width: 100px; } .price-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } .price-input[data-field="description"] { width: 100%; min-width: 200px; } /* ===== SORTABLE HEADERS ===== */ .leads-table th[data-sort] { cursor: pointer; user-select: none; position: relative; padding-right: 20px; } .leads-table th[data-sort]:hover { color: var(--accent); background: var(--bg-hover); } .sort-icon { font-size: 10px; margin-left: 4px; opacity: 0.5; } .leads-table th[data-sort].sort-asc .sort-icon::after { content: '▲'; opacity: 1; color: var(--accent); } .leads-table th[data-sort].sort-desc .sort-icon::after { content: '▼'; opacity: 1; color: var(--accent); } /* ===== COLUMN FILTERS ===== */ .filter-row { background: var(--bg-dark); } .filter-row td { padding: 6px 8px !important; border-top: 1px solid var(--border); vertical-align: top; } .col-filter { width: 100%; padding: 6px 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text-primary); font-size: 12px; outline: none; min-height: 32px; -webkit-appearance: none; } .col-filter:focus { border-color: var(--accent); } .col-filter::placeholder { color: var(--text-secondary); opacity: 0.6; } /* ===== SCROLL HINT FOR TABLE ===== */ .table-container { position: relative; } .table-container::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 30px; background: linear-gradient(to right, transparent, rgba(0,0,0,0.3)); pointer-events: none; opacity: 0; transition: opacity 0.3s; } .table-container.scrollable::after { opacity: 1; } /* ===== MOBILE MODAL IMPROVEMENTS ===== */ @media (max-width: 768px) { .modal-content { max-height: 95vh; } .lead-stats { grid-template-columns: repeat(2, 1fr); } .lead-detail-header { flex-direction: column; } .conversation-timeline { max-height: 250px; } .timeline-message.inbound, .timeline-message.outbound { margin-right: 0; margin-left: 0; } .transaction-row { flex-direction: column; align-items: flex-start; } } @media (max-width: 480px) { .modal-content { border-radius: 0; max-height: 100vh; padding: 16px; } .close-btn { right: 8px; top: 8px; width: 44px; height: 44px; } .lead-stats { grid-template-columns: 1fr; } .lead-stat { padding: 10px; } .lead-stat-value { font-size: 16px; } .stats-bar { grid-template-columns: 1fr; } .stat-value { font-size: 20px; } .page-header h2 { font-size: 18px; } .leads-table th, .leads-table td { padding: 8px 10px; font-size: 12px; } .filter-row .col-filter { font-size: 11px; padding: 4px 6px; min-height: 28px; } .tier-badge, .status-badge { font-size: 10px; padding: 3px 8px; } .repeat-badge { font-size: 9px; } .btn-small { padding: 6px 10px; font-size: 12px; } .btn-primary { padding: 12px 16px; font-size: 14px; } .header-actions input, .header-actions select, .header-actions .btn-primary { font-size: 14px; } .nav-link { font-size: 13px; padding: 10px 12px; } .sidebar-header { padding: 12px 14px; } .logo h1 { font-size: 18px; } .import-box { padding: 14px; } .import-box textarea { min-height: 180px; font-size: 12px; } .priority-cards { grid-template-columns: 1fr; } .priority-card { padding: 14px; } .analytics-grid { grid-template-columns: 1fr; } .analytics-card { padding: 16px; } .analytics-card .value { font-size: 22px; } .login-box { padding: 28px 18px; } .login-box h1 { font-size: 22px; } .login-box h2 { font-size: 14px; } } /* ===== DETAIL FIELD GRID ===== */ .detail-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; } .detail-field { background: var(--bg-dark); padding: 12px 14px; border-radius: 10px; } .detail-field-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; } .detail-field-value { font-size: 14px; font-weight: 500; color: var(--text-primary); word-break: break-word; } .detail-field-value.accent { color: var(--accent); font-weight: 700; } @media (max-width: 768px) { .detail-fields { grid-template-columns: 1fr; } } /* ===== PAYMENT GATEWAY BADGE ===== */ .gateway-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; background: var(--bg-hover); color: var(--text-secondary); border: 1px solid var(--border); } .gateway-stripe { background: rgba(99, 102, 241, 0.15); color: #818cf8; border-color: rgba(99, 102, 241, 0.3); } .gateway-paypal { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); } .gateway-cashapp { background: rgba(74, 222, 128, 0.15); color: var(--success); border-color: rgba(74, 222, 128, 0.3); } .gateway-zelle { background: rgba(251, 191, 36, 0.15); color: var(--warning); border-color: rgba(251, 191, 36, 0.3); } .gateway-venmo { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border-color: rgba(139, 92, 246, 0.3); } /* ===== TABLE TOTAL ROW ===== */ .total-row td { font-weight: 700; background: var(--bg-hover); border-top: 2px solid var(--border); }