482 lines
10 KiB
HTML
482 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=1920, height=1080">
|
|
<title>AI Assistant</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: #0f0f1a;
|
|
width: 1920px;
|
|
height: 1080px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.window {
|
|
width: 900px;
|
|
height: 700px;
|
|
background: #1a1a2e;
|
|
border-radius: 12px;
|
|
box-shadow: 0 25px 80px rgba(0,0,0,0.5);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid #2a2a4a;
|
|
}
|
|
|
|
.titlebar {
|
|
height: 48px;
|
|
background: #252540;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid #2a2a4a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.traffic-lights {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.light {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.light.red { background: #ff5f57; }
|
|
.light.yellow { background: #ffbd2e; }
|
|
.light.green { background: #28ca41; }
|
|
|
|
.title {
|
|
flex: 1;
|
|
text-align: center;
|
|
color: #8888aa;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chat-area {
|
|
flex: 1;
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-width: 75%;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.message.user {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.message.ai {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.bubble {
|
|
padding: 14px 18px;
|
|
border-radius: 18px;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.message.user .bubble {
|
|
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
|
color: white;
|
|
border-bottom-right-radius: 6px;
|
|
}
|
|
|
|
.message.ai .bubble {
|
|
background: #2a2a4a;
|
|
color: #e2e2f0;
|
|
border-bottom-left-radius: 6px;
|
|
}
|
|
|
|
.typing-indicator {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 14px 18px;
|
|
background: #2a2a4a;
|
|
border-radius: 18px;
|
|
border-bottom-left-radius: 6px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.typing-indicator .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: #6366f1;
|
|
border-radius: 50%;
|
|
animation: bounce 1.4s infinite ease-in-out;
|
|
}
|
|
|
|
.typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
|
|
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
|
|
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
|
|
|
|
@keyframes bounce {
|
|
0%, 80%, 100% { transform: translateY(0); }
|
|
40% { transform: translateY(-6px); }
|
|
}
|
|
|
|
.embed-area {
|
|
margin-top: 12px;
|
|
background: #12121f;
|
|
border: 1px solid #2a2a4a;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.embed-loading {
|
|
height: 300px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
color: #6366f1;
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid #2a2a4a;
|
|
border-top-color: #6366f1;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.embed-slots {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
height: 340px;
|
|
gap: 2px;
|
|
background: #2a2a4a;
|
|
}
|
|
|
|
.embed-slot {
|
|
background: #1a1a2e;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 16px;
|
|
}
|
|
|
|
.embed-slot.ghl {
|
|
grid-row: span 2;
|
|
}
|
|
|
|
.slot-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid #2a2a4a;
|
|
}
|
|
|
|
.slot-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: white;
|
|
}
|
|
|
|
.slot-icon.ghl { background: #f97316; }
|
|
.slot-icon.qb { background: #22c55e; }
|
|
.slot-icon.stripe { background: #6366f1; }
|
|
|
|
.slot-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #e2e2f0;
|
|
}
|
|
|
|
.slot-content {
|
|
flex: 1;
|
|
font-size: 12px;
|
|
color: #8888aa;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.slot-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
gap: 12px;
|
|
}
|
|
|
|
.slot-loading .spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-width: 2px;
|
|
}
|
|
|
|
/* Contact list */
|
|
.contact-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.contact-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
background: #12121f;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.contact-avatar {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: #3a3a5a;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
color: #8888aa;
|
|
}
|
|
|
|
.contact-name { color: #e2e2f0; flex: 1; }
|
|
|
|
.contact-status {
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 9px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.contact-status.overdue { background: #dc2626; color: white; }
|
|
.contact-status.paid { background: #22c55e; color: white; }
|
|
.contact-status.pending { background: #f59e0b; color: white; }
|
|
|
|
/* Mini chat in GHL */
|
|
.mini-chat {
|
|
background: #12121f;
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
margin-bottom: 8px;
|
|
max-height: 100px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mini-msg {
|
|
font-size: 10px;
|
|
padding: 4px 8px;
|
|
border-radius: 8px;
|
|
margin-bottom: 4px;
|
|
max-width: 80%;
|
|
}
|
|
|
|
.mini-msg.out {
|
|
background: #6366f1;
|
|
color: white;
|
|
margin-left: auto;
|
|
text-align: right;
|
|
}
|
|
|
|
.mini-msg.in {
|
|
background: #2a2a4a;
|
|
color: #e2e2f0;
|
|
}
|
|
|
|
/* P&L Table */
|
|
.pnl-table {
|
|
width: 100%;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.pnl-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid #2a2a4a;
|
|
}
|
|
|
|
.pnl-row.header {
|
|
font-weight: 600;
|
|
color: #8888aa;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.pnl-label { color: #8888aa; }
|
|
.pnl-value { color: #e2e2f0; }
|
|
.pnl-value.positive { color: #22c55e; }
|
|
.pnl-value.negative { color: #dc2626; }
|
|
|
|
/* Stripe chart */
|
|
.stripe-chart {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
}
|
|
|
|
.donut {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
background: conic-gradient(#6366f1 0% 85%, #2a2a4a 85% 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.donut-inner {
|
|
width: 50px;
|
|
height: 50px;
|
|
background: #1a1a2e;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #6366f1;
|
|
}
|
|
|
|
.stripe-amount {
|
|
margin-top: 8px;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: #e2e2f0;
|
|
}
|
|
|
|
.stripe-label {
|
|
font-size: 10px;
|
|
color: #8888aa;
|
|
}
|
|
|
|
/* Input area */
|
|
.input-area {
|
|
padding: 16px 24px 24px;
|
|
border-top: 1px solid #2a2a4a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.input-wrapper {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
background: #12121f;
|
|
border: 1px solid #2a2a4a;
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.input-field {
|
|
flex: 1;
|
|
background: none;
|
|
border: none;
|
|
color: #e2e2f0;
|
|
font-size: 14px;
|
|
outline: none;
|
|
}
|
|
|
|
.input-field::placeholder {
|
|
color: #5a5a7a;
|
|
}
|
|
|
|
.send-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
|
border: none;
|
|
border-radius: 8px;
|
|
color: white;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.send-btn svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.cursor {
|
|
display: inline-block;
|
|
width: 2px;
|
|
height: 16px;
|
|
background: #6366f1;
|
|
margin-left: 2px;
|
|
animation: blink 1s infinite;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
@keyframes blink {
|
|
0%, 50% { opacity: 1; }
|
|
51%, 100% { opacity: 0; }
|
|
}
|
|
|
|
.hidden { display: none !important; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="window">
|
|
<div class="titlebar">
|
|
<div class="traffic-lights">
|
|
<div class="light red"></div>
|
|
<div class="light yellow"></div>
|
|
<div class="light green"></div>
|
|
</div>
|
|
<div class="title">AI Assistant</div>
|
|
<div style="width: 52px;"></div>
|
|
</div>
|
|
|
|
<div class="chat-area" id="chatArea">
|
|
<!-- Messages will be inserted here -->
|
|
</div>
|
|
|
|
<div class="input-area">
|
|
<div class="input-wrapper">
|
|
<input type="text" class="input-field" id="inputField" placeholder="Type a message...">
|
|
<button class="send-btn">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M22 2L11 13M22 2L15 22L11 13L2 9L22 2Z"/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |