/* MCP Agent Monitor - Read-only Dashboard */
:root {
--primary: #3b82f6;
--primary-light: #60a5fa;
--secondary: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--bg-primary: #ffffff;
--bg-secondary: #f9fafb;
--bg-tertiary: #f3f4f6;
--text-primary: #111827;
--text-secondary: #6b7280;
--text-muted: #9ca3af;
--border: #e5e7eb;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--radius: 0.5rem;
--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
:root {
--primary: #60a5fa;
--primary-light: #93bbfc;
--secondary: #34d399;
--warning: #fbbf24;
--danger: #f87171;
--bg-primary: #1f2937;
--bg-secondary: #111827;
--bg-tertiary: #374151;
--text-primary: #f3f4f6;
--text-secondary: #d1d5db;
--text-muted: #9ca3af;
--border: #374151;
}
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Smooth scrolling for the entire app */
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: var(--text-primary);
background: var(--bg-secondary);
height: 100vh;
overflow: hidden;
}
/* App Layout */
.app-container {
display: flex;
flex-direction: column;
height: 100%;
}
/* Header */
.app-header {
background: var(--bg-primary);
border-bottom: 1px solid var(--border);
padding: 1rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: var(--shadow-sm);
}
.app-header h1 {
font-size: 1.5rem;
font-weight: 700;
background: linear-gradient(135deg, var(--primary), var(--primary-light));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.header-controls {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
/* Control groups for better organization */
.control-group {
display: flex;
align-items: center;
gap: 0.5rem;
background: var(--bg-tertiary);
padding: 0.25rem;
border-radius: var(--radius);
}
/* Visual divider between groups */
.control-divider {
width: 1px;
height: 24px;
background: var(--border);
opacity: 0.5;
}
/* Compact toggle design */
.control-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.375rem 0.75rem;
border-radius: calc(var(--radius) - 2px);
font-size: 0.813rem;
color: var(--text-secondary);
cursor: pointer;
transition: var(--transition);
user-select: none;
white-space: nowrap;
}
.control-item:hover {
background: var(--bg-secondary);
color: var(--text-primary);
}
.control-item.toggle-compact input[type="checkbox"] {
position: relative;
width: 32px;
height: 18px;
-webkit-appearance: none;
appearance: none;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 18px;
cursor: pointer;
transition: var(--transition);
flex-shrink: 0;
}
.control-item.toggle-compact input[type="checkbox"]:checked {
background: var(--primary);
border-color: var(--primary);
}
.control-item.toggle-compact input[type="checkbox"]:before {
content: '';
position: absolute;
width: 12px;
height: 12px;
border-radius: 50%;
top: 2px;
left: 2px;
background: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.control-item.toggle-compact input[type="checkbox"]:checked:before {
transform: translateX(14px);
}
/* Unified button style for control bar */
.control-button {
display: flex;
align-items: center;
gap: 0.375rem;
padding: 0.375rem 0.75rem;
background: transparent;
border: none;
border-radius: calc(var(--radius) - 2px);
font-size: 0.813rem;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
transition: var(--transition);
white-space: nowrap;
}
.control-button:hover {
background: var(--bg-secondary);
color: var(--text-primary);
}
.control-button:active {
transform: scale(0.98);
}
.control-button svg {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.control-button.danger {
color: var(--danger);
}
.control-button.danger:hover {
background: rgba(239, 68, 68, 0.1);
color: var(--danger);
}
/* Modern toggle switch with enhanced styling */
.toggle-switch {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: var(--text-primary);
cursor: pointer;
padding: 0.5rem 0.75rem;
border-radius: var(--radius);
transition: var(--transition);
position: relative;
user-select: none;
}
.toggle-switch:hover {
background: var(--bg-tertiary);
transform: translateY(-1px);
}
.toggle-switch input[type="checkbox"] {
position: relative;
width: 44px;
height: 24px;
-webkit-appearance: none;
appearance: none;
background: var(--bg-tertiary);
border: 2px solid var(--border);
border-radius: 24px;
cursor: pointer;
transition: var(--transition);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.toggle-switch input[type="checkbox"]:checked {
background: var(--primary);
border-color: var(--primary);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.toggle-switch input[type="checkbox"]:before {
content: '';
position: absolute;
width: 18px;
height: 18px;
border-radius: 50%;
top: 1px;
left: 1px;
background: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-switch input[type="checkbox"]:checked:before {
transform: translateX(20px);
}
/* Add hover effect to switch handle */
.toggle-switch:hover input[type="checkbox"]:before {
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.header-info {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.875rem;
color: var(--text-secondary);
}
.status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--secondary);
animation: pulse 2s infinite;
}
.status-indicator.disconnected {
background: var(--danger);
animation: none;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Main Content */
.main-content {
flex: 1;
display: flex;
overflow: hidden;
min-height: 0; /* Important for flexbox children to scroll */
}
/* Agent Panel */
.agent-panel {
width: 280px;
background: var(--bg-primary);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
}
.panel-header {
padding: 1rem;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
}
.panel-header h2 {
font-size: 1rem;
font-weight: 600;
}
.icon-button {
width: 32px;
height: 32px;
border-radius: 50%;
background: transparent;
border: 1px solid var(--border);
color: var(--text-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.icon-button:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
/* Text buttons */
.text-button {
padding: 0.5rem 1rem;
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 0.875rem;
font-weight: 500;
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
position: relative;
overflow: hidden;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.text-button:hover {
background: var(--bg-tertiary);
border-color: var(--primary);
color: var(--primary);
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.text-button:active {
transform: translateY(0);
box-shadow: var(--shadow-sm);
}
.text-button.active {
background: var(--primary);
color: white;
border-color: var(--primary);
}
.text-button.danger {
color: var(--danger);
border-color: rgba(239, 68, 68, 0.3);
}
.text-button.danger:hover {
background: var(--danger);
color: white;
border-color: var(--danger);
}
/* Paused state button */
.text-button.paused {
background: var(--warning);
color: white;
border-color: var(--warning);
animation: pausePulse 2s ease-in-out infinite;
}
@keyframes pausePulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.agent-list {
flex: 1;
overflow-y: auto;
padding: 0.5rem;
}
.loading-state, .empty-state {
text-align: center;
color: var(--text-muted);
padding: 2rem;
font-size: 0.875rem;
}
.agent-item {
padding: 0.75rem;
margin: 0.25rem 0;
border-radius: var(--radius);
cursor: pointer;
display: flex;
align-items: center;
gap: 0.75rem;
transition: var(--transition);
border: 1px solid transparent;
position: relative;
overflow: hidden;
}
.agent-item:before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s ease;
}
.agent-item:hover {
background: var(--bg-tertiary);
transform: translateX(2px);
box-shadow: var(--shadow-sm);
}
.agent-item:hover:before {
left: 100%;
}
.agent-item.active {
background: var(--primary);
color: white;
border: 2px solid var(--primary);
box-shadow: var(--shadow-lg);
transform: translateX(4px);
}
.agent-item.active::after {
content: '▸';
position: absolute;
right: 1rem;
font-size: 1.25rem;
color: white;
}
/* Show All button styling */
.agent-item.show-all {
background: var(--bg-tertiary);
border: 2px dashed var(--border);
margin-bottom: 0.5rem;
}
.agent-item.show-all:hover {
background: var(--bg-primary);
border-color: var(--primary);
}
.agent-item.show-all.active {
background: var(--bg-tertiary);
color: var(--text-primary);
border: 2px solid var(--primary);
transform: none;
}
.agent-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--bg-tertiary);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 1rem;
flex-shrink: 0;
}
/* Pulsing glow animation for speaking agents */
@keyframes speakingPulse {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}
50% {
transform: scale(1.05);
box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}
}
.agent-item.speaking {
background: rgba(59, 130, 246, 0.1) !important;
border: 2px solid var(--primary) !important;
transform: scale(1.05) !important;
}
.agent-item.speaking .agent-avatar {
animation: speakingPulse 1.5s ease-out infinite !important;
background: var(--primary) !important;
color: white !important;
}
/* Ensure speaking overrides active state */
.agent-item.active.speaking {
background: rgba(59, 130, 246, 0.2) !important;
transform: scale(1.05) !important;
}
.agent-item.active .agent-avatar {
background: rgba(255, 255, 255, 0.2);
}
.agent-info {
flex: 1;
min-width: 0;
}
.agent-name {
font-weight: 600;
font-size: 0.875rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.agent-status {
font-size: 0.75rem;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 0.25rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.agent-item.active .agent-status {
color: rgba(255, 255, 255, 0.8);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.online { background: var(--secondary); }
.status-dot.offline { background: var(--text-muted); }
.status-dot.busy { background: var(--warning); }
.status-dot.away { background: var(--primary); }
/* Chat Display */
.chat-display {
flex: 1;
display: flex;
flex-direction: column;
background: var(--bg-secondary);
position: relative;
min-height: 0; /* Allow flexbox child to scroll */
overflow: hidden; /* Contain the scrolling to chat-view */
}
.chat-view {
flex: 1 1 auto;
overflow-y: auto; /* Auto scrollbar when needed */
overflow-x: hidden; /* Prevent horizontal scrolling */
padding: 0; /* Remove padding from scroll container */
display: flex;
flex-direction: column;
scroll-behavior: smooth; /* Smooth scrolling */
min-height: 0; /* Allow shrinking */
}
/* Use flexbox centering that works with scrolling */
.chat-view > .messages-container {
margin: auto; /* Centers vertically when content is smaller */
width: 100%;
}
/* Custom scrollbar for chat view */
.chat-view::-webkit-scrollbar {
width: 8px;
}
.chat-view::-webkit-scrollbar-track {
background: var(--bg-tertiary);
border-radius: 4px;
}
.chat-view::-webkit-scrollbar-thumb {
background: var(--text-muted);
border-radius: 4px;
}
.chat-view::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary);
}
.chat-header {
background: var(--bg-primary);
border-bottom: 1px solid var(--border);
padding: 1rem 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
}
.chat-header .agent-avatar {
width: 48px;
height: 48px;
font-size: 1.125rem;
}
.chat-header-info h3 {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.chat-header-meta {
font-size: 0.875rem;
color: var(--text-secondary);
}
/* Messages - NO ANIMATION! */
.message {
display: flex;
align-items: flex-start;
gap: 0.75rem;
margin: 0 auto;
width: 100%;
max-width: 800px; /* Limit width for readability */
opacity: 1;
position: relative;
}
/* Unread message indicator */
.message.unread {
border-left: 3px solid var(--primary);
padding-left: 0.5rem;
}
.message.unread .message-content {
box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
/* New messages divider */
.new-messages-divider {
text-align: center;
margin: 1.5rem 0;
position: relative;
animation: dividerPulse 2s ease-in-out infinite;
}
.new-messages-divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background: var(--primary);
}
.new-messages-divider span {
background: var(--bg-secondary);
color: var(--primary);
font-size: 0.75rem;
font-weight: 600;
padding: 0.25rem 1rem;
position: relative;
border: 2px solid var(--primary);
border-radius: 999px;
}
@keyframes dividerPulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
@keyframes messageSlideIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.message.sent {
flex-direction: row-reverse;
}
.message-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--bg-tertiary);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.875rem;
font-weight: 600;
flex-shrink: 0;
transition: transform 0.2s ease;
cursor: pointer;
}
.message-avatar:hover {
transform: scale(1.1);
}
.message-content {
background: var(--bg-primary);
padding: 1rem 1.25rem;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
flex: 1;
max-width: calc(100% - 60px);
transition: var(--transition);
position: relative;
overflow-wrap: break-word; /* Break long words */
word-wrap: break-word; /* Legacy support */
border: 1px solid var(--border);
}
.message-content:hover {
box-shadow: var(--shadow);
transform: translateY(-1px);
}
.message.sent .message-content {
background: var(--primary);
color: white;
}
.message-header {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--text-primary);
}
.message-text {
font-size: 0.875rem;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-word;
max-height: none; /* Remove any height restrictions */
overflow: visible; /* Ensure content is not hidden */
}
.message-text strong {
font-weight: 600;
color: inherit;
}
.message-text em {
font-style: italic;
}
.message-text code {
background: rgba(0, 0, 0, 0.05);
padding: 0.125rem 0.25rem;
border-radius: 0.25rem;
font-family: monospace;
font-size: 0.875em;
white-space: pre-wrap; /* Allow code to wrap */
word-break: break-word; /* Break long code lines */
}
.message.sent .message-text code {
background: rgba(255, 255, 255, 0.2);
}
/* Message lists */
.message-list {
margin: 0.5rem 0;
}
.list-item {
margin: 0.25rem 0;
padding-left: 1rem;
position: relative;
}
.list-item:before {
content: '';
position: absolute;
left: 0;
}
/* No grouping - every message stands alone */
.message {
margin-bottom: 1rem;
}
/* Ensure bullet points are visible */
.message-text br {
display: block;
content: '';
margin: 0.25rem 0;
}
/* Pre-formatted text blocks */
.message-text pre {
background: rgba(0, 0, 0, 0.05);
padding: 0.75rem;
border-radius: 0.375rem;
font-family: monospace;
font-size: 0.875em;
white-space: pre-wrap;
word-break: break-word;
overflow-x: auto;
max-width: 100%;
margin: 0.5rem 0;
}
.message.sent .message-text pre {
background: rgba(255, 255, 255, 0.15);
}
.message-time {
font-size: 0.75rem;
opacity: 0.6;
margin-top: 0.25rem;
}
.message.broadcast .message-content {
background: linear-gradient(135deg, #7c2d12 0%, #92400e 100%);
border: 1px solid #d97706;
color: #fef3c7;
position: relative;
overflow: visible;
}
/* Dark mode broadcast adjustment */
@media (prefers-color-scheme: dark) {
.message.broadcast .message-content {
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
border-left: 3px solid #facc15;
border-right: none;
border-top: none;
border-bottom: none;
color: #e2e8f0;
box-shadow: var(--shadow-sm);
}
}
.message.broadcast .message-content:before {
content: '•';
position: absolute;
top: 0.75rem;
left: -1.5rem;
font-size: 1.5rem;
color: #facc15;
font-weight: bold;
}
/* Remove the pulsing animation - too distracting */
.broadcast-label {
background: transparent;
color: #facc15;
font-size: 0.625rem;
font-weight: 600;
padding: 0.125rem 0;
border-radius: 0;
display: inline-block;
margin-bottom: 0.25rem;
text-transform: uppercase;
letter-spacing: 0.5px;
opacity: 0.8;
}
/* Stats Panel */
.stats-panel {
width: 280px;
background: var(--bg-primary);
border-left: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow-y: auto;
}
.stats-content {
padding: 1rem;
}
.stat-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 0;
border-bottom: 1px solid var(--border);
}
.stat-item:last-child {
border-bottom: none;
}
.stat-label {
font-size: 0.875rem;
color: var(--text-secondary);
}
.stat-value {
font-size: 1.25rem;
font-weight: 600;
color: var(--primary);
}
.system-log {
flex: 1;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: calc(var(--radius) / 2);
padding: 0.75rem;
margin: 1rem;
font-family: monospace;
font-size: 0.75rem;
overflow-y: auto;
white-space: pre-wrap;
color: var(--text-secondary);
max-height: 300px;
}
/* Empty State */
.empty-state {
text-align: center;
color: var(--text-secondary);
padding: 4rem 2rem;
}
.empty-state h3 {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.5rem;
}
.empty-state .muted {
color: var(--text-muted);
font-size: 0.875rem;
margin-top: 1rem;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: var(--bg-tertiary);
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* Responsive */
@media (max-width: 1200px) {
.stats-panel {
display: none;
}
}
@media (max-width: 768px) {
.agent-panel {
width: 240px;
}
}
/* Loading animation */
@keyframes loadingSpin {
to { transform: rotate(360deg); }
}
.loading {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: loadingSpin 0.8s linear infinite;
}
/* Date divider */
.date-divider {
text-align: center;
margin: 1.5rem 0;
position: relative;
}
.date-divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: var(--border);
}
.date-divider span {
background: var(--bg-secondary);
color: var(--text-muted);
font-size: 0.75rem;
padding: 0.25rem 1rem;
position: relative;
}
/* Message filter info */
.message-filter-info {
text-align: center;
color: var(--text-secondary);
font-size: 0.875rem;
padding: 1rem;
background: var(--bg-tertiary);
border-radius: var(--radius);
margin-bottom: 1rem;
}
/* New Messages Indicator */
.new-messages-indicator {
position: absolute;
top: 1rem;
right: 1rem;
background: var(--primary);
color: white;
padding: 0.5rem 1rem;
border-radius: 999px;
display: flex;
align-items: center;
gap: 0.5rem;
box-shadow: var(--shadow-lg);
z-index: 10;
animation: slideInFromTop 0.3s ease-out;
transition: var(--transition);
}
.new-messages-indicator:hover {
transform: translateY(-2px);
box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.2);
}
.new-messages-indicator #newMessagesCount {
font-weight: 600;
font-size: 0.875rem;
}
.new-messages-indicator .jump-button {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
white-space: nowrap;
}
.new-messages-indicator .jump-button:hover {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
}
@keyframes slideInFromTop {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Page Navigation */
.page-navigation {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: var(--bg-primary);
border-top: 1px solid var(--border);
padding: 1rem;
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
z-index: 5;
}
.page-button {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-primary);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
}
.page-button:hover:not(:disabled) {
background: var(--primary);
color: white;
border-color: var(--primary);
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.page-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.page-button svg {
width: 16px;
height: 16px;
}
.page-info {
font-size: 0.875rem;
font-weight: 500;
color: var(--text-secondary);
}
.page-info span {
color: var(--primary);
font-weight: 600;
}
.page-input {
width: 60px;
padding: 0.25rem 0.5rem;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: calc(var(--radius) / 2);
color: var(--primary);
font-weight: 600;
font-size: 0.875rem;
text-align: center;
transition: var(--transition);
}
.page-input:focus {
outline: none;
border-color: var(--primary);
background: var(--bg-secondary);
}
/* Blink animation for new messages */
@keyframes pageBlink {
0%, 100% {
background: var(--primary);
color: white;
transform: scale(1.1);
}
50% {
background: var(--bg-tertiary);
color: var(--primary);
transform: scale(1);
}
}
.page-input.blink {
animation: pageBlink 0.5s ease-in-out 2;
}
/* Messages container for pages */
.messages-container {
flex: 1;
display: flex;
flex-direction: column;
justify-content: safe center; /* Center when content fits, start when scrolling */
align-items: stretch;
min-height: 0;
padding: 1.5rem;
padding-bottom: 80px; /* Space for page navigation */
overflow: visible; /* Allow content to be visible */
}