1117 lines
28 KiB
HTML
1117 lines
28 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>Contacts - General Bots Suite</title>
|
||
|
|
<link rel="stylesheet" href="admin.css">
|
||
|
|
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
||
|
|
<style>
|
||
|
|
.contacts-container {
|
||
|
|
display: flex;
|
||
|
|
height: calc(100vh - 60px);
|
||
|
|
background: var(--bg-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Sidebar */
|
||
|
|
.contacts-sidebar {
|
||
|
|
width: 280px;
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
border-right: 1px solid var(--border-color);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-header {
|
||
|
|
padding: 20px;
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-header h2 {
|
||
|
|
margin: 0 0 15px 0;
|
||
|
|
font-size: 1.25rem;
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box {
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box input {
|
||
|
|
width: 100%;
|
||
|
|
padding: 10px 12px 10px 36px;
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: 8px;
|
||
|
|
background: var(--bg-primary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
font-size: 0.875rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box svg {
|
||
|
|
position: absolute;
|
||
|
|
left: 12px;
|
||
|
|
top: 50%;
|
||
|
|
transform: translateY(-50%);
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-nav {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-section {
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-section-title {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
font-weight: 600;
|
||
|
|
text-transform: uppercase;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
padding: 8px 12px;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
padding: 10px 12px;
|
||
|
|
border-radius: 8px;
|
||
|
|
color: var(--text-primary);
|
||
|
|
text-decoration: none;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: background 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item:hover {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item.active {
|
||
|
|
background: var(--accent-bg);
|
||
|
|
color: var(--accent-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item svg {
|
||
|
|
width: 18px;
|
||
|
|
height: 18px;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item-count {
|
||
|
|
margin-left: auto;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
background: var(--bg-tertiary);
|
||
|
|
padding: 2px 8px;
|
||
|
|
border-radius: 10px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-item.active .nav-item-count {
|
||
|
|
background: var(--accent-color);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.group-color {
|
||
|
|
width: 10px;
|
||
|
|
height: 10px;
|
||
|
|
border-radius: 50%;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Main Content */
|
||
|
|
.contacts-main {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contacts-toolbar {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 15px 24px;
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-left {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-title {
|
||
|
|
font-size: 1.125rem;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-count {
|
||
|
|
font-size: 0.875rem;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-actions {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
padding: 8px 16px;
|
||
|
|
border-radius: 8px;
|
||
|
|
font-size: 0.875rem;
|
||
|
|
font-weight: 500;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.15s ease;
|
||
|
|
border: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary {
|
||
|
|
background: var(--accent-color);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary:hover {
|
||
|
|
background: var(--accent-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-secondary {
|
||
|
|
background: var(--bg-tertiary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-secondary:hover {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-icon {
|
||
|
|
padding: 8px;
|
||
|
|
background: transparent;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-icon:hover {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.view-toggle {
|
||
|
|
display: flex;
|
||
|
|
background: var(--bg-tertiary);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.view-toggle button {
|
||
|
|
padding: 6px 10px;
|
||
|
|
border: none;
|
||
|
|
background: transparent;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
cursor: pointer;
|
||
|
|
border-radius: 6px;
|
||
|
|
transition: all 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.view-toggle button.active {
|
||
|
|
background: var(--bg-primary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Contacts List */
|
||
|
|
.contacts-list-container {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 20px 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contacts-table {
|
||
|
|
width: 100%;
|
||
|
|
border-collapse: collapse;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contacts-table th {
|
||
|
|
text-align: left;
|
||
|
|
padding: 12px 16px;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
font-weight: 600;
|
||
|
|
text-transform: uppercase;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
position: sticky;
|
||
|
|
top: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contacts-table td {
|
||
|
|
padding: 14px 16px;
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contacts-table tr:hover td {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contacts-table tr.selected td {
|
||
|
|
background: var(--accent-bg);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-checkbox {
|
||
|
|
width: 18px;
|
||
|
|
height: 18px;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-name-cell {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-avatar {
|
||
|
|
width: 36px;
|
||
|
|
height: 36px;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: var(--accent-color);
|
||
|
|
color: white;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 0.875rem;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-avatar img {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
border-radius: 50%;
|
||
|
|
object-fit: cover;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-name {
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-email {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-company {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-job-title {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-tags {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
gap: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-tag {
|
||
|
|
font-size: 0.7rem;
|
||
|
|
padding: 2px 8px;
|
||
|
|
border-radius: 10px;
|
||
|
|
background: var(--bg-tertiary);
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
padding: 4px 10px;
|
||
|
|
border-radius: 12px;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.active {
|
||
|
|
background: #dcfce7;
|
||
|
|
color: #166534;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.lead {
|
||
|
|
background: #fef3c7;
|
||
|
|
color: #92400e;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.customer {
|
||
|
|
background: #dbeafe;
|
||
|
|
color: #1e40af;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.prospect {
|
||
|
|
background: #f3e8ff;
|
||
|
|
color: #7c3aed;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.inactive {
|
||
|
|
background: var(--bg-tertiary);
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-actions {
|
||
|
|
display: flex;
|
||
|
|
gap: 4px;
|
||
|
|
opacity: 0;
|
||
|
|
transition: opacity 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contacts-table tr:hover .contact-actions {
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-action-btn {
|
||
|
|
padding: 6px;
|
||
|
|
border: none;
|
||
|
|
background: transparent;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
cursor: pointer;
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-action-btn:hover {
|
||
|
|
background: var(--bg-tertiary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.favorite-btn {
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.favorite-btn.active {
|
||
|
|
color: #f59e0b;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Grid View */
|
||
|
|
.contacts-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card {
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: 12px;
|
||
|
|
padding: 20px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card:hover {
|
||
|
|
border-color: var(--accent-color);
|
||
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 12px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card .contact-avatar {
|
||
|
|
width: 48px;
|
||
|
|
height: 48px;
|
||
|
|
font-size: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-info {
|
||
|
|
flex: 1;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-name {
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-primary);
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-title {
|
||
|
|
font-size: 0.875rem;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-actions {
|
||
|
|
display: flex;
|
||
|
|
gap: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-details {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 8px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-detail {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
font-size: 0.875rem;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-detail svg {
|
||
|
|
width: 16px;
|
||
|
|
height: 16px;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-card-footer {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding-top: 12px;
|
||
|
|
border-top: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Detail Panel */
|
||
|
|
.contact-detail-panel {
|
||
|
|
width: 400px;
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
border-left: 1px solid var(--border-color);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-detail-panel.hidden {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 16px 20px;
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-header-title {
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-header-actions {
|
||
|
|
display: flex;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-profile {
|
||
|
|
padding: 24px;
|
||
|
|
text-align: center;
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-avatar {
|
||
|
|
width: 80px;
|
||
|
|
height: 80px;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: var(--accent-color);
|
||
|
|
color: white;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 1.5rem;
|
||
|
|
margin: 0 auto 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-name {
|
||
|
|
font-size: 1.25rem;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-primary);
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-title {
|
||
|
|
color: var(--text-secondary);
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-quick-actions {
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quick-action-btn {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
gap: 4px;
|
||
|
|
padding: 12px 16px;
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: 8px;
|
||
|
|
background: var(--bg-primary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quick-action-btn:hover {
|
||
|
|
border-color: var(--accent-color);
|
||
|
|
color: var(--accent-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.quick-action-btn svg {
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quick-action-btn span {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-content {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-section {
|
||
|
|
margin-bottom: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-section-title {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
font-weight: 600;
|
||
|
|
text-transform: uppercase;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
margin-bottom: 12px;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-field {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 4px;
|
||
|
|
margin-bottom: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-field-label {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-field-value {
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-field-value a {
|
||
|
|
color: var(--accent-color);
|
||
|
|
text-decoration: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-field-value a:hover {
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-tags {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
gap: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-tag {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
padding: 4px 10px;
|
||
|
|
border-radius: 12px;
|
||
|
|
background: var(--bg-tertiary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.add-tag-btn {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
padding: 4px 10px;
|
||
|
|
border-radius: 12px;
|
||
|
|
background: transparent;
|
||
|
|
border: 1px dashed var(--border-color);
|
||
|
|
color: var(--text-secondary);
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.add-tag-btn:hover {
|
||
|
|
border-color: var(--accent-color);
|
||
|
|
color: var(--accent-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Activity Timeline */
|
||
|
|
.activity-timeline {
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-timeline::before {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
left: 15px;
|
||
|
|
top: 0;
|
||
|
|
bottom: 0;
|
||
|
|
width: 2px;
|
||
|
|
background: var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-item {
|
||
|
|
position: relative;
|
||
|
|
padding-left: 40px;
|
||
|
|
padding-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-icon {
|
||
|
|
position: absolute;
|
||
|
|
left: 6px;
|
||
|
|
top: 0;
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
border: 2px solid var(--border-color);
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-icon svg {
|
||
|
|
width: 10px;
|
||
|
|
height: 10px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-icon.email {
|
||
|
|
border-color: #3b82f6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-icon.email svg {
|
||
|
|
color: #3b82f6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-icon.meeting {
|
||
|
|
border-color: #10b981;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-icon.meeting svg {
|
||
|
|
color: #10b981;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-icon.call {
|
||
|
|
border-color: #f59e0b;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-icon.call svg {
|
||
|
|
color: #f59e0b;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-title {
|
||
|
|
font-size: 0.875rem;
|
||
|
|
color: var(--text-primary);
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activity-time {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Modal */
|
||
|
|
.modal-overlay {
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
bottom: 0;
|
||
|
|
background: rgba(0,0,0,0.5);
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
z-index: 1000;
|
||
|
|
opacity: 0;
|
||
|
|
visibility: hidden;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-overlay.active {
|
||
|
|
opacity: 1;
|
||
|
|
visibility: visible;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal {
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
border-radius: 12px;
|
||
|
|
width: 100%;
|
||
|
|
max-width: 600px;
|
||
|
|
max-height: 90vh;
|
||
|
|
overflow: hidden;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
transform: translateY(20px);
|
||
|
|
transition: transform 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-overlay.active .modal {
|
||
|
|
transform: translateY(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 20px 24px;
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-title {
|
||
|
|
font-size: 1.125rem;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-close {
|
||
|
|
padding: 4px;
|
||
|
|
border: none;
|
||
|
|
background: transparent;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
cursor: pointer;
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-close:hover {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-body {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-footer {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: flex-end;
|
||
|
|
gap: 12px;
|
||
|
|
padding: 16px 24px;
|
||
|
|
border-top: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Form Styles */
|
||
|
|
.form-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 16px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group.full-width {
|
||
|
|
grid-column: span 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-label {
|
||
|
|
font-size: 0.875rem;
|
||
|
|
font-weight: 500;
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-input {
|
||
|
|
padding: 10px 12px;
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: 8px;
|
||
|
|
background: var(--bg-primary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
font-size: 0.875rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-input:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--accent-color);
|
||
|
|
box-shadow: 0 0 0 3px var(--accent-bg);
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-select {
|
||
|
|
padding: 10px 12px;
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: 8px;
|
||
|
|
background: var(--bg-primary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
font-size: 0.875rem;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-textarea {
|
||
|
|
padding: 10px 12px;
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: 8px;
|
||
|
|
background: var(--bg-primary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
font-size: 0.875rem;
|
||
|
|
resize: vertical;
|
||
|
|
min-height: 80px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-section-title {
|
||
|
|
font-size: 0.875rem;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-primary);
|
||
|
|
margin: 24px 0 16px 0;
|
||
|
|
padding-bottom: 8px;
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Import/Export Modal */
|
||
|
|
.import-options {
|
||
|
|
display: flex;
|
||
|
|
gap: 12px;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.import-option {
|
||
|
|
flex: 1;
|
||
|
|
padding: 16px;
|
||
|
|
border: 2px solid var(--border-color);
|
||
|
|
border-radius: 12px;
|
||
|
|
cursor: pointer;
|
||
|
|
text-align: center;
|
||
|
|
transition: all 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.import-option:hover {
|
||
|
|
border-color: var(--accent-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.import-option.selected {
|
||
|
|
border-color: var(--accent-color);
|
||
|
|
background: var(--accent-bg);
|
||
|
|
}
|
||
|
|
|
||
|
|
.import-option svg {
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.import-option.selected svg {
|
||
|
|
color: var(--accent-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.import-option-title {
|
||
|
|
font-weight: 500;
|
||
|
|
color: var(--text-primary);
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.import-option-desc {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.file-drop-zone {
|
||
|
|
border: 2px dashed var(--border-color);
|
||
|
|
border-radius: 12px;
|
||
|
|
padding: 40px;
|
||
|
|
text-align: center;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.file-drop-zone:hover,
|
||
|
|
.file-drop-zone.dragover {
|
||
|
|
border-color: var(--accent-color);
|
||
|
|
background: var(--accent-bg);
|
||
|
|
}
|
||
|
|
|
||
|
|
.file-drop-zone svg {
|
||
|
|
width: 48px;
|
||
|
|
height: 48px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
margin-bottom: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.file-drop-zone p {
|
||
|
|
color: var(--text-secondary);
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.file-drop-zone .browse-link {
|
||
|
|
color: var(--accent-color);
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Empty State */
|
||
|
|
.empty-state {
|
||
|
|
text-align: center;
|
||
|
|
padding: 60px 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.empty-state svg {
|
||
|
|
width: 80px;
|
||
|
|
height: 80px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.empty-state h3 {
|
||
|
|
font-size: 1.125rem;
|
||
|
|
color: var(--text-primary);
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.empty-state p {
|
||
|
|
color: var(--text-secondary);
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Bulk Actions Bar */
|
||
|
|
.bulk-actions-bar {
|
||
|
|
display: none;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 12px 24px;
|
||
|
|
background: var(--accent-bg);
|
||
|
|
border-bottom: 1px solid var(--accent-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.bulk-actions-bar.visible {
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bulk-count {
|
||
|
|
font-weight: 500;
|
||
|
|
color: var(--accent-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.bulk-buttons {
|
||
|
|
display: flex;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* CSS Variables for theming */
|
||
|
|
:root {
|
||
|
|
--bg-primary: #ffffff;
|
||
|
|
--bg-secondary: #f9fafb;
|
||
|
|
--bg-tertiary: #f3f4f6;
|
||
|
|
--bg-hover: #f3f4f6;
|
||
|
|
--text-primary: #111827;
|
||
|
|
--text-secondary: #6b7280;
|
||
|
|
--border-color: #e5e7eb;
|
||
|
|
--accent-color: #3b82f6;
|
||
|
|
--accent-hover: #2563eb;
|
||
|
|
--accent-bg: rgba(59, 130, 246, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (prefers-color-scheme: dark) {
|
||
|
|
:root {
|
||
|
|
--bg-primary: #111827;
|
||
|
|
--bg-secondary: #1f2937;
|
||
|
|
--bg-tertiary: #374151;
|
||
|
|
--bg-hover: #374151;
|
||
|
|
--text-primary: #f9fafb;
|
||
|
|
--text-secondary: #9ca3af;
|
||
|
|
--border-color: #374151;
|
||
|
|
--accent-color: #60a5fa;
|
||
|
|
--accent-hover: #3b82f6;
|
||
|
|
--accent-bg: rgba(96, 165, 250, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.active {
|
||
|
|
background: rgba(34, 197, 94, 0.2);
|
||
|
|
color: #4ade80;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.lead {
|
||
|
|
background: rgba(245, 158, 11, 0.2);
|
||
|
|
color: #fbbf24;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.customer {
|
||
|
|
background: rgba(59, 130, 246, 0.2);
|
||
|
|
color: #60a5fa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contact-status.prospect {
|
||
|
|
background: rgba(139, 92, 246, 0.2);
|
||
|
|
color: #a78bfa;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Responsive */
|
||
|
|
@media (max-width: 1200px) {
|
||
|
|
.contact-detail-panel {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.contacts-sidebar {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.contacts-grid {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-row {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group.full-width {
|
||
|
|
grid-column: span 1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="contacts-container">
|
||
|
|
<!-- Sidebar -->
|
||
|
|
<aside class="contacts-sidebar">
|
||
|
|
<div class="sidebar-header">
|
||
|
|
<h2>Contacts</h2>
|
||
|
|
<div class="search-box">
|
||
|
|
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none">
|
||
|
|
<circle cx="11" cy="11" r="8"></circle>
|
||
|
|
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
||
|
|
</svg>
|
||
|
|
<input type="text" placeholder="Search contacts..." id="sidebarSearch"
|
||
|
|
hx-get="/api/contacts/search"
|
||
|
|
hx-trigger="keyup changed delay:300ms"
|
||
|
|
hx-target="#contactsList">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<nav class="sidebar-nav">
|
||
|
|
<div class="nav-section">
|
||
|
|
<div class="nav-section-title">Views</div>
|
||
|
|
<div class="nav-item active" data-filter="all">
|
||
|
|
<svg viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none">
|
||
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
||
|
|
<circle cx="9" cy="7" r="4"></circle>
|
||
|
|
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
|
||
|
|
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
|