332 lines
6.8 KiB
CSS
332 lines
6.8 KiB
CSS
#fab-container {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
z-index: 1050;
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
gap: 1rem;
|
|
align-items: flex-end;
|
|
transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
body.miniplayer-active #fab-container {
|
|
bottom: calc(85px + 2rem);
|
|
}
|
|
|
|
.chat-fab, .fab-btn {
|
|
position: relative;
|
|
right: auto;
|
|
bottom: auto;
|
|
}
|
|
|
|
.chat-fab {
|
|
width: 60px;
|
|
height: 60px;
|
|
background: var(--gradient);
|
|
color: var(--primary);
|
|
border-radius: 50%;
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.8rem;
|
|
cursor: pointer;
|
|
box-shadow: 0 5px 20px rgba(0, 224, 255, 0.3);
|
|
transition: var(--transition);
|
|
}
|
|
.chat-fab:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 8px 25px rgba(0, 224, 255, 0.4);
|
|
}
|
|
|
|
.chat-window {
|
|
position: fixed;
|
|
bottom: 95px;
|
|
right: 2rem;
|
|
width: 400px;
|
|
height: 520px;
|
|
max-width: 90vw;
|
|
max-height: 70vh;
|
|
background-color: var(--primary);
|
|
border-radius: var(--border-radius-lg);
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--glass-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
z-index: 1051;
|
|
backdrop-filter: blur(15px);
|
|
-webkit-backdrop-filter: blur(15px);
|
|
background: rgba(10, 10, 15, 0.8);
|
|
cursor: default;
|
|
}
|
|
.light-theme .chat-window {
|
|
background: rgba(244, 247, 250, 0.8);
|
|
}
|
|
|
|
.chat-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.8rem 1.2rem;
|
|
background-color: rgba(255,255,255,0.05);
|
|
border-bottom: 1px solid var(--glass-border);
|
|
cursor: move;
|
|
flex-shrink: 0;
|
|
}
|
|
.chat-title {
|
|
font-family: 'Orbitron', sans-serif;
|
|
color: var(--text-primary);
|
|
font-size: 1.1rem;
|
|
margin: 0;
|
|
}
|
|
.chat-close-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 1.2rem;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
.chat-close-btn:hover {
|
|
color: var(--accent);
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.chat-messages {
|
|
flex-grow: 1;
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar-thumb {
|
|
background-color: var(--glass-border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.message-wrapper {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 0.75rem;
|
|
max-width: 90%;
|
|
animation: slide-in-bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
|
|
}
|
|
|
|
.assistant-wrapper {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.user-wrapper {
|
|
align-self: flex-end;
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--gradient);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
|
|
}
|
|
|
|
.avatar svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.message {
|
|
padding: 0.8rem 1.2rem;
|
|
border-radius: var(--border-radius-md);
|
|
line-height: 1.6;
|
|
word-wrap: break-word;
|
|
}
|
|
.message p {
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.user-message {
|
|
background: var(--gradient);
|
|
color: var(--primary);
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.assistant-message {
|
|
background-color: var(--secondary);
|
|
color: var(--text-primary);
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.chat-item-actions {
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--glass-border);
|
|
}
|
|
|
|
.chat-action-title {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.chat-action-buttons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: .5rem;
|
|
}
|
|
|
|
.chat-action-buttons button {
|
|
background-color: var(--glass);
|
|
border: 1px solid var(--glass-border);
|
|
color: var(--text-secondary);
|
|
padding: .4rem .8rem;
|
|
border-radius: 20px;
|
|
font-size: .8rem;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.chat-action-buttons button:hover {
|
|
background-color: var(--accent);
|
|
color: var(--primary);
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.chat-download-all {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.typing-indicator-bubble {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding: 14px 16px;
|
|
}
|
|
.typing-indicator-bubble span {
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: var(--text-secondary);
|
|
border-radius: 50%;
|
|
animation: typing-pulse 1.4s infinite;
|
|
}
|
|
.typing-indicator-bubble span:nth-child(2) { animation-delay: 0.2s; }
|
|
.typing-indicator-bubble span:nth-child(3) { animation-delay: 0.4s; }
|
|
|
|
@keyframes typing-pulse {
|
|
0%, 100% { opacity: 0.2; transform: scale(0.8); }
|
|
50% { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
#chat-input-form {
|
|
display: flex;
|
|
padding: 0.8rem;
|
|
border-top: 1px solid var(--glass-border);
|
|
gap: 0.8rem;
|
|
background: linear-gradient(to top, rgba(16, 17, 22, 0.8), rgba(16, 17, 22, 0.5));
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.chat-input {
|
|
flex-grow: 1;
|
|
background: var(--glass);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 20px;
|
|
padding: 0.7rem 1.2rem;
|
|
color: var(--text-primary);
|
|
resize: none;
|
|
font-family: 'Montserrat', sans-serif;
|
|
font-size: 0.95rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.chat-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 15px rgba(0, 224, 255, 0.2);
|
|
background: var(--secondary);
|
|
}
|
|
|
|
.chat-send-btn {
|
|
flex-shrink: 0;
|
|
background: var(--accent);
|
|
color: var(--primary);
|
|
border: none;
|
|
border-radius: 12px;
|
|
width: 42px;
|
|
height: 42px;
|
|
font-size: 1.1rem;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.chat-send-btn svg {
|
|
transition: transform 0.3s ease;
|
|
}
|
|
.chat-send-btn:hover {
|
|
background: var(--accent-dark);
|
|
transform: scale(1.1);
|
|
box-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
|
|
}
|
|
.chat-send-btn:hover svg {
|
|
transform: translateX(2px) rotate(-15deg);
|
|
}
|
|
.chat-send-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
.chat-send-btn:disabled:hover svg {
|
|
transform: none;
|
|
}
|
|
|
|
@keyframes slide-in-bottom {
|
|
0% {
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body.miniplayer-active #fab-container {
|
|
bottom: calc(110px + 1rem);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.chat-window {
|
|
width: 100%;
|
|
height: 100%;
|
|
bottom: 0;
|
|
right: 0;
|
|
border-radius: 0;
|
|
max-height: none;
|
|
}
|
|
} |