style.css•17.4 kB
/* Terminal Theme CSS - Dark Terminal Interface */
/* Reset and Base Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
background: #0d1117;
color: #c9d1d9;
line-height: 1.5;
min-height: 100vh;
overflow-x: hidden;
}
/* Terminal Container */
.terminal-container {
max-width: 1200px;
margin: 20px auto;
background: #161b22;
border: 1px solid #30363d;
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
overflow: hidden;
min-height: calc(100vh - 40px);
}
/* Terminal Header */
.terminal-header {
background: #21262d;
border-bottom: 1px solid #30363d;
padding: 12px 16px;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.terminal-controls {
display: flex;
gap: 8px;
}
.control-btn {
width: 12px;
height: 12px;
border-radius: 50%;
cursor: pointer;
transition: opacity 0.2s;
}
.control-btn.close {
background: #ff5f56;
}
.control-btn.minimize {
background: #ffbd2e;
}
.control-btn.maximize {
background: #27ca3f;
}
.control-btn:hover {
opacity: 0.8;
}
.terminal-title {
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 14px;
font-weight: 500;
color: #8b949e;
}
.terminal-actions {
display: flex;
gap: 8px;
}
/* Terminal Body */
.terminal-body {
padding: 20px;
background: #0d1117;
min-height: calc(100vh - 100px);
}
/* Terminal Line */
.terminal-line {
display: flex;
align-items: center;
margin-bottom: 16px;
font-size: 14px;
}
.prompt {
color: #58a6ff;
font-weight: 500;
margin-right: 8px;
user-select: none;
}
.project-path {
color: #7ee787;
font-weight: 400;
}
/* Terminal Sections */
.terminal-section {
margin-bottom: 24px;
border: 1px solid #30363d;
border-radius: 6px;
background: #161b22;
}
.section-header {
background: #21262d;
padding: 12px 16px;
border-bottom: 1px solid #30363d;
display: flex;
justify-content: space-between;
align-items: center;
}
.section-title {
color: #f0f6fc;
font-weight: 500;
font-size: 14px;
}
.section-controls {
display: flex;
gap: 8px;
}
/* Command Panel */
.command-panel {
padding: 16px;
display: none;
}
.command-panel:not(.hidden) {
display: block;
}
.command-line {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
}
.terminal-input {
flex: 1;
background: #0d1117;
border: 1px solid #30363d;
border-radius: 4px;
padding: 8px 12px;
color: #c9d1d9;
font-family: inherit;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
}
.terminal-input:focus {
border-color: #58a6ff;
box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.1);
}
.terminal-input::placeholder {
color: #6e7681;
}
/* Command Options */
.command-options {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
flex-wrap: wrap;
gap: 12px;
}
.terminal-checkbox {
display: flex;
align-items: center;
gap: 8px;
color: #c9d1d9;
cursor: pointer;
font-size: 14px;
}
.terminal-checkbox input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: #58a6ff;
}
/* Console Window */
.console-window {
background: #0d1117;
border: 1px solid #30363d;
border-radius: 4px;
overflow: hidden;
}
.console-header {
background: #21262d;
padding: 8px 12px;
border-bottom: 1px solid #30363d;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
color: #8b949e;
}
.console-content {
padding: 12px;
min-height: 200px;
max-height: 400px;
overflow-y: auto;
font-family: inherit;
font-size: 13px;
line-height: 1.4;
white-space: pre-wrap;
color: #7ee787;
background: #010409;
}
/* Custom Scrollbar */
.console-content::-webkit-scrollbar {
width: 8px;
}
.console-content::-webkit-scrollbar-track {
background: #161b22;
}
.console-content::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 4px;
}
.console-content::-webkit-scrollbar-thumb:hover {
background: #484f58;
}
/* Feedback Panel */
.feedback-panel {
padding: 16px;
}
.prompt-window {
background: #0d1117;
border: 1px solid #30363d;
border-radius: 4px;
padding: 16px;
margin-bottom: 16px;
}
.prompt-content {
color: #c9d1d9;
font-size: 14px;
line-height: 1.6;
border-left: 3px solid #58a6ff;
padding-left: 12px;
font-style: italic;
}
.feedback-input-area {
background: #0d1117;
border: 1px solid #30363d;
border-radius: 4px;
padding: 16px;
}
.terminal-textarea {
width: 100%;
background: transparent;
border: none;
color: #c9d1d9;
font-family: inherit;
font-size: 14px;
resize: vertical;
min-height: 120px;
outline: none;
margin-top: 8px;
margin-bottom: 16px;
}
.terminal-textarea::placeholder {
color: #6e7681;
}
.feedback-options {
margin: 15px 0;
padding: 10px;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.checkbox-container {
display: flex;
align-items: center;
cursor: pointer;
font-size: 14px;
color: #e0e0e0;
user-select: none;
}
.checkbox-container input[type="checkbox"] {
display: none;
}
.checkmark {
width: 18px;
height: 18px;
background: rgba(255, 255, 255, 0.1);
border: 2px solid #4CAF50;
border-radius: 3px;
margin-right: 10px;
position: relative;
transition: all 0.3s ease;
}
.checkbox-container input[type="checkbox"]:checked + .checkmark {
background: #4CAF50;
}
.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
content: '';
position: absolute;
left: 5px;
top: 2px;
width: 4px;
height: 8px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.checkbox-container:hover .checkmark {
border-color: #66BB6A;
background: rgba(76, 175, 80, 0.2);
}
.feedback-actions {
display: flex;
justify-content: flex-end;
}
/* Terminal Buttons */
.terminal-btn {
background: #238636;
color: #ffffff;
border: none;
border-radius: 4px;
padding: 8px 16px;
font-family: inherit;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
outline: none;
}
.terminal-btn:hover {
background: #2ea043;
transform: translateY(-1px);
}
.terminal-btn:active {
transform: translateY(0);
}
.terminal-btn.small {
padding: 6px 12px;
font-size: 12px;
}
.terminal-btn.danger {
background: #da3633;
}
.terminal-btn.danger:hover {
background: #f85149;
}
.terminal-btn.success {
background: #238636;
}
.terminal-btn.success:hover {
background: #2ea043;
}
.terminal-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
/* Cursor Animation */
.cursor-blink {
animation: blink 1s infinite;
color: #58a6ff;
font-weight: bold;
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
/* Terminal Footer */
.terminal-footer {
background: #21262d;
border-top: 1px solid #30363d;
padding: 12px 16px;
text-align: center;
}
.footer-info {
font-size: 12px;
color: #6e7681;
}
.footer-info a {
color: #58a6ff;
text-decoration: none;
}
.footer-info a:hover {
text-decoration: underline;
}
/* Status Indicators */
.status-running {
color: #7ee787;
}
.status-stopped {
color: #f85149;
}
.status-ready {
color: #d29922;
}
/* Hidden Class */
.hidden {
display: none !important;
}
/* File Import Controls */
.file-import-controls {
margin: 16px 0;
position: relative;
}
.file-import-trigger {
margin-bottom: 8px;
}
.file-import-hint {
font-size: 12px;
color: #8b949e;
font-style: italic;
}
.file-picker-dropdown {
position: absolute;
top: calc(100% + 5px);
left: 0;
right: 0;
background: #21262d;
border: 1px solid #30363d;
border-radius: 6px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
z-index: 1000;
max-height: 400px;
overflow: hidden;
}
.file-picker-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: #161b22;
border-bottom: 1px solid #30363d;
}
.current-path {
font-size: 14px;
color: #58a6ff;
font-weight: 500;
}
.close-btn {
background: none;
border: none;
color: #8b949e;
font-size: 18px;
cursor: pointer;
padding: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.close-btn:hover {
background: #30363d;
color: #f0f6fc;
}
.file-picker-content {
max-height: 300px;
overflow-y: auto;
}
.file-list {
padding: 8px 0;
}
.file-item {
display: flex;
align-items: center;
padding: 8px 16px;
cursor: pointer;
transition: background-color 0.2s;
border: none;
background: none;
width: 100%;
text-align: left;
color: #c9d1d9;
font-family: inherit;
font-size: 14px;
}
.file-item:hover {
background: #30363d;
}
.file-item.selected {
background: #1f6feb;
color: #ffffff;
}
.file-item.selected:hover {
background: #0969da;
}
.file-item.multi-selected {
background-color: #28a745;
color: white;
border-left: 4px solid #155724;
}
.file-item.multi-selected:hover {
background-color: #218838;
}
.file-item.multi-selected .file-name {
font-weight: bold;
}
.file-icon {
margin-right: 8px;
font-size: 16px;
width: 20px;
text-align: center;
}
.file-name {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.folder-icon {
color: #58a6ff;
}
.file-icon.file {
color: #8b949e;
}
.file-picker-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: #161b22;
border-top: 1px solid #30363d;
}
.file-picker-status {
font-size: 12px;
color: #8b949e;
}
.multi-select-status {
color: #4CAF50;
font-size: 0.9em;
font-weight: bold;
flex: 1;
text-align: center;
background: rgba(76, 175, 80, 0.1);
padding: 4px 8px;
border-radius: 4px;
}
/* File picker scrollbar */
.file-picker-content::-webkit-scrollbar {
width: 8px;
}
.file-picker-content::-webkit-scrollbar-track {
background: #161b22;
}
.file-picker-content::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 4px;
}
.file-picker-content::-webkit-scrollbar-thumb:hover {
background: #484f58;
}
/* Search functionality styles */
.search-info {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 16px;
background: #0d1117;
border-bottom: 1px solid #30363d;
font-size: 12px;
}
.search-query {
color: #58a6ff;
font-weight: 500;
}
.search-results {
color: #8b949e;
font-style: italic;
}
/* Highlighted search text */
.file-name mark {
background: #ffd33d;
color: #24292f;
padding: 1px 2px;
border-radius: 2px;
font-weight: bold;
}
/* Enhanced file item for search results */
.file-item.search-result {
border-left: 3px solid #58a6ff;
}
.file-item.search-result .file-name {
font-weight: 500;
}
/* Responsive Design */
@media (max-width: 768px) {
.terminal-container {
margin: 10px;
border-radius: 4px;
min-height: calc(100vh - 20px);
}
.terminal-header {
padding: 8px 12px;
}
.terminal-title {
font-size: 12px;
}
.terminal-body {
padding: 12px;
}
.command-line {
flex-direction: column;
align-items: stretch;
gap: 8px;
}
.command-options {
flex-direction: column;
align-items: flex-start;
}
.section-header {
flex-direction: column;
gap: 8px;
align-items: flex-start;
}
.console-content {
font-size: 12px;
min-height: 150px;
}
.terminal-btn {
width: 100%;
margin-bottom: 8px;
}
}
@media (max-width: 480px) {
.terminal-controls {
gap: 6px;
}
.control-btn {
width: 10px;
height: 10px;
}
.terminal-title {
font-size: 11px;
}
.terminal-body {
padding: 8px;
}
.console-content {
min-height: 120px;
}
}
/* Animation Effects */
.fade-in {
animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Terminal Glow Effect */
.terminal-container {
box-shadow:
0 0 20px rgba(88, 166, 255, 0.1),
0 8px 32px rgba(0, 0, 0, 0.5);
}
/* Selection Colors */
::selection {
background: rgba(88, 166, 255, 0.3);
color: #ffffff;
}
::-moz-selection {
background: rgba(88, 166, 255, 0.3);
color: #ffffff;
}
/* Markdown Content Styling */
.markdown-content {
color: #c9d1d9;
line-height: 1.6;
}
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
color: #58a6ff;
margin-top: 16px;
margin-bottom: 8px;
font-weight: 600;
}
.markdown-content h1 {
font-size: 1.5em;
border-bottom: 1px solid #30363d;
padding-bottom: 8px;
}
.markdown-content h2 {
font-size: 1.3em;
}
.markdown-content h3 {
font-size: 1.1em;
}
.markdown-content p {
margin-bottom: 12px;
}
.markdown-content code {
background: #161b22;
color: #f85149;
padding: 2px 4px;
border-radius: 3px;
font-family: inherit;
font-size: 0.9em;
}
.markdown-content pre {
background: #0d1117;
border: 1px solid #30363d;
border-radius: 6px;
padding: 12px;
overflow-x: auto;
margin: 12px 0;
}
.markdown-content pre code {
background: transparent;
color: #c9d1d9;
padding: 0;
}
.markdown-content blockquote {
border-left: 3px solid #58a6ff;
padding-left: 12px;
margin: 12px 0;
color: #8b949e;
font-style: italic;
}
.markdown-content ul,
.markdown-content ol {
margin: 12px 0;
padding-left: 20px;
}
.markdown-content li {
margin-bottom: 4px;
}
.markdown-content a {
color: #58a6ff;
text-decoration: none;
}
.markdown-content a:hover {
text-decoration: underline;
}
.markdown-content table {
border-collapse: collapse;
width: 100%;
margin: 12px 0;
}
.markdown-content th,
.markdown-content td {
border: 1px solid #30363d;
padding: 8px 12px;
text-align: left;
}
.markdown-content th {
background: #21262d;
font-weight: 600;
}
.markdown-content strong {
color: #f0f6fc;
font-weight: 600;
}
.markdown-content em {
color: #f0f6fc;
font-style: italic;
}
/* Highlight.js overrides for terminal theme */
.hljs {
background: #0d1117 !important;
color: #c9d1d9 !important;
}
.markdown-content .hljs-keyword {
color: #ff7b72 !important;
}
.markdown-content .hljs-string {
color: #a5d6ff !important;
}
.markdown-content .hljs-comment {
color: #8b949e !important;
}
.markdown-content .hljs-function {
color: #d2a8ff !important;
}
.markdown-content .hljs-variable {
color: #ffa657 !important;
}
/* Speech to Text Controls */
.speech-controls {
display: flex;
align-items: center;
gap: 12px;
margin: 12px 0;
padding: 12px;
background: #161b22;
border: 1px solid #30363d;
border-radius: 6px;
}
.mic-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: #238636;
border: 1px solid #2ea043;
color: #ffffff;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
font-size: 14px;
}
.mic-btn:hover {
background: #2ea043;
transform: translateY(-1px);
}
.mic-btn.recording {
background: #da3633;
border-color: #f85149;
animation: pulse 1.5s infinite;
}
.mic-btn.recording:hover {
background: #f85149;
}
.mic-icon {
font-size: 16px;
}
.recording-indicator {
display: flex;
align-items: center;
gap: 8px;
color: #f85149;
font-size: 14px;
}
.recording-dot {
width: 8px;
height: 8px;
background: #f85149;
border-radius: 50%;
animation: pulse 1s infinite;
}
.transcription-status {
display: flex;
align-items: center;
gap: 8px;
color: #58a6ff;
font-size: 14px;
}
.transcription-status::before {
content: "⏳";
animation: spin 1s linear infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.7;
transform: scale(1.05);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.hidden {
display: none !important;
}