354 lines
5.9 KiB
CSS
354 lines
5.9 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
|
|
|
|
:root {
|
|
--bg: #f5f7f9;
|
|
--surface: #ffffff;
|
|
--text: #111827;
|
|
--muted: #6b7280;
|
|
--border: #e5e7eb;
|
|
--primary: #25d366;
|
|
--primary-dark: #1ea856;
|
|
--sidebar-dark: #1f2937;
|
|
--sidebar-dark-muted: #9ca3af;
|
|
--shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.topbar {
|
|
height: 64px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 1.5rem;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.brand-badge {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
background: var(--primary);
|
|
color: #fff;
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.topbar .meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
font-size: 0.9rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
padding: 0.25rem 0.6rem;
|
|
border-radius: 999px;
|
|
background: rgba(37, 211, 102, 0.12);
|
|
color: var(--primary-dark);
|
|
font-weight: 600;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.app-shell {
|
|
height: calc(100vh - 64px);
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding: 1rem 1.5rem 1.5rem;
|
|
}
|
|
|
|
.panel {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.contacts-panel {
|
|
width: 320px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.contacts-panel .search {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.contacts-list {
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.contact-item {
|
|
padding: 0.85rem 1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.contact-item:hover,
|
|
.contact-item.active {
|
|
background: rgba(37, 211, 102, 0.08);
|
|
}
|
|
|
|
.contact-item .meta {
|
|
font-size: 0.75rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.unread {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border-radius: 999px;
|
|
font-size: 0.7rem;
|
|
padding: 0.1rem 0.45rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chat-panel {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.chat-header {
|
|
padding: 1rem 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.chat-actions .btn {
|
|
border-radius: 999px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.chat-body {
|
|
flex: 1;
|
|
padding: 1.25rem;
|
|
overflow-y: auto;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.message {
|
|
max-width: 70%;
|
|
padding: 0.65rem 0.9rem;
|
|
border-radius: 14px;
|
|
margin-bottom: 0.6rem;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.message.in {
|
|
background: #ffffff;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.message.out {
|
|
background: rgba(37, 211, 102, 0.18);
|
|
margin-left: auto;
|
|
border: 1px solid rgba(37, 211, 102, 0.3);
|
|
}
|
|
|
|
.message .time {
|
|
font-size: 0.7rem;
|
|
color: var(--muted);
|
|
margin-top: 0.35rem;
|
|
}
|
|
|
|
.chat-input {
|
|
border-top: 1px solid var(--border);
|
|
padding: 1rem 1.25rem;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.chat-input .form-control {
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.quick-replies {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.quick-replies .btn {
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.admin-shell {
|
|
display: grid;
|
|
grid-template-columns: 240px 1fr;
|
|
height: calc(100vh - 64px);
|
|
}
|
|
|
|
.admin-sidebar {
|
|
background: var(--sidebar-dark);
|
|
color: #fff;
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
.admin-sidebar .nav-link {
|
|
color: var(--sidebar-dark-muted);
|
|
border-radius: 8px;
|
|
margin-bottom: 0.3rem;
|
|
padding: 0.6rem 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.admin-sidebar .nav-link.active,
|
|
.admin-sidebar .nav-link:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #fff;
|
|
}
|
|
|
|
.admin-content {
|
|
padding: 1.5rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 1.25rem;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.table thead th {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.badge-status {
|
|
padding: 0.35rem 0.6rem;
|
|
border-radius: 999px;
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.badge-status.normal {
|
|
background: rgba(37, 211, 102, 0.15);
|
|
color: var(--primary-dark);
|
|
}
|
|
|
|
.badge-status.blocked {
|
|
background: rgba(239, 68, 68, 0.12);
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.section-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 1.5rem;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 1.5rem;
|
|
right: 1.5rem;
|
|
z-index: 1055;
|
|
}
|
|
|
|
.form-control,
|
|
.form-select {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--primary-dark);
|
|
border-color: var(--primary-dark);
|
|
}
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.empty {
|
|
text-align: center;
|
|
color: var(--muted);
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.app-shell {
|
|
flex-direction: column;
|
|
height: auto;
|
|
}
|
|
.contacts-panel {
|
|
width: 100%;
|
|
}
|
|
.admin-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.admin-sidebar {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
overflow-x: auto;
|
|
}
|
|
}
|
|
|
|
/* Emoji Button Alignment */
|
|
.chat-input .position-relative {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
[data-emoji-trigger] {
|
|
padding: 0.5rem 0.7rem;
|
|
font-size: 1.25rem;
|
|
line-height: 1;
|
|
background-color: var(--surface) !important;
|
|
border-color: var(--border) !important;
|
|
border-radius: 999px !important;
|
|
}
|
|
|
|
emoji-picker {
|
|
--emoji-size: 1.5rem;
|
|
--indicator-color: var(--primary);
|
|
--border-color: var(--border);
|
|
width: 320px;
|
|
height: 400px;
|
|
}
|