/* AI Controller Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: #1e1e1e;
color: #d4d4d4;
height: 100vh;
/* Allow the page to scroll vertically when content exceeds viewport height,
especially on smaller screens. Horizontal overflow remains hidden. */
overflow-x: hidden;
overflow-y: auto;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
/* Main layout with left sidebar */
.main-layout {
display: flex;
flex: 1;
min-height: 0;
}
.sidebar {
width: 220px;
background: #252526;
border-right: 1px solid #3e3e42;
display: flex;
flex-direction: column;
padding: 12px 8px;
}
.sidebar-header {
padding: 4px 8px 10px 8px;
}
.sidebar-title {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
color: #858585;
}
.nav-item {
width: 100%;
text-align: left;
padding: 8px 10px;
margin-bottom: 4px;
border-radius: 4px;
border: none;
background: transparent;
color: #d4d4d4;
display: flex;
align-items: center;
cursor: pointer;
font-size: 13px;
transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover {
background: #2d2d30;
}
.nav-item.active {
background: #3e3e42;
color: #ffffff;
}
.nav-label {
margin-left: 4px;
}
.main-panel {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
/* Header */
header {
background: #252526;
border-bottom: 1px solid #3e3e42;
padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
font-size: 18px;
font-weight: 600;
color: #ffffff;
}
.header-actions {
display: flex;
gap: 10px;
}
/* Buttons */
.btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.2s;
}
.btn-primary {
background: #007acc;
color: white;
}
.btn-primary:hover {
background: #005a9e;
}
.btn-secondary {
background: #3e3e42;
color: #d4d4d4;
}
.btn-secondary:hover {
background: #4e4e52;
}
.btn-danger {
background: #c72525;
color: white;
}
.btn-danger:hover {
background: #a01e1e;
}
.btn-sm {
padding: 6px 12px;
font-size: 12px;
}
/* Tabs Container */
.tabs-container {
background: #2d2d30;
border-bottom: 1px solid #3e3e42;
overflow-x: auto;
}
.tabs-header {
display: flex;
padding: 0 20px;
}
.tab-group {
display: flex;
align-items: center;
margin-right: 20px;
padding: 8px 0;
}
.tab-group-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
color: #858585;
margin-right: 8px;
padding: 4px 8px;
}
.tabs {
display: flex;
gap: 2px;
}
.tab {
padding: 8px 16px;
background: #2d2d30;
color: #858585;
cursor: pointer;
border: none;
border-radius: 4px 4px 0 0;
font-size: 13px;
white-space: nowrap;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 8px;
}
.tab:hover {
background: #3e3e42;
color: #d4d4d4;
}
.tab.active {
background: #1e1e1e;
color: #ffffff;
border-bottom: 2px solid #007acc;
}
.tab-badge {
background: #3e3e42;
color: #d4d4d4;
padding: 2px 6px;
border-radius: 10px;
font-size: 10px;
font-weight: 600;
}
.tab.active .tab-badge {
background: #007acc;
color: white;
}
.tab-close {
margin-left: 4px;
padding: 2px 4px;
border-radius: 3px;
}
.tab-close:hover {
background: rgba(255, 255, 255, 0.1);
}
/* Content Area */
.content-area {
flex: 1;
/* Let the main content scroll vertically when it doesn't fit,
while still preventing horizontal overflow. */
overflow-x: hidden;
overflow-y: auto;
background: #1e1e1e;
display: flex;
flex-direction: column;
}
.no-session {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: #858585;
font-size: 16px;
}
.session-content {
display: flex;
flex-direction: column;
height: 100%;
}
.session-header {
background: #252526;
border-bottom: 1px solid #3e3e42;
padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.session-header h2 {
font-size: 16px;
font-weight: 600;
color: #ffffff;
}
.session-actions {
display: flex;
align-items: center;
gap: 10px;
}
.status-badge {
padding: 4px 8px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
}
.status-badge.pending {
background: #3e3e42;
color: #858585;
}
.status-badge.running {
background: #007acc;
color: white;
}
.status-badge.completed {
background: #0e7c0e;
color: white;
}
.status-badge.failed {
background: #c72525;
color: white;
}
.status-badge.stopped {
background: #858585;
color: white;
}
/* Terminal */
.terminal-container {
flex: 1;
display: flex;
flex-direction: column;
padding: 20px;
overflow: hidden;
}
.terminal {
flex: 1;
background: #1e1e1e;
border: 1px solid #3e3e42;
border-radius: 4px;
padding: 16px;
overflow-y: auto;
font-family: 'Courier New', monospace;
font-size: 13px;
line-height: 1.6;
}
.terminal-line {
margin-bottom: 8px;
word-wrap: break-word;
}
.terminal-line.command {
color: #4ec9b0;
}
.terminal-line.output {
color: #d4d4d4;
}
.terminal-line.error {
color: #f48771;
}
.terminal-line.success {
color: #4ec9b0;
}
.terminal-line.timestamp {
color: #858585;
font-size: 11px;
}
.terminal-line pre {
margin: 8px 0;
padding: 8px;
background: #252526;
border-radius: 4px;
overflow-x: auto;
}
/* Autorun terminal tweaks */
.autorun-terminal-container {
margin-top: 12px;
}
.command-input-container {
display: flex;
gap: 10px;
margin-top: 16px;
}
.command-input {
flex: 1;
background: #252526;
border: 1px solid #3e3e42;
border-radius: 4px;
padding: 10px 12px;
color: #d4d4d4;
font-size: 14px;
font-family: 'Courier New', monospace;
}
.command-input:focus {
outline: none;
border-color: #007acc;
}
.command-input::placeholder {
color: #858585;
}
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-content {
background: #252526;
border: 1px solid #3e3e42;
border-radius: 8px;
width: 90%;
max-width: 500px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.modal-header {
padding: 16px 20px;
border-bottom: 1px solid #3e3e42;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h3 {
font-size: 16px;
font-weight: 600;
color: #ffffff;
}
.close {
color: #858585;
font-size: 24px;
font-weight: bold;
cursor: pointer;
line-height: 1;
}
.close:hover {
color: #d4d4d4;
}
.modal-body {
padding: 20px;
}
.modal-body label {
display: block;
margin-bottom: 8px;
font-size: 13px;
font-weight: 500;
color: #d4d4d4;
}
.modal-body input {
width: 100%;
padding: 10px 12px;
background: #1e1e1e;
border: 1px solid #3e3e42;
border-radius: 4px;
color: #d4d4d4;
font-size: 14px;
margin-bottom: 16px;
}
.modal-body input:focus {
outline: none;
border-color: #007acc;
}
.modal-footer {
padding: 16px 20px;
border-top: 1px solid #3e3e42;
display: flex;
justify-content: flex-end;
gap: 10px;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: #1e1e1e;
}
::-webkit-scrollbar-thumb {
background: #424242;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #4e4e52;
}
/* Settings */
.settings-content {
display: flex;
flex-direction: column;
height: 100%;
}
.settings-body {
flex: 1;
padding: 20px;
overflow-y: auto;
}
.settings-toggle {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 16px;
cursor: pointer;
}
.settings-toggle input[type="checkbox"] {
width: auto;
margin: 0;
cursor: pointer;
}
.toggle-label {
font-size: 14px;
color: #d4d4d4;
cursor: pointer;
}
.settings-help {
font-size: 12px;
color: #858585;
line-height: 1.5;
margin-top: 8px;
}
/* Help link and tooltip */
.help-link {
color: #4a9eff;
text-decoration: none;
margin-left: 6px;
font-size: 14px;
cursor: pointer;
display: inline-block;
vertical-align: middle;
}
.help-link:hover {
color: #6bb0ff;
text-decoration: underline;
}
.help-tooltip {
background-color: #2d2d2d;
border: 1px solid #404040;
border-radius: 4px;
padding: 12px;
margin: 8px 0;
font-size: 13px;
color: #d4d4d4;
line-height: 1.5;
visibility: visible;
opacity: 1;
z-index: 1000;
display: block;
}
.help-tooltip-hidden {
display: none !important;
}
.help-tooltip code {
background-color: #1e1e1e;
padding: 2px 6px;
border-radius: 3px;
font-size: 12px;
color: #ce9178;
}
.help-tooltip ul {
margin: 8px 0;
padding-left: 20px;
}
.help-tooltip li {
margin: 4px 0;
}
/* Autorun details */
.autorun-content {
display: flex;
flex-direction: column;
flex: 1 1 auto; /* Fill available space in content-area */
min-height: 0;
overflow: hidden; /* Prevent the entire content from scrolling */
}
/* Keep header fixed - no scrolling */
.autorun-content .session-header {
flex: 0 0 auto;
}
/* In the Autoruns view, keep the metadata compact and fixed - no scrolling */
.autorun-content .settings-body {
flex: 0 0 auto;
padding: 16px 20px;
overflow: visible; /* Don't scroll this section */
}
/* Only the terminal container should scroll */
.autorun-terminal-container {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto; /* Enable scrolling only for terminal */
overflow-x: hidden;
padding: 20px;
}
/* Override terminal-container styles for autorun - remove flex and padding from base class */
.autorun-terminal-container.terminal-container {
overflow-y: auto !important; /* Override the hidden from .terminal-container to allow scrolling */
overflow-x: hidden;
padding: 0; /* Remove padding from terminal-container, we add it to autorun-terminal-container */
display: block; /* Change from flex to block so content flows naturally */
}
/* The terminal inside autorun-terminal-container should not scroll independently */
.autorun-terminal-container .terminal {
overflow: visible !important; /* Let the container handle scrolling */
height: auto; /* Let content determine height */
min-height: 0; /* Remove min-height constraint */
flex: none; /* Remove flex: 1 so it doesn't fill container */
}
.autorun-prompt {
margin: 8px 0 16px 0;
padding: 10px 12px;
background: #252526;
border-radius: 4px;
border: 1px solid #3e3e42;
color: #d4d4d4;
font-family: 'Courier New', monospace;
font-size: 13px;
white-space: pre-wrap;
word-wrap: break-word;
}