438 lines
7.6 KiB
CSS
438 lines
7.6 KiB
CSS
.chat-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.chat-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 16px 20px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.chat-header-back {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.chat-header-back:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chat-header-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.chat-header-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.chat-header-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chat-header-status {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
/* Message List */
|
|
.chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.chat-message {
|
|
display: flex;
|
|
gap: 12px;
|
|
max-width: 85%;
|
|
}
|
|
|
|
.chat-message.user {
|
|
flex-direction: row-reverse;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.chat-message.assistant {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.chat-message-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.chat-message.assistant .chat-message-avatar {
|
|
background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
}
|
|
|
|
.chat-message.user .chat-message-avatar {
|
|
background: var(--color-primary);
|
|
color: white;
|
|
}
|
|
|
|
.chat-message-content {
|
|
padding: 12px 16px;
|
|
border-radius: 16px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.chat-message-content p {
|
|
margin: 0;
|
|
}
|
|
|
|
.chat-message-content p+p {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.chat-message-content ul,
|
|
.chat-message-content ol {
|
|
margin: 8px 0;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.chat-message-content li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.chat-message-content strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-message.assistant .chat-message-content {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.chat-message.user .chat-message-content {
|
|
background: var(--color-primary);
|
|
color: white;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
/* Confirmation Card */
|
|
.confirmation-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.confirmation-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.confirmation-card-warning {
|
|
margin-bottom: 12px;
|
|
padding: 10px;
|
|
background-color: rgba(245, 158, 11, 0.1);
|
|
border: 1px solid #f59e0b;
|
|
border-radius: 8px;
|
|
color: #b45309;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.confirmation-card-icon {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.confirmation-card-fields {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.confirmation-card-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.confirmation-card-field.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.confirmation-card-label {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.confirmation-card-value {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.confirmation-card-value.amount {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--color-expense);
|
|
}
|
|
|
|
.confirmation-card-value.amount.income {
|
|
color: var(--color-income);
|
|
}
|
|
|
|
.confirmation-card-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.confirmation-card-btn {
|
|
flex: 1;
|
|
padding: 12px;
|
|
border-radius: 12px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: none;
|
|
}
|
|
|
|
.confirmation-card-btn.confirm {
|
|
background: var(--color-primary);
|
|
color: white;
|
|
}
|
|
|
|
.confirmation-card-btn.confirm:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.confirmation-card-btn.cancel {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.confirmation-card-btn.cancel:hover {
|
|
background: var(--bg-quaternary);
|
|
}
|
|
|
|
/* Input Area */
|
|
.chat-input-area {
|
|
padding: 12px 20px 24px;
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.chat-input-container {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 12px;
|
|
background: var(--bg-primary);
|
|
border-radius: 24px;
|
|
padding: 8px 16px;
|
|
border: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.chat-input {
|
|
flex: 1;
|
|
background: none;
|
|
border: none;
|
|
outline: none;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
resize: none;
|
|
max-height: 120px;
|
|
min-height: 24px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.chat-input::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.chat-input-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.chat-input-btn:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chat-input-btn.send {
|
|
background: var(--color-primary);
|
|
color: white;
|
|
}
|
|
|
|
.chat-input-btn.send:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.chat-input-btn.send:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.chat-input-btn.recording {
|
|
background: #ef4444;
|
|
color: white;
|
|
animation: pulse 1s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
|
|
0%,
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1.1);
|
|
}
|
|
}
|
|
|
|
/* Loading */
|
|
.chat-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
border-bottom-left-radius: 4px;
|
|
max-width: 120px;
|
|
}
|
|
|
|
.chat-loading-dots {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.chat-loading-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--text-tertiary);
|
|
animation: bounce 1.4s infinite ease-in-out;
|
|
}
|
|
|
|
.chat-loading-dot:nth-child(1) {
|
|
animation-delay: -0.32s;
|
|
}
|
|
|
|
.chat-loading-dot:nth-child(2) {
|
|
animation-delay: -0.16s;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
|
|
0%,
|
|
80%,
|
|
100% {
|
|
transform: scale(0);
|
|
}
|
|
|
|
40% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
/* Empty State */
|
|
.chat-empty {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
padding: 40px;
|
|
}
|
|
|
|
.chat-empty-icon {
|
|
font-size: 64px;
|
|
}
|
|
|
|
.chat-empty-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chat-empty-desc {
|
|
font-size: 14px;
|
|
color: var(--text-tertiary);
|
|
text-align: center;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.chat-empty-suggestions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: center;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.chat-suggestion-chip {
|
|
padding: 8px 16px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.chat-suggestion-chip:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border-color: var(--color-primary);
|
|
} |