35702-vm/assets/css/custom.css
Flatlogic Bot 36400880a5 PyCharm 2023.3.2 (Community Edition)
Build #PC-233
2025-11-14 07:40:28 +00:00

401 lines
7.7 KiB
CSS

:root {
--primary-color: #0D6EFD;
--secondary-color: #6C757D;
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] {
--background-color: #121212;
--surface-color: #1E1E1E;
--text-color: #FFFFFF;
--text-color-muted: rgba(255, 255, 255, 0.6);
--border-color: #333;
--input-bg: #3A3B3C;
--header-bg: linear-gradient(to right, #1e1e1e, #2a2a2a);
--divider-bg: #333;
--divider-text: #aaa;
--received-bubble-bg: #3A3B3C;
}
[data-theme="light"] {
--background-color: #F0F2F5;
--surface-color: #FFFFFF;
--text-color: #050505;
--text-color-muted: rgba(0, 0, 0, 0.6);
--border-color: #E0E0E0;
--input-bg: #F0F2F5;
--header-bg: #FFFFFF;
--divider-bg: #E9EBEE;
--divider-text: #65676B;
--received-bubble-bg: #E4E6EB;
}
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: var(--font-family);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.mobile-chat-container {
width: 100%;
max-width: 450px;
height: 90vh;
max-height: 800px;
background-color: var(--surface-color);
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid var(--border-color);
}
.chat-header {
background: var(--header-bg);
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
border-bottom: 1px solid var(--border-color);
}
.chat-header .avatar {
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid var(--primary-color);
}
.chat-header .actions a,
.chat-header .d-flex a {
color: var(--text-color) !important;
}
.chat-header .small {
color: var(--text-color-muted) !important;
}
.chat-body {
flex-grow: 1;
padding: 1rem;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.message-day-divider {
text-align: center;
margin: 1rem 0;
}
.message-day-divider span {
background-color: var(--divider-bg);
color: var(--divider-text);
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
}
.message {
display: flex;
margin-bottom: 1rem;
max-width: 80%;
}
.message.sent {
align-self: flex-end;
flex-direction: row-reverse;
}
.message.received {
align-self: flex-start;
}
.message-bubble {
padding: 0.75rem 1rem;
border-radius: 20px;
position: relative;
}
.message.sent .message-bubble {
background-color: var(--primary-color);
color: white;
border-top-right-radius: 5px;
}
.message.received .message-bubble {
background-color: var(--received-bubble-bg);
color: var(--text-color);
border-top-left-radius: 5px;
}
.message-time {
font-size: 0.7rem;
color: var(--text-color-muted);
display: block;
text-align: right;
margin-top: 5px;
}
.message.sent .message-time {
color: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .message.sent .message-time {
color: rgba(255, 255, 255, 0.8);
}
.chat-footer {
padding: 1rem;
background-color: var(--surface-color);
border-top: 1px solid var(--border-color);
display: flex;
align-items: center;
}
.chat-footer .input-group {
flex-grow: 1;
}
.chat-footer .form-control {
background-color: var(--input-bg);
border-color: var(--input-bg);
color: var(--text-color);
border-radius: 20px;
}
.chat-footer .form-control::placeholder {
color: var(--text-color-muted);
}
.chat-footer .form-control:focus {
background-color: var(--input-bg);
border-color: var(--primary-color);
box-shadow: none;
color: var(--text-color);
}
.chat-footer .btn-secondary {
background: transparent;
border: none;
color: var(--text-color-muted);
font-size: 1.2rem;
}
.chat-footer .mic-button, .chat-footer .send-button {
margin-left: 0.5rem;
border-radius: 50%;
width: 48px;
height: 48px;
font-size: 1.2rem;
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.voice-message {
display: flex;
align-items: center;
gap: 0.5rem;
}
.voice-message .bi-play-circle-fill {
font-size: 1.5rem;
}
.voice-progress {
flex-grow: 1;
height: 4px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 2px;
}
.mic-button.recording {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
}
}
.voice-message .play-button {
padding: 0;
background: transparent;
border: none;
color: var(--text-color);
font-size: 1.5rem;
}
[data-theme="dark"] .voice-message .play-button,
[data-theme="dark"] .voice-message .share-button {
color: white;
}
.voice-message-controls {
display: flex;
align-items: center;
gap: 0.5rem;
flex-grow: 1;
}
.voice-progress-container {
flex-grow: 1;
height: 4px;
background-color: var(--text-color-muted);
border-radius: 2px;
cursor: pointer;
margin: 0 0.5rem;
}
.share-button {
padding: 0;
background: transparent;
border: none;
color: var(--text-color);
font-size: 1.2rem;
opacity: 0.7;
}
.voice-progress {
height: 100%;
width: 0;
background-color: var(--text-color);
border-radius: 2px;
}
[data-theme="dark"] .voice-progress {
background-color: white;
}
/* Custom scrollbar for webkit browsers */
.chat-body::-webkit-scrollbar {
width: 6px;
}
.chat-body::-webkit-scrollbar-track {
background: var(--surface-color);
}
.chat-body::-webkit-scrollbar-thumb {
background-color: #555;
border-radius: 6px;
}
/* Theme Panel */
.theme-panel {
position: absolute;
top: 70px;
right: 20px;
background-color: var(--surface-color);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 100;
display: none;
}
.theme-panel.show {
display: block;
}
.theme-panel h5 {
margin-top: 0;
margin-bottom: 0.75rem;
font-size: 1rem;
font-weight: 600;
}
#emoji-btn {
background: none;
border: none;
color: var(--text-color-muted);
font-size: 1.5rem;
cursor: pointer;
padding: 0 0.5rem;
}
#emoji-panel {
height: 280px;
background: var(--surface-color);
border-top: 1px solid var(--border-color);
padding: 10px;
overflow-y: auto;
display: none; /* Hidden by default */
}
#emoji-panel.show {
display: block;
}
.emoji-categories {
display: flex;
border-bottom: 1px solid var(--border-color);
margin-bottom: 10px;
}
.category-btn {
background: none;
border: none;
color: var(--text-color-muted);
padding: 10px 15px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
}
.category-btn.active {
border-bottom: 2px solid var(--primary-color);
color: var(--primary-color);
}
.emoji-grid, .sticker-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
gap: 10px;
}
.sticker-grid {
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}
.emoji-grid span, .sticker-grid img {
cursor: pointer;
font-size: 28px;
text-align: center;
}
.sticker-grid img {
width: 100%;
height: auto;
}
.message-content.image-message {
padding: 0;
background-color: transparent;
border-radius: 15px;
overflow: hidden;
}
.message-content.image-message img {
max-width: 250px;
display: block;
height: auto;
}