Files
Codeman/src/web/public/styles.css
T
arkonandClaude Opus 4.5 3b072c051f feat(ui): rename panel to "Ralph Wiggum Tracker"
Add title text to the Ralph panel summary bar for better identification.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 17:21:57 +01:00

2304 lines
41 KiB
CSS

/* Claudeman - Terminal-First UI */
:root {
--bg-dark: #0a0a0a;
--bg-card: #141414;
--bg-input: #1a1a1a;
--bg-hover: #222;
--border: #2a2a2a;
--border-light: #333;
--text: #eee;
--text-dim: #888;
--text-muted: #555;
--accent: #3b82f6;
--accent-hover: #60a5fa;
--green: #22c55e;
--yellow: #eab308;
--red: #ef4444;
--header-height: 36px;
--toolbar-height: 40px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Utility classes */
.mt-sm { margin-top: 0.5rem; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg-dark);
color: var(--text);
height: 100vh;
overflow: hidden;
}
/* App Layout - Terminal First */
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
/* Compact Header */
.header {
display: flex;
align-items: center;
height: var(--header-height);
padding: 0 0.75rem;
background: var(--bg-card);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.header-brand {
display: flex;
align-items: center;
padding-right: 0.75rem;
border-right: 1px solid var(--border);
margin-right: 0.5rem;
}
.logo {
font-size: 0.85rem;
font-weight: 600;
color: var(--accent-hover);
letter-spacing: -0.02em;
}
/* Session Tabs */
.session-tabs {
display: flex;
align-items: center;
gap: 2px;
flex: 1;
overflow-x: auto;
padding: 0 0.25rem;
}
.session-tabs::-webkit-scrollbar {
height: 0;
}
.session-tab {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.35rem 0.75rem;
background: transparent;
border: 1px solid transparent;
border-radius: 4px;
color: var(--text-dim);
font-size: 0.75rem;
cursor: pointer;
white-space: nowrap;
transition: all 0.15s;
max-width: 220px;
}
.session-tab:hover {
background: var(--bg-hover);
color: var(--text);
}
.session-tab.active {
background: var(--bg-dark);
border-color: var(--border-light);
color: var(--text);
}
.session-tab .tab-status {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
}
.session-tab .tab-status.idle { background: var(--green); }
.session-tab .tab-status.busy { background: var(--green); animation: pulse 1.5s infinite; }
.session-tab .tab-status.error { background: var(--red); }
.session-tab .tab-name {
overflow: hidden;
text-overflow: ellipsis;
}
.session-tab .tab-close {
opacity: 0;
padding: 0 0.2rem;
font-size: 0.9rem;
line-height: 1;
color: var(--text-muted);
transition: opacity 0.15s;
}
.session-tab:hover .tab-close {
opacity: 1;
}
.session-tab .tab-close:hover {
color: var(--red);
}
.session-tab.new-tab {
padding: 0.35rem 0.5rem;
color: var(--text-muted);
font-size: 1rem;
font-weight: 300;
}
.session-tab.new-tab:hover {
color: var(--green);
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
/* Header Right */
.header-right {
display: flex;
align-items: center;
gap: 1rem;
margin-left: auto;
padding-left: 0.75rem;
border-left: 1px solid var(--border);
}
.connection-status {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.7rem;
color: var(--text-dim);
}
.status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--yellow);
}
.status-dot.connected { background: var(--green); }
.status-dot.disconnected { background: var(--red); }
.header-tokens {
font-size: 0.75rem;
font-weight: 500;
color: var(--accent-hover);
font-family: 'SF Mono', Monaco, monospace;
}
.header-system-stats {
display: flex;
gap: 0.75rem;
font-size: 0.65rem;
font-family: 'SF Mono', Monaco, monospace;
color: var(--text-dim);
padding: 0 0.5rem;
border-left: 1px solid var(--border);
margin-left: 0.5rem;
}
.stat-item {
display: flex;
align-items: center;
gap: 0.35rem;
}
.stat-label {
color: var(--text-muted);
font-size: 0.6rem;
text-transform: uppercase;
min-width: 24px;
}
.stat-bar {
width: 40px;
height: 6px;
background: var(--bg-input);
border-radius: 3px;
overflow: hidden;
}
.stat-bar-fill {
height: 100%;
border-radius: 3px;
transition: width 0.3s ease, background 0.3s ease;
}
.stat-bar-cpu {
background: linear-gradient(90deg, var(--green) 0%, var(--green) 100%);
}
.stat-bar-cpu.medium {
background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 100%);
}
.stat-bar-cpu.high {
background: linear-gradient(90deg, var(--yellow) 0%, var(--red) 100%);
}
.stat-bar-mem {
background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
}
.stat-bar-mem.medium {
background: linear-gradient(90deg, var(--accent) 0%, var(--yellow) 100%);
}
.stat-bar-mem.high {
background: linear-gradient(90deg, var(--yellow) 0%, var(--red) 100%);
}
.stat-value {
min-width: 32px;
text-align: right;
color: var(--text-dim);
}
.stat-value.high {
color: var(--red);
font-weight: 500;
}
.btn-icon-header {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: transparent;
border: none;
color: var(--text-dim);
font-size: 1rem;
cursor: pointer;
border-radius: 4px;
transition: all 0.15s;
}
.btn-icon-header:hover {
background: var(--bg-hover);
color: var(--text);
transform: rotate(45deg);
}
.btn-icon-header.btn-sm {
width: 20px;
height: 20px;
font-size: 0.7rem;
font-weight: 600;
}
.btn-icon-header.btn-sm:hover {
transform: none;
}
.header-font-controls {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.15rem 0.4rem;
background: var(--bg-input);
border-radius: 4px;
}
.header-font-controls .font-size-display {
font-size: 0.7rem;
color: var(--text-muted);
min-width: 18px;
text-align: center;
font-family: 'SF Mono', Monaco, monospace;
}
/* Session tab gear icon */
.session-tab .tab-gear {
opacity: 0;
padding: 0 0.3rem;
font-size: 1rem;
line-height: 1;
color: var(--text-muted);
cursor: pointer;
transition: opacity 0.15s, transform 0.2s;
}
.session-tab:hover .tab-gear {
opacity: 1;
}
.session-tab .tab-gear:hover {
color: var(--accent-hover);
transform: rotate(45deg);
}
/* Mode indicator on session tab */
.session-tab .tab-mode {
font-size: 0.6rem;
padding: 1px 4px;
border-radius: 3px;
background: var(--bg-hover);
color: var(--text-muted);
text-transform: uppercase;
}
.session-tab .tab-mode.shell {
background: rgba(234, 179, 8, 0.2);
color: var(--yellow);
}
/* Timer Banner - Compact */
.timer-banner {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.4rem 1rem;
background: linear-gradient(90deg, #1e3a5f, #152238);
border-bottom: 1px solid rgba(59, 130, 246, 0.3);
flex-shrink: 0;
}
.timer-content {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}
.timer-value {
font-size: 1rem;
font-weight: 600;
font-family: 'SF Mono', Monaco, monospace;
color: var(--accent-hover);
}
.timer-progress {
flex: 1;
height: 4px;
background: rgba(0, 0, 0, 0.3);
border-radius: 2px;
max-width: 200px;
}
.timer-progress-fill {
height: 100%;
background: linear-gradient(90deg, #3b82f6, #60a5fa);
border-radius: 2px;
transition: width 1s linear;
}
.timer-meta {
font-size: 0.7rem;
color: var(--text-dim);
}
/* Respawn Banner - Compact */
.respawn-banner {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.35rem 1rem;
background: linear-gradient(90deg, #1e3a1e, #132513);
border-bottom: 1px solid rgba(34, 197, 94, 0.3);
font-size: 0.75rem;
flex-shrink: 0;
}
.respawn-indicator {
color: var(--green);
animation: spin 2s linear infinite;
}
.respawn-state {
color: var(--green);
font-weight: 500;
text-transform: capitalize;
}
.respawn-cycles {
color: var(--text-dim);
}
.respawn-step {
flex: 1;
color: var(--text-muted);
font-family: monospace;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.respawn-timer {
color: var(--accent-hover);
font-family: 'SF Mono', Monaco, monospace;
font-weight: 500;
padding: 0 0.5rem;
border-left: 1px solid rgba(34, 197, 94, 0.3);
border-right: 1px solid rgba(34, 197, 94, 0.3);
}
.respawn-tokens {
color: var(--text-dim);
font-family: 'SF Mono', Monaco, monospace;
font-size: 0.7rem;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ===== Enhanced Ralph Wiggum Loop Panel ===== */
.ralph-panel {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
font-size: 0.75rem;
flex-shrink: 0;
overflow: hidden;
position: relative;
}
/* Collapsed Summary Bar */
.ralph-summary {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
cursor: pointer;
user-select: none;
transition: background 0.15s;
}
.ralph-summary:hover {
background: var(--bg-hover);
}
/* Mini Progress Ring (in summary) */
.ralph-ring-mini {
position: relative;
width: 32px;
height: 32px;
flex-shrink: 0;
}
.ralph-ring-svg {
width: 100%;
height: 100%;
transform: rotate(-90deg);
}
.ralph-ring-bg {
fill: none;
stroke: var(--bg-input);
stroke-width: 3;
}
.ralph-ring-progress {
fill: none;
stroke: url(#ralphGradient);
stroke-width: 3;
stroke-linecap: round;
stroke-dasharray: 100;
stroke-dashoffset: 100;
transition: stroke-dashoffset 0.5s ease-out;
}
.ralph-ring-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 0.55rem;
font-weight: 600;
color: var(--text);
}
/* Summary Info */
.ralph-summary-info {
flex: 1;
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
}
.ralph-title {
font-weight: 600;
color: var(--text);
font-size: 0.8rem;
white-space: nowrap;
}
.ralph-status-badge {
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.2rem 0.5rem;
border-radius: 4px;
background: var(--bg-input);
font-size: 0.7rem;
font-weight: 500;
}
.ralph-status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-muted);
transition: background 0.2s;
}
.ralph-status-badge.active .ralph-status-dot {
background: var(--accent);
animation: ralph-pulse 1.5s ease-in-out infinite;
}
.ralph-status-badge.completed .ralph-status-dot {
background: var(--green);
}
@keyframes ralph-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.6; transform: scale(1.2); }
}
.ralph-phrase-preview {
color: var(--text-dim);
font-size: 0.7rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 200px;
}
.ralph-phrase-preview code {
background: var(--bg-input);
padding: 0.1rem 0.3rem;
border-radius: 2px;
font-family: 'SF Mono', Monaco, monospace;
font-size: 0.65rem;
}
/* Summary Stats */
.ralph-summary-stats {
display: flex;
align-items: center;
gap: 0.75rem;
}
.ralph-stat {
display: flex;
align-items: center;
gap: 0.25rem;
color: var(--text-dim);
font-size: 0.7rem;
}
.ralph-stat-icon {
font-size: 0.75rem;
opacity: 0.7;
}
.ralph-toggle {
color: var(--text-dim);
font-size: 0.6rem;
transition: transform 0.2s;
flex-shrink: 0;
}
.ralph-panel:not(.collapsed) .ralph-toggle {
transform: rotate(90deg);
}
/* Hide detail when collapsed */
.ralph-panel.collapsed .ralph-detail {
display: none;
}
/* Expanded Detail View */
.ralph-detail {
padding: 0.75rem;
border-top: 1px solid var(--border);
background: var(--bg-dark);
}
.ralph-progress-section {
display: flex;
align-items: flex-start;
gap: 1.5rem;
margin-bottom: 1rem;
}
/* Large Progress Ring */
.ralph-ring {
position: relative;
width: 100px;
height: 100px;
flex-shrink: 0;
}
.ralph-ring-svg-large {
width: 100%;
height: 100%;
transform: rotate(-90deg);
}
.ralph-ring-track {
fill: none;
stroke: var(--bg-input);
stroke-width: 6;
}
.ralph-ring-fill {
fill: none;
stroke: url(#ralphGradient);
stroke-width: 6;
stroke-linecap: round;
stroke-dasharray: 264;
stroke-dashoffset: 264;
transition: stroke-dashoffset 0.5s ease-out;
}
.ralph-ring-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.ralph-ring-percent {
font-size: 1.25rem;
font-weight: 700;
color: var(--text);
line-height: 1;
}
.ralph-ring-label {
font-size: 0.6rem;
color: var(--text-dim);
margin-top: 0.15rem;
}
/* Meta Info */
.ralph-meta {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.ralph-meta-item {
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.ralph-meta-label {
font-size: 0.65rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.ralph-meta code {
background: var(--bg-input);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-family: 'SF Mono', Monaco, monospace;
font-size: 0.75rem;
color: var(--accent);
word-break: break-all;
}
.ralph-meta-row {
display: flex;
gap: 1.5rem;
}
.ralph-meta-item span:not(.ralph-meta-label) {
font-size: 0.9rem;
font-weight: 500;
color: var(--text);
}
/* Task Cards Section */
.ralph-tasks-section {
background: var(--bg-card);
border-radius: 6px;
overflow: hidden;
}
.ralph-tasks-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0.75rem;
background: var(--bg-input);
font-weight: 500;
color: var(--text);
font-size: 0.75rem;
}
.ralph-tasks-count {
color: var(--text-dim);
font-weight: 400;
}
.ralph-tasks-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 0.5rem;
padding: 0.5rem;
max-height: 200px;
overflow-y: auto;
}
/* Task Cards */
.ralph-task-card {
display: flex;
align-items: flex-start;
gap: 0.5rem;
padding: 0.5rem;
background: var(--bg-dark);
border-radius: 4px;
border-left: 2px solid var(--text-muted);
transition: border-color 0.2s, background 0.2s;
}
.ralph-task-card.task-pending {
border-left-color: var(--text-muted);
}
.ralph-task-card.task-in-progress {
border-left-color: var(--accent);
background: rgba(59, 130, 246, 0.05);
}
.ralph-task-card.task-completed {
border-left-color: var(--green);
opacity: 0.75;
}
.ralph-task-icon {
flex-shrink: 0;
width: 16px;
height: 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.7rem;
border-radius: 50%;
}
.ralph-task-card.task-pending .ralph-task-icon {
color: var(--text-muted);
}
.ralph-task-card.task-in-progress .ralph-task-icon {
color: var(--accent);
animation: ralph-spin 2s linear infinite;
}
.ralph-task-card.task-completed .ralph-task-icon {
color: var(--green);
}
@keyframes ralph-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.ralph-task-content {
flex: 1;
font-size: 0.7rem;
color: var(--text-dim);
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.ralph-task-card.task-completed .ralph-task-content {
text-decoration: line-through;
}
/* Completion Celebration */
.ralph-celebration {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
align-items: center;
justify-content: center;
background: rgba(10, 10, 10, 0.95);
z-index: 10;
}
.ralph-celebration.show {
display: flex;
animation: ralph-celebration-in 0.3s ease-out;
}
@keyframes ralph-celebration-in {
from { opacity: 0; }
to { opacity: 1; }
}
.ralph-celebration-content {
text-align: center;
}
.ralph-checkmark {
width: 60px;
height: 60px;
margin: 0 auto 0.75rem;
}
.ralph-checkmark svg {
width: 100%;
height: 100%;
}
.ralph-checkmark-circle {
fill: none;
stroke: var(--green);
stroke-width: 2;
stroke-dasharray: 166;
stroke-dashoffset: 166;
animation: ralph-circle 0.6s ease-out forwards;
}
.ralph-checkmark-check {
fill: none;
stroke: var(--green);
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 48;
stroke-dashoffset: 48;
animation: ralph-check 0.3s ease-out 0.4s forwards;
}
@keyframes ralph-circle {
to { stroke-dashoffset: 0; }
}
@keyframes ralph-check {
to { stroke-dashoffset: 0; }
}
.ralph-celebration-text {
font-size: 1rem;
font-weight: 600;
color: var(--green);
}
/* Empty state (legacy support) */
.inner-state-empty {
color: var(--text-muted);
font-style: italic;
padding: 0.5rem;
}
/* Main - Terminal Area */
.main {
flex: 1;
display: flex;
overflow: hidden;
background: var(--bg-dark);
}
.terminal-container {
flex: 1;
background: #0d0d0d;
overflow: hidden;
}
.terminal-container .xterm {
height: 100%;
padding: 0;
}
.terminal-container .xterm-viewport {
background: transparent !important;
}
/* Bottom Toolbar */
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
height: var(--toolbar-height);
padding: 0 0.5rem;
background: var(--bg-card);
border-top: 1px solid var(--border);
flex-shrink: 0;
}
.toolbar-left,
.toolbar-right {
display: flex;
align-items: center;
gap: 0.25rem;
}
.toolbar-group {
display: flex;
align-items: center;
gap: 0;
}
.toolbar-divider {
width: 1px;
height: 20px;
background: var(--border);
margin: 0 0.5rem;
}
.btn-toolbar {
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.4rem 0.75rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text-dim);
font-size: 0.75rem;
cursor: pointer;
transition: all 0.15s;
white-space: nowrap;
}
.btn-toolbar:hover {
background: var(--bg-hover);
color: var(--text);
border-color: var(--border-light);
}
.btn-toolbar.btn-sm {
padding: 0.3rem 0.5rem;
font-size: 0.7rem;
}
.btn-toolbar.btn-primary {
background: var(--accent);
border-color: var(--accent);
color: white;
}
.btn-toolbar.btn-primary:hover {
background: var(--accent-hover);
}
/* Claude Button - Special styling */
.btn-toolbar.btn-claude {
background: linear-gradient(135deg, #1e3a5f 0%, #3d2a5c 100%);
border-color: #2d4a6f;
color: #a8c4e8;
font-weight: 500;
padding: 0.4rem 0.85rem;
}
.btn-toolbar.btn-claude:hover {
background: linear-gradient(135deg, #2a4d7a 0%, #4d3a6c 100%);
border-color: #3d5a7f;
box-shadow: 0 0 12px rgba(61, 90, 127, 0.3);
}
.btn-toolbar.btn-claude .btn-icon {
font-size: 0.9rem;
}
/* Shell Button - Special styling */
.btn-toolbar.btn-shell {
background: linear-gradient(135deg, #1a2e1a 0%, #234023 100%);
border-color: #2d5a2d;
color: #8fbc8f;
font-weight: 500;
}
.btn-toolbar.btn-shell:hover {
background: linear-gradient(135deg, #234023 0%, #2d5a2d 100%);
border-color: #3d7a3d;
box-shadow: 0 0 8px rgba(34, 139, 34, 0.4);
color: #a8d8a8;
}
/* Button icon styling */
.btn-toolbar .btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-toolbar.btn-success {
background: var(--green);
border-color: var(--green);
color: white;
}
.btn-toolbar.btn-success:hover {
background: #16a34a;
}
.btn-toolbar.btn-danger {
color: var(--red);
border-color: rgba(239, 68, 68, 0.3);
}
.btn-toolbar.btn-danger:hover {
background: var(--red);
color: white;
border-color: var(--red);
}
.btn-icon-only {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: transparent;
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text-dim);
font-size: 0.7rem;
cursor: pointer;
transition: all 0.15s;
}
.btn-icon-only:hover {
background: var(--bg-hover);
color: var(--text);
}
/* Case select group with + button */
.case-select-group {
display: flex;
align-items: center;
}
.toolbar-select {
padding: 0.4rem 1.5rem 0.4rem 0.5rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px 0 0 4px;
color: var(--text-dim);
font-size: 0.75rem;
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.4rem center;
max-width: 180px;
}
.toolbar-select:hover {
border-color: var(--border-light);
}
.toolbar-select:focus {
outline: none;
border-color: var(--accent);
}
.btn-case-add {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
background: var(--bg-input);
border: 1px solid var(--border);
border-left: none;
border-radius: 0 4px 4px 0;
color: var(--green);
font-size: 1.1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.btn-case-add:hover {
background: var(--green);
color: white;
border-color: var(--green);
}
.toolbar-input {
padding: 0.4rem 0.5rem;
background: var(--bg-input);
border: 1px solid var(--accent);
border-radius: 4px;
color: var(--text);
font-size: 0.75rem;
width: 350px;
max-width: 50vw;
}
/* Tab Count Input Group - nicer stepper design */
.tab-count-group {
display: flex;
align-items: center;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
overflow: hidden;
}
.tab-count-btn {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 28px;
background: transparent;
border: none;
color: var(--text-dim);
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.tab-count-btn:hover {
background: var(--bg-hover);
color: var(--accent-hover);
}
.tab-count-btn:active {
background: var(--accent);
color: white;
}
.tab-count-input {
width: 28px;
height: 28px;
background: transparent;
border: none;
border-left: 1px solid var(--border);
border-right: 1px solid var(--border);
color: var(--text);
font-size: 0.8rem;
font-weight: 600;
text-align: center;
font-family: 'SF Mono', Monaco, monospace;
-moz-appearance: textfield;
}
.tab-count-input::-webkit-inner-spin-button,
.tab-count-input::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.tab-count-input:focus {
outline: none;
}
.toolbar-input-sm {
padding: 0.3rem 0.4rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text);
font-size: 0.75rem;
width: 40px;
text-align: center;
}
.toolbar-input-sm:focus {
outline: none;
border-color: var(--accent);
}
.toolbar-input-sm::-webkit-inner-spin-button,
.toolbar-input-sm::-webkit-outer-spin-button {
opacity: 1;
height: 16px;
}
#dirDisplay {
max-width: 450px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
direction: rtl;
text-align: left;
}
.toolbar-input:focus {
outline: none;
}
.toolbar-input.hidden {
display: none;
}
.font-size-display {
font-size: 0.65rem;
color: var(--text-muted);
min-width: 20px;
text-align: center;
font-family: 'SF Mono', Monaco, monospace;
}
/* Close button for modals */
.btn-close {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 1.2rem;
cursor: pointer;
padding: 0 0.25rem;
line-height: 1;
}
.btn-close:hover {
color: var(--text);
}
.btn-icon-sm {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 1rem;
cursor: pointer;
padding: 0.25rem;
line-height: 1;
border-radius: 4px;
}
.btn-icon-sm:hover {
color: var(--text);
background: var(--bg-hover);
}
.btn-danger-sm {
color: #ff6b6b;
}
.btn-danger-sm:hover {
color: #fff;
background: #dc3545;
}
.form-row {
margin-bottom: 0.75rem;
}
.form-row label {
display: block;
font-size: 0.7rem;
color: var(--text-dim);
margin-bottom: 0.35rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-select {
width: 100%;
padding: 0.5rem 0.75rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text);
font-size: 0.8rem;
}
.form-row input:focus,
.form-select:focus {
outline: none;
border-color: var(--accent);
}
.form-row-inline {
display: flex;
gap: 0.5rem;
margin-bottom: 0.75rem;
align-items: center;
}
.form-row-inline input[type="text"] {
flex: 1;
}
.form-col {
flex: 1;
}
.form-col label {
display: block;
font-size: 0.7rem;
color: var(--text-dim);
margin-bottom: 0.35rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.input-suffix {
display: flex;
align-items: center;
}
.input-suffix input {
flex: 1;
border-radius: 4px 0 0 4px;
border-right: none;
}
.input-suffix span {
padding: 0.5rem 0.5rem;
background: var(--bg-hover);
border: 1px solid var(--border);
border-radius: 0 4px 4px 0;
color: var(--text-muted);
font-size: 0.75rem;
}
.checkbox-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
cursor: pointer;
transition: border-color 0.15s;
}
.checkbox-label:hover {
border-color: var(--border-light);
}
.checkbox-label input[type="checkbox"] {
accent-color: var(--accent);
}
.checkbox-label span:first-of-type {
font-size: 0.8rem;
color: var(--text);
}
.checkbox-hint {
font-size: 0.7rem;
color: var(--text-muted);
margin-left: auto;
}
.form-hint {
display: block;
font-size: 0.65rem;
color: var(--text-muted);
margin-top: 0.35rem;
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
margin-top: 1rem;
padding-top: 0.75rem;
border-top: 1px solid var(--border);
}
.form-actions-stack {
flex-direction: column;
align-items: stretch;
}
.form-actions-stack button {
width: 100%;
}
.btn-warning {
background: var(--yellow);
color: #000;
}
.btn-warning:hover {
background: #d4a107;
}
/* Modal */
.modal {
display: none;
position: fixed;
inset: 0;
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(2px);
}
.modal-content {
position: relative;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
width: 90%;
max-width: 400px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.modal-content.modal-sm {
max-width: 340px;
}
.modal-warning-text {
color: var(--text-dim);
font-size: 0.85rem;
margin-bottom: 0.5rem;
}
/* Close Session Options */
.close-options {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
}
.close-option {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 0.75rem 1rem;
background: var(--bg-hover);
border: 1px solid var(--border);
border-radius: 6px;
cursor: pointer;
transition: all 0.15s;
text-align: left;
}
.close-option:hover {
background: var(--bg-card);
border-color: var(--accent);
}
.close-option-danger {
border-color: var(--red);
background: rgba(239, 68, 68, 0.1);
}
.close-option-danger:hover {
background: rgba(239, 68, 68, 0.2);
border-color: var(--red);
}
.close-option-title {
font-weight: 500;
font-size: 0.9rem;
color: var(--text);
}
.close-option-danger .close-option-title {
color: var(--red);
}
.close-option-desc {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 0.15rem;
}
.modal-footer-cancel {
display: flex;
justify-content: center;
padding-top: 0.5rem;
border-top: 1px solid var(--border);
}
.modal-session-name {
font-family: 'SF Mono', Monaco, monospace;
font-size: 0.8rem;
color: var(--accent-hover);
background: var(--bg-input);
padding: 0.5rem 0.75rem;
border-radius: 4px;
border: 1px solid var(--border);
}
.session-dir-display {
padding: 0.5rem 0.75rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text-dim);
font-size: 0.8rem;
font-family: 'SF Mono', Monaco, monospace;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Session respawn section in options modal */
.session-respawn-section {
border-top: 1px solid var(--border);
padding-top: 0.75rem;
margin-top: 0.75rem;
}
.section-divider {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
font-size: 0.8rem;
font-weight: 500;
color: var(--text);
}
.session-respawn-status {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
background: var(--bg-input);
border-radius: 4px;
}
.session-respawn-status .respawn-status-indicator {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-muted);
}
.session-respawn-status .respawn-status-text {
color: var(--text-dim);
}
.session-respawn-status.active .respawn-status-indicator {
background: var(--green);
animation: pulse 1.5s infinite;
}
.session-respawn-status.active .respawn-status-text {
color: var(--green);
}
/* Inline checkbox group */
.checkbox-group-inline {
display: flex;
gap: 1rem;
}
.checkbox-inline {
display: flex;
align-items: center;
gap: 0.35rem;
cursor: pointer;
font-size: 0.8rem;
color: var(--text-dim);
}
.checkbox-inline input[type="checkbox"] {
accent-color: var(--accent);
}
.checkbox-inline:hover {
color: var(--text);
}
/* Auto-clear row */
.auto-clear-row {
display: flex;
align-items: center;
gap: 0.75rem;
}
.input-suffix-sm {
display: flex;
align-items: center;
}
.input-suffix-sm input {
width: 80px;
padding: 0.35rem 0.5rem;
font-size: 0.75rem;
}
.input-suffix-sm span {
padding: 0.35rem 0.4rem;
font-size: 0.7rem;
}
/* Duration preset buttons */
.duration-presets {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
}
.duration-preset-btn {
padding: 0.4rem 0.7rem;
font-size: 0.75rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text-dim);
cursor: pointer;
transition: all 0.15s;
}
.duration-preset-btn:hover {
border-color: var(--border-light);
color: var(--text);
}
.duration-preset-btn.active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.duration-custom {
display: flex;
align-items: center;
gap: 0.35rem;
}
.duration-custom-input {
display: none;
}
.duration-custom-input.visible {
display: flex;
}
.duration-custom-input input {
width: 60px;
}
/* Respawn actions in modal */
.respawn-actions {
display: flex;
gap: 0.5rem;
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid var(--border);
}
.session-respawn-actions {
display: flex;
gap: 0.5rem;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-bottom: 1px solid var(--border);
}
.modal-header h3 {
font-size: 0.95rem;
font-weight: 500;
}
.modal-close {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 1.5rem;
cursor: pointer;
line-height: 1;
}
.modal-close:hover {
color: var(--text);
}
.modal-body {
padding: 1rem;
}
.shortcuts-grid {
display: grid;
grid-template-columns: auto 1fr;
gap: 0.5rem 1rem;
font-size: 0.8rem;
}
.shortcuts-grid > div:nth-child(odd) {
text-align: right;
}
.shortcuts-grid > div:nth-child(even) {
color: var(--text-dim);
}
kbd {
display: inline-block;
padding: 0.15rem 0.4rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 3px;
font-family: 'SF Mono', Monaco, monospace;
font-size: 0.7rem;
color: var(--text);
}
/* Help Button */
.help-btn {
position: fixed;
bottom: calc(var(--toolbar-height) + 0.5rem);
right: 0.5rem;
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text-muted);
font-size: 0.85rem;
cursor: pointer;
z-index: 50;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
}
.help-btn:hover {
background: var(--bg-hover);
color: var(--text);
}
/* Toast Notifications */
.toast-container {
position: fixed;
top: calc(var(--header-height) + 0.5rem);
right: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
z-index: 10000;
pointer-events: none;
}
.toast {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.6rem 1rem;
font-size: 0.8rem;
color: var(--text);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
transform: translateX(100%);
opacity: 0;
transition: all 0.2s ease;
pointer-events: auto;
}
.toast.show {
transform: translateX(0);
opacity: 1;
}
.toast-success { border-color: rgba(34, 197, 94, 0.4); }
.toast-error { border-color: rgba(239, 68, 68, 0.4); }
.toast-warning { border-color: rgba(234, 179, 8, 0.4); }
.toast-info { border-color: rgba(59, 130, 246, 0.4); }
/* Task Badge on Session Tab */
.session-tab .tab-badge {
display: flex;
align-items: center;
justify-content: center;
min-width: 16px;
height: 16px;
padding: 0 4px;
background: var(--yellow);
border-radius: 8px;
font-size: 0.65rem;
font-weight: 600;
color: #000;
animation: pulse 1.5s infinite;
}
.session-tab .tab-badge.completed {
background: var(--green);
animation: none;
}
/* Task Panel */
.task-panel {
position: fixed;
bottom: var(--toolbar-height);
right: 0.5rem;
width: 350px;
max-width: calc(100vw - 1rem);
max-height: 50vh;
background: var(--bg-card);
border: 1px solid var(--border);
border-bottom: none;
border-radius: 8px 8px 0 0;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
z-index: 100;
transform: translateY(100%);
transition: transform 0.2s ease;
display: flex;
flex-direction: column;
}
.task-panel.open {
transform: translateY(0);
}
.task-panel-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 1rem;
border-bottom: 1px solid var(--border);
font-size: 0.8rem;
font-weight: 500;
flex-shrink: 0;
}
.task-panel-stats {
margin-left: auto;
font-size: 0.7rem;
color: var(--text-dim);
padding: 0.2rem 0.5rem;
background: var(--bg-input);
border-radius: 10px;
}
.task-panel-body {
flex: 1;
overflow-y: auto;
padding: 0.5rem;
}
.task-empty {
padding: 1rem;
text-align: center;
color: var(--text-muted);
font-size: 0.8rem;
}
/* Task Tree */
.task-tree {
font-size: 0.75rem;
}
.task-node {
border-left: 2px solid var(--border);
padding-left: 0.75rem;
margin-left: 0.5rem;
margin-bottom: 0.25rem;
}
.task-node:first-child {
border-left: none;
margin-left: 0;
padding-left: 0;
}
.task-item {
display: flex;
align-items: flex-start;
gap: 0.5rem;
padding: 0.4rem 0.5rem;
background: var(--bg-input);
border-radius: 4px;
margin-bottom: 0.25rem;
}
.task-status-icon {
flex-shrink: 0;
width: 14px;
height: 14px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.6rem;
}
.task-status-icon.running {
background: var(--yellow);
animation: pulse 1.5s infinite;
}
.task-status-icon.completed {
background: var(--green);
color: white;
}
.task-status-icon.failed {
background: var(--red);
color: white;
}
.task-info {
flex: 1;
min-width: 0;
}
.task-description {
color: var(--text);
word-break: break-word;
}
.task-meta {
display: flex;
gap: 0.5rem;
font-size: 0.65rem;
color: var(--text-muted);
margin-top: 0.2rem;
}
.task-type {
color: var(--accent);
}
.task-children {
margin-top: 0.25rem;
}
/* Task toggle button in toolbar */
.task-toggle-btn {
position: relative;
}
.task-toggle-btn .badge {
position: absolute;
top: -4px;
right: -4px;
min-width: 14px;
height: 14px;
padding: 0 3px;
background: var(--yellow);
border-radius: 7px;
font-size: 0.6rem;
font-weight: 600;
color: #000;
display: flex;
align-items: center;
justify-content: center;
}
/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--border-light);
}
/* Process Monitor Panel */
.process-panel {
position: fixed;
bottom: var(--toolbar-height);
left: 0.5rem;
width: 400px;
max-width: calc(100vw - 1rem);
max-height: 50vh;
background: var(--bg-card);
border: 1px solid var(--border);
border-bottom: none;
border-radius: 8px 8px 0 0;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
z-index: 100;
transform: translateY(100%);
transition: transform 0.2s ease;
display: flex;
flex-direction: column;
}
.process-panel.open {
transform: translateY(0);
}
.process-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.6rem 1rem;
border-bottom: 1px solid var(--border);
font-size: 0.8rem;
font-weight: 500;
flex-shrink: 0;
}
.process-panel-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.process-panel-body {
flex: 1;
overflow-y: auto;
padding: 0.5rem;
}
.process-empty {
padding: 1rem;
text-align: center;
color: var(--text-muted);
font-size: 0.8rem;
}
.process-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 0.75rem;
background: var(--bg-input);
border-radius: 4px;
margin-bottom: 0.5rem;
}
.process-item:hover {
background: var(--bg-hover);
}
.process-info {
flex: 1;
min-width: 0;
}
.process-name {
font-size: 0.8rem;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.process-meta {
display: flex;
gap: 0.75rem;
font-size: 0.7rem;
color: var(--text-muted);
margin-top: 0.2rem;
}
.process-stat {
display: flex;
align-items: center;
gap: 0.25rem;
}
.process-stat.memory { color: var(--accent-hover); }
.process-stat.cpu { color: var(--green); }
.process-stat.children { color: var(--yellow); }
.process-actions {
display: flex;
gap: 0.25rem;
}
.process-mode {
font-size: 0.6rem;
padding: 2px 6px;
border-radius: 3px;
background: var(--bg-hover);
color: var(--text-muted);
text-transform: uppercase;
}
.process-mode.shell {
background: rgba(234, 179, 8, 0.2);
color: var(--yellow);
}
/* Combined Monitor Panel (Screen Sessions + Background Tasks) */
.monitor-panel {
position: fixed;
bottom: var(--toolbar-height);
right: 0.5rem;
width: 500px;
max-width: calc(100vw - 1rem);
max-height: 80vh;
background: var(--bg-card);
border: 1px solid var(--border);
border-bottom: none;
border-radius: 8px 8px 0 0;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
z-index: 100;
transform: translateY(100%);
transition: transform 0.2s ease;
display: flex;
flex-direction: column;
}
.monitor-panel.open {
transform: translateY(0);
}
/* Detached floating state */
.monitor-panel.detached {
bottom: auto;
right: auto;
top: 100px;
left: calc(50% - 300px);
width: 600px;
height: 500px;
max-height: none;
border-radius: 8px;
border-bottom: 1px solid var(--border);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
transform: none;
resize: both;
overflow: hidden;
min-width: 350px;
min-height: 250px;
}
.monitor-panel.detached .monitor-panel-header {
cursor: move;
background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-card) 100%);
user-select: none;
}
.monitor-panel.detached .monitor-resize-handle {
display: block;
}
.monitor-panel.detached .monitor-section-body {
max-height: none;
}
.monitor-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.6rem 1rem;
border-bottom: 1px solid var(--border);
font-size: 0.85rem;
font-weight: 500;
flex-shrink: 0;
}
.monitor-panel-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.monitor-panel-body {
flex: 1;
overflow-y: auto;
padding: 0;
}
/* Resize handle for detached panel */
.monitor-resize-handle {
display: none;
position: absolute;
bottom: 0;
right: 0;
width: 16px;
height: 16px;
cursor: nwse-resize;
background: linear-gradient(135deg, transparent 50%, var(--border-light) 50%);
border-radius: 0 0 8px 0;
}
.monitor-resize-handle::before {
content: '';
position: absolute;
bottom: 3px;
right: 3px;
width: 8px;
height: 8px;
border-right: 2px solid var(--text-muted);
border-bottom: 2px solid var(--text-muted);
}
.monitor-section {
border-bottom: 1px solid var(--border);
}
.monitor-section:last-child {
border-bottom: none;
}
.monitor-section-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 1rem;
background: var(--bg-input);
font-size: 0.75rem;
font-weight: 500;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.monitor-section-body {
padding: 0.5rem;
max-height: 25vh;
overflow-y: auto;
}
.monitor-empty {
padding: 1rem;
text-align: center;
color: var(--text-muted);
font-size: 0.8rem;
}
.task-stats {
font-size: 0.65rem;
color: var(--text-dim);
padding: 0.15rem 0.4rem;
background: var(--bg-card);
border-radius: 8px;
}
/* Responsive */
@media (max-width: 600px) {
.header-brand {
display: none;
}
.toolbar-left .toolbar-group:not(:first-child) {
display: none;
}
.monitor-panel {
width: 100%;
max-width: 100%;
border-radius: 8px 8px 0 0;
}
}