458 lines
7.8 KiB
CSS
458 lines
7.8 KiB
CSS
.dashboard-body {
|
|
display: grid;
|
|
grid-template-columns: 280px 1fr;
|
|
height: 100vh;
|
|
background: #F1F5F9;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
background: var(--primary);
|
|
color: white;
|
|
padding: 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar .logo {
|
|
color: white;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.side-nav {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.side-nav a {
|
|
color: #94A3B8;
|
|
text-decoration: none;
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.side-nav a:hover, .side-nav a.active {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
}
|
|
|
|
.side-nav a.nav-disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.side-nav a.nav-disabled small {
|
|
font-size: 0.6rem;
|
|
background: var(--accent);
|
|
color: white;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.user-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: var(--secondary);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.info span {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
color: #94A3B8;
|
|
}
|
|
|
|
/* Main Content */
|
|
.dashboard-main {
|
|
padding: 2rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.dash-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.search-bar input {
|
|
width: 400px;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 99px;
|
|
border: 1px solid #E2E8F0;
|
|
outline: none;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Stats */
|
|
.stats-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
padding: 1.5rem;
|
|
border-radius: 20px;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.stat-card span {
|
|
font-size: 0.875rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.quota-bars {
|
|
margin-top: 0.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.quota-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.quota-item small {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.bar {
|
|
height: 6px;
|
|
background: #E2E8F0;
|
|
border-radius: 99px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.fill {
|
|
height: 100%;
|
|
background: var(--secondary);
|
|
border-radius: 99px;
|
|
}
|
|
|
|
.stat-card h3 {
|
|
font-size: 1.75rem;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.text-accent { color: var(--accent); }
|
|
|
|
/* Queue Table */
|
|
.queue-section {
|
|
display: grid;
|
|
grid-template-columns: 1fr 300px;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.section-card {
|
|
background: white;
|
|
border-radius: 24px;
|
|
padding: 2rem;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.queue-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.queue-table th {
|
|
text-align: left;
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid #F1F5F9;
|
|
}
|
|
|
|
.queue-table td {
|
|
padding: 1.25rem 0;
|
|
border-bottom: 1px solid #F1F5F9;
|
|
}
|
|
|
|
.counter-badge {
|
|
background: #F1F5F9;
|
|
color: var(--primary);
|
|
border: 2px solid var(--primary);
|
|
padding: 0.6rem 1rem;
|
|
font-size: 0.9rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.status-pill {
|
|
padding: 0.4rem 0.8rem;
|
|
border-radius: 99px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-pill.in-room {
|
|
background: #DBEAFE;
|
|
color: #1E40AF;
|
|
}
|
|
|
|
.status-pill.waiting {
|
|
background: #FEF3C7;
|
|
color: #92400E;
|
|
}
|
|
|
|
.status-pill.pending-pay {
|
|
background: #FFEDD5;
|
|
color: #C2410C;
|
|
border: 1px solid #F97316;
|
|
}
|
|
|
|
.source-tag {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
padding: 0.25rem 0.6rem;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.source-tag.online {
|
|
background: rgba(56, 189, 248, 0.1);
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.source-tag.walkin {
|
|
background: rgba(100, 116, 139, 0.1);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 2000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.5);
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: white;
|
|
margin: 10% auto;
|
|
padding: 2rem;
|
|
width: 500px;
|
|
border-radius: 24px;
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.close-modal {
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.input-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.input-group label {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.input-group input {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.med-row {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr 1fr;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.med-row input {
|
|
padding: 0.6rem;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.voice-section {
|
|
margin-bottom: 2rem;
|
|
padding: 1rem;
|
|
background: #F8FAFC;
|
|
border-radius: 16px;
|
|
border: 1px dashed var(--border);
|
|
text-align: center;
|
|
}
|
|
|
|
.recording-status {
|
|
margin-top: 1rem;
|
|
color: #EF4444;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
.pulse {
|
|
width: 12px;
|
|
height: 12px;
|
|
background: #EF4444;
|
|
border-radius: 50%;
|
|
animation: pulse-red 1.5s infinite;
|
|
}
|
|
|
|
@keyframes pulse-red {
|
|
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
|
|
70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
|
|
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
|
|
}
|
|
|
|
.ai-insights-box {
|
|
margin-top: 1rem;
|
|
background: white;
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
border-left: 4px solid var(--accent);
|
|
text-align: left;
|
|
}
|
|
|
|
.ai-insights-box h4 {
|
|
font-size: 0.8rem;
|
|
color: var(--accent);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.ai-insights-box p {
|
|
font-size: 0.85rem;
|
|
color: var(--text-main);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.modal-footer {
|
|
margin-top: 2rem;
|
|
text-align: right;
|
|
}
|
|
|
|
.triage-pill {
|
|
font-size: 0.75rem;
|
|
padding: 0.25rem 0.6rem;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.triage-pill.urgent {
|
|
background: #FEE2E2;
|
|
color: #991B1B;
|
|
border-left: 3px solid #EF4444;
|
|
}
|
|
|
|
.triage-pill.moderate {
|
|
background: #FEF3C7;
|
|
color: #92400E;
|
|
border-left: 3px solid #F59E0B;
|
|
}
|
|
|
|
.triage-pill.routine {
|
|
background: #DCFCE7;
|
|
color: #166534;
|
|
border-left: 3px solid #10B981;
|
|
}
|
|
|
|
.lang-tag {
|
|
font-size: 0.7rem;
|
|
background: #F1F5F9;
|
|
color: var(--text-muted);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 8px;
|
|
border: none;
|
|
background: var(--primary);
|
|
color: white;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btn-small.secondary {
|
|
background: #F1F5F9;
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* AI Insights Side Panel */
|
|
.ai-insights {
|
|
background: linear-gradient(135deg, #0F172A, #1E293B);
|
|
color: white;
|
|
}
|
|
|
|
.ai-insights h3 {
|
|
margin-bottom: 1rem;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.ai-insights p {
|
|
font-size: 0.9rem;
|
|
opacity: 0.9;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.insight-item {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
border-left: 3px solid var(--accent);
|
|
}
|
|
|
|
.insight-item small {
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|