Files
monaco/Frontend/src/index.css

2233 lines
37 KiB
CSS

/* Import Lexend font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');
:root {
/* Light theme variables */
--background: #ffffff;
--foreground: #0a0a0a;
--card: #ffffff;
--card-foreground: #0a0a0a;
--popover: #ffffff;
--popover-foreground: #0a0a0a;
--primary: #0f172a;
--primary-foreground: #f8fafc;
--secondary: #f1f5f9;
--secondary-foreground: #0f172a;
--muted: #f1f5f9;
--muted-foreground: #64748b;
--accent: #f1f5f9;
--accent-foreground: #0f172a;
--destructive: #dc2626;
--destructive-foreground: #ffffff;
--border: #e2e8f0;
--input: #e2e8f0;
--ring: #94a3b8;
--vscode-background: #000000;
--vscode-foreground: #d4d4d4;
--vscode-activityBar-background: #333333;
--vscode-activityBar-foreground: #ffffff;
--vscode-activityBar-inactiveForeground: #ffffff80;
--vscode-sideBar-background: #252526;
--vscode-sideBar-foreground: #cccccc;
--vscode-editor-background: #000000;
--vscode-statusBar-background: #007acc;
--vscode-statusBar-foreground: #ffffff;
--vscode-panel-background: #000000;
--vscode-panel-border: #80808059;
--vscode-tab-activeBackground: #000000;
--vscode-tab-inactiveBackground: #2d2d2d;
--vscode-tab-activeForeground: #ffffff;
--vscode-tab-inactiveForeground: #ffffff80;
--vscode-tab-border: #252526;
}
.dark {
/* Dark theme variables */
--background: #000000;
--foreground: #ffffff;
--card: #1a1a1a;
--card-foreground: #e5e5e5;
--popover: #1a1a1a;
--popover-foreground: #e5e5e5;
--primary: #262626;
--primary-foreground: #ffffff;
--secondary: #1a1a1a;
--secondary-foreground: #ffffff;
--muted: #1a1a1a;
--muted-foreground: #a1a1a1;
--accent: #1a1a1a;
--accent-foreground: #ffffff;
--destructive: #991b1b;
--destructive-foreground: #ffffff;
--border: rgba(255, 255, 255, 0.1);
--input: rgba(255, 255, 255, 0.1);
--ring: #525252;
}
body {
margin: 0;
padding: 0;
font-family: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
"Helvetica Neue", sans-serif;
overflow: hidden;
}
.App {
height: 100vh;
width: 100vw;
overflow: hidden;
}
/* VS Code Container */
.vscode-container {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
background-color: var(--vscode-background);
color: var(--vscode-foreground);
}
/* Main area layout */
.vscode-main {
display: flex;
flex: 1;
overflow: hidden;
margin-left: 50px; /* Matches activity bar width */
position: relative;
width: calc(100% - 50px);
}
/* Activity Bar */
.activity-bar {
display: flex;
flex-direction: column;
background-color: var(--vscode-activityBar-background);
z-index: 10; /* Lower z-index than the StatusBar */
position: fixed;
top: 0;
left: 0;
height: calc(100% - 22px); /* Subtract the height of the StatusBar */
width: 50px;
}
.activity-bar button {
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
color: var(--vscode-activityBar-inactiveForeground);
cursor: pointer;
position: relative;
}
.activity-bar button:hover {
color: var(--vscode-activityBar-foreground);
}
.activity-bar button.active {
color: var(--vscode-activityBar-foreground);
}
.activity-bar button.active::before {
content: "";
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 2px;
background-color: var(--vscode-activityBar-foreground);
}
/* Sidebar */
.sidebar-container {
display: flex;
height: 100%;
width: 100%; /* Ensure it takes the full width */
}
.sidebar {
height: 100%;
background-color: var(--vscode-sideBar-background);
color: var(--vscode-sideBar-foreground);
overflow-y: auto;
overflow-x: hidden;
position: absolute;
left: 0;
top: 0;
z-index: 5;
transition: transform 0.2s ease;
border-right: 1px solid #1e1e1e;
}
.sidebar-title {
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
padding: 8px 12px;
color: #888888;
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 4px;
}
.sidebar-section {
padding: 0 0 12px 0;
}
.sidebar-search {
padding: 0 12px;
}
.sidebar-empty-message {
padding: 12px;
text-align: center;
color: #888888;
}
/* File Tree */
.file-tree {
padding: 0 8px;
}
.file-tree-item {
margin: 2px 0;
}
.file-tree-folder,
.file-tree-file {
display: flex;
align-items: center;
padding: 3px 6px;
border-radius: 3px;
cursor: pointer;
}
.file-tree-folder:hover,
.file-tree-file:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.folder-icon,
.file-icon {
margin-right: 6px;
display: flex;
align-items: center;
}
.file-tree-children {
padding-left: 16px;
}
.file-tree-file.active {
background-color: #37373d;
}
.file-tree-file .rename-input {
background-color: #3c3c3c;
border: 1px solid #007acc;
color: #cccccc;
font-size: 13px;
padding: 1px 4px;
width: calc(100% - 14px);
outline: none;
}
/* Search Input */
.search-input-container {
position: relative;
margin: 8px 0;
}
.search-input {
width: 100%;
padding: 6px 8px 6px 30px;
background-color: #3c3c3c;
color: #cccccc;
border: 1px solid transparent;
border-radius: 2px;
outline: none;
}
.search-input:focus {
border-color: #007acc;
}
.search-icon {
position: absolute;
left: 8px;
top: 50%;
transform: translateY(-50%);
color: #888888;
}
/* Editor Area */
.editor-area {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
height: 100%;
width: 100%;
transition: margin-left 0.2s ease, width 0.2s ease;
box-sizing: border-box;
}
.editor-tabs {
display: flex;
background-color: var(--vscode-tab-inactiveBackground);
border-bottom: 1px solid var(--vscode-tab-border);
overflow-x: auto;
flex-grow: 1;
flex-shrink: 1;
min-width: 0; /* Important for flexbox to allow shrinking below content size */
scrollbar-width: thin;
scrollbar-color: #555555 #2d2d2d;
}
.editor-tab {
display: flex;
align-items: center;
padding: 0 10px;
height: 35px;
background-color: var(--vscode-tab-inactiveBackground);
color: var(--vscode-tab-inactiveForeground);
border-right: 1px solid var(--vscode-tab-border);
cursor: pointer;
flex-shrink: 1;
min-width: 100px; /* Minimum width before scrolling starts */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.editor-tab.active {
background-color: var(--vscode-tab-activeBackground);
color: var(--vscode-tab-activeForeground);
}
/* Editor tab new button */
.editor-tab-new {
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 35px;
background-color: var(--vscode-tab-inactiveBackground);
color: var(--vscode-tab-inactiveForeground);
cursor: pointer;
border: none;
opacity: 0.7;
}
.editor-tab-new:hover {
opacity: 1;
}
.tab-name {
margin-right: 8px;
}
.tab-close {
background: none;
border: none;
color: inherit;
font-size: 16px;
padding: 0;
cursor: pointer;
opacity: 0.7;
}
.tab-close:hover {
opacity: 1;
}
.monaco-container {
flex: 1;
overflow: hidden;
width: 100%;
transition: height 0.2s ease;
}
/* Empty editor message */
.empty-editor-message {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: #888888;
}
.empty-editor-message p {
max-width: 300px;
text-align: center;
}
/* Editor actions */
.editor-actions {
position: absolute;
bottom: 10px;
right: 10px;
z-index: 100;
display: flex;
}
.editor-action-button {
background-color: #3c3c3c;
color: #cccccc;
border: none;
border-radius: 3px;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
margin-left: 5px;
cursor: pointer;
}
.editor-action-button:hover {
background-color: #4c4c4c;
}
.editor-action-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Panel */
.panel {
border-top: 1px solid var(--vscode-panel-border);
background-color: var(--vscode-panel-background);
overflow: hidden;
display: flex;
flex-direction: column;
}
.panel-tabs {
display: flex;
background-color: #252526;
border-bottom: 1px solid #1e1e1e;
height: 36px;
align-items: center;
position: relative;
}
.panel-tab {
display: flex;
align-items: center;
padding: 0 10px;
height: 100%;
color: #888888;
cursor: pointer;
color: var(--vscode-panelTitle-inactiveForeground, #969696);
border-bottom: 1px solid transparent;
}
.panel-tab.active {
background-color: var(--vscode-panel-background);
color: #ffffff;
color: var(--vscode-panelTitle-activeForeground, #ffffff);
border-bottom: 1px solid var(--vscode-panelTitle-activeBorder, #007fd4);
}
.panel-tab:hover:not(.active) {
color: var(--vscode-panelTitle-activeForeground, #ffffff);
}
.tab-icon {
margin-right: 6px;
margin-right: 5px;
display: flex;
align-items: center;
}
.panel-content {
flex: 1;
overflow: auto;
font-family: "Consolas", "Courier New", monospace;
font-size: 10px;
padding: 8px;
padding: 10px;
font-family: 'Consolas', 'Courier New', monospace;
font-size: 13px;
line-height: 1.4;
}
.panel-terminal,
.panel-problems,
.panel-output {
height: 100%;
}
.panel-terminal {
padding: 8px;
font-family: monospace;
overflow-y: auto;
overflow-x: hidden;
height: calc(100% - 36px); /* Adjust based on your header height */
background-color: #1e1e1e;
color: #ddd;
outline: none; /* Remove focus outline */
scrollbar-width: thin;
scrollbar-color: #555555 #1e1e1e;
}
.panel-terminal::-webkit-scrollbar {
width: 8px;
}
.panel-terminal::-webkit-scrollbar-track {
background: #1e1e1e;
}
.panel-terminal::-webkit-scrollbar-thumb {
background: #555555;
border-radius: 4px;
}
.panel-terminal::-webkit-scrollbar-thumb:hover {
background: #666666;
}
.panel-terminal .terminal-line {
white-space: pre-wrap;
margin-bottom: 3px;
word-wrap: break-word; /* Ensure long words don't cause horizontal overflow */
}
.terminal-line {
white-space: pre-wrap;
line-height: 1.5;
margin-bottom: 2px;
}
.terminal-prompt {
color: #0a84ff;
margin-right: 8px;
}
.terminal-output {
color: #ddd;
}
.terminal-warning {
color: #ffa500;
}
.output-line {
white-space: pre-wrap;
line-height: 1.5;
color: #888888;
color: #cccccc;
margin-bottom: 3px;
}
.terminal-cursor {
display: inline-block;
width: 8px;
height: 14px;
background-color: #cccccc;
animation: blink 1s step-end infinite;
vertical-align: middle;
margin-left: 2px;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.panel-empty-message {
color: #888888;
font-style: italic;
}
/* Status Bar */
.status-bar {
height: 22px;
background-color: var(--vscode-statusBar-background);
color: var(--vscode-statusBar-foreground);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 10px;
font-size: 12px;
}
.status-bar-left,
.status-bar-right {
display: flex;
align-items: center;
}
.status-item {
display: flex;
align-items: center;
margin: 0 8px;
}
.status-item svg {
margin-right: 4px;
}
.status-button {
background: transparent;
border: none;
color: var(--vscode-statusBar-foreground);
cursor: pointer;
padding: 0;
}
.status-button:hover {
text-decoration: underline;
}
/* Resize Handles */
.resize-handle {
background-color: transparent;
transition: background-color 0.2s;
}
.resize-handle:hover {
background-color: #0078d4;
}
.resize-handle-horizontal {
width: 5px;
cursor: col-resize;
height: 4px;
background-color: #2d2d30;
cursor: ns-resize;
width: 100%;
}
.resize-handle-horizontal:hover {
background-color: #007fd4;
}
.resize-handle-vertical {
height: 5px;
cursor: row-resize;
}
/* Editor Container */
.editor-container {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
height: 100%;
position: relative;
width: 100%;
}
/* Modal for new file */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.new-file-modal {
background-color: #252526;
padding: 30px;
border-radius: 4px;
width: 400px;
}
.new-file-modal h3 {
margin-top: 0;
color: #cccccc;
}
.new-file-modal input {
width: 100%;
padding: 5px 3px;
background-color: #3c3c3c;
color: #cccccc;
border: 1px solid #1e1e1e;
border-radius: 2px;
margin-bottom: 15px;
}
.new-file-modal input:focus {
outline: none;
border-color: #007acc;
}
.modal-actions {
display: flex;
justify-content: flex-end;
}
.modal-actions button {
padding: 6px 12px;
margin-left: 10px;
border: none;
border-radius: 2px;
cursor: pointer;
}
.modal-actions button:first-child {
background-color: transparent;
color: #cccccc;
}
.modal-actions button:last-child {
background-color: #007acc;
color: white;
}
/* Editor container with sidebar */
.editor-container {
display: flex;
height: 100%;
position: relative;
width: 100%;
overflow: hidden;
}
/* Explorer sidebar */
.explorer-sidebar {
width: 250px;
height: 100%;
background-color: #252526;
color: #cccccc;
display: flex;
flex-direction: column;
border-right: 1px solid #1e1e1e;
}
.explorer-sidebar.hidden {
display: none;
}
.sidebar-header {
padding: 10px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #1e1e1e;
}
.sidebar-header h3 {
margin: 0;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
opacity: 0.6;
}
.sidebar-actions {
display: flex;
}
.sidebar-actions button {
background: transparent;
border: none;
color: #cccccc;
cursor: pointer;
padding: 2px;
margin-left: 5px;
opacity: 0.7;
}
.sidebar-actions button:hover {
opacity: 1;
}
.file-tree {
flex: 1;
overflow: auto;
padding: 5px;
}
.sidebar-item {
font-size: 13px;
margin: 2px 0;
cursor: pointer;
border-radius: 3px;
}
.folder-item {
display: flex;
align-items: center;
padding: 3px;
}
.folder-item:hover {
background-color: #2a2d2e;
}
.folder-contents {
padding-left: 12px;
}
.file-item {
padding: 3px;
display: flex;
align-items: center;
}
.file-item:hover {
background-color: #2a2d2e;
}
.file-item.active {
background-color: #37373d;
}
.unsaved-indicator {
margin-left: 5px;
color: #cccccc;
font-weight: bold;
}
/* Context menu */
.context-menu {
background-color: #252526;
border: 1px solid #3c3c3c;
border-radius: 3px;
padding: 5px 0;
width: 150px;
z-index: 1000;
}
.context-menu-item {
padding: 5px 10px;
font-size: 12px;
display: flex;
align-items: center;
cursor: pointer;
}
.context-menu-item:hover {
background-color: #2a2d2e;
}
.context-menu-item.delete {
color: #ff6666;
}
/* Fixes for editor layout */
.editor-area {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
}
/* Rename input */
.file-item input {
background-color: #3c3c3c;
border: 1px solid #007acc;
color: #cccccc;
font-size: 13px;
padding: 1px 4px;
width: calc(100% - 14px);
outline: none;
}
.sidebar-action {
background: transparent;
border: none;
color: #cccccc;
cursor: pointer;
padding: 2px;
margin-left: 5px;
opacity: 0.7;
}
.sidebar-action:hover {
opacity: 1;
}
.unsaved-indicator {
color: #cccccc;
}
/* Editor header with tabs and run controls */
.editor-header {
display: flex;
justify-content: space-between;
background-color: var(--vscode-editorGroupHeader-tabsBackground);
border-bottom: 1px solid var(--vscode-editorGroupHeader-tabsBorder);
width: 100%;
overflow: hidden;
}
.editor-tabs {
display: flex;
overflow-x: auto;
flex-grow: 1;
flex-shrink: 1;
min-width: 0; /* Important for flexbox to allow shrinking below content size */
scrollbar-width: thin;
scrollbar-color: #555555 #2d2d2d;
}
.editor-tab {
display: flex;
align-items: center;
padding: 0 10px;
height: 35px;
background-color: var(--vscode-tab-inactiveBackground);
color: var(--vscode-tab-inactiveForeground);
border-right: 1px solid var(--vscode-tab-border);
cursor: pointer;
flex-shrink: 1;
min-width: 100px; /* Minimum width before scrolling starts */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.editor-tab.active {
background-color: var(--vscode-tab-activeBackground);
color: var(--vscode-tab-activeForeground);
}
/* Run controls in the top right */
.editor-run-controls {
display: flex;
align-items: center;
padding-right: 10px;
flex-shrink: 0; /* Prevent shrinking */
}
.run-button {
display: flex;
align-items: center;
padding: 4px 4px;
margin-right: 8px;
background-color: #1e1e1e;
color: #cccccc;
border: none;
border-radius: 3px;
cursor: pointer;
font-size: 12px;
white-space: nowrap; /* Prevent wrapping */
flex-shrink: 0; /* Prevent shrinking */
}
.run-button:hover {
background-color: #4c4c4c;
}
.run-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.run-button svg {
margin-right: 4px;
}
.terminal-toggle-button {
background-color: transparent;
border: none;
color: #cccccc;
cursor: pointer;
opacity: 0.8;
padding: 4px;
display: flex;
align-items: center;
}
.terminal-toggle-button:hover {
opacity: 1;
}
/* Terminal panel */
.terminal-panel {
height: 200px;
background-color: #1e1e1e;
border-top: 1px solid #333;
display: flex;
flex-direction: column;
}
.terminal-header {
display: flex;
justify-content: space-between;
padding: 4px 8px;
background-color: #252526;
font-size: 12px;
}
.terminal-close {
background: transparent;
border: none;
color: #cccccc;
cursor: pointer;
opacity: 0.7;
}
.terminal-close:hover {
opacity: 1;
}
.terminal-content {
flex: 1;
padding: 8px;
font-family: 'Consolas', monospace;
font-size: 13px;
overflow-y: auto;
color: #cccccc;
}
.terminal-line {
margin-bottom: 4px;
white-space: pre-wrap;
}
.terminal-line.command {
color: #569cd6;
}
.terminal-input {
background-color: transparent;
border: none;
color: inherit;
font-family: monospace;
font-size: inherit;
margin-left: 8px;
outline: none;
width: calc(100% - 60px);
}
.terminal-input:focus {
outline: none;
}
.terminal-line.info {
color: #75beff;
}
.terminal-line.output {
color: #cccccc;
}
.terminal-line.warning {
color: #ffcc00;
}
.terminal-line.error {
color: #f44747;
}
.cursor {
display: inline-block;
width: 8px;
height: 14px;
background-color: #cccccc;
animation: blink 1s step-end infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* Make sure the monaco container adjusts when terminal is shown */
.monaco-container {
flex: 1;
overflow: hidden;
width: 100%;
}
/* Update editor area to account for terminal panel */
.editor-area {
display: flex;
flex-direction: column;
height: 100%;
transition: margin-left 0.2s ease;
}
/* Animation for the spinner */
.animate-spin {
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Panel actions (close button) */
.panel-actions {
margin-left: auto;
padding-right: 8px;
display: flex;
}
.panel-close-btn {
background: transparent;
border: none;
color: #cccccc;
cursor: pointer;
opacity: 0.7;
padding: 2px;
display: flex;
align-items: center;
justify-content: center;
}
.panel-close-btn:hover {
opacity: 1;
}
/* Code Challenge Component Styles - Exact Screenshot Layout */
.code-challenge-container {
display: flex;
flex-direction: column;
height: 100vh;
background-color: #f5f5f5;
color: #1a1a1a;
}
.code-challenge-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 24px;
background-color: #ffffff;
border-bottom: 1px solid #e0e0e0;
z-index: 10;
}
.header-left {
display: flex;
align-items: center;
gap: 12px;
}
.header-icon {
font-size: 22px;
}
.code-challenge-header h1 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: #1a1a1a;
}
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
.saved-indicator {
font-size: 12px;
color: #666;
display: flex;
align-items: center;
gap: 4px;
}
.submit-test-btn {
background-color: #007bff;
color: white;
border: none;
padding: 8px 20px;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
}
.submit-test-btn:hover {
background-color: #0056b3;
}
/* Old timer styles removed - now using time-remaining-widget */
.user-profile {
display: flex;
align-items: center;
}
.user-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
cursor: pointer;
transition: transform 0.2s ease;
}
.user-avatar:hover {
transform: scale(1.05);
}
/* Body Layout */
.code-challenge-body {
display: flex;
flex: 1;
overflow: hidden;
}
/* Left Sidebar */
.left-sidebar {
width: 280px;
background-color: #ffffff;
border-right: 1px solid #e0e0e0;
display: flex;
flex-direction: column;
overflow-y: auto;
}
/* Time Remaining Widget */
.time-remaining-widget {
padding: 20px;
border-bottom: 1px solid #e0e0e0;
}
.time-remaining-widget h3 {
margin: 0 0 16px 0;
font-size: 18px;
font-weight: 700;
color: #333;
}
.time-remaining-widget .timer-value {
display: flex;
justify-content: center;
gap: 8px;
}
.time-unit {
display: flex;
flex-direction: column;
align-items: center;
}
.time-unit .time-block {
background-color: #fef3cd;
color: #d97706;
padding: 10px 14px;
border-radius: 6px;
font-size: 22px;
font-weight: 700;
min-width: 48px;
text-align: center;
font-family: 'Consolas', 'Monaco', monospace;
}
.time-unit .time-label {
font-size: 13px;
color: #666;
margin-top: 5px;
text-transform: capitalize;
}
/* Question Palette Widget */
.question-palette-widget {
padding: 20px;
flex: 1;
}
.question-palette-widget h3 {
margin: 0 0 16px 0;
font-size: 18px;
font-weight: 700;
color: #333;
}
.sign-in-btn {
background-color: transparent;
color: #6b7280;
border: 1px solid #d1d5db;
padding: 6px 16px;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.sign-in-btn:hover {
background-color: #f3f4f6;
border-color: #9ca3af;
color: #374151;
}
/* Removed old styles */
.question-palette-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 10px;
margin-bottom: 24px;
}
.question-palette-btn {
padding: 8px 6px;
background-color: #e9ecef;
color: #495057;
border: 1px solid #dee2e6;
border-radius: 4px;
text-align: center;
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: all 0.2s ease;
min-width: 34px;
}
.question-palette-btn:hover:not(.palette-active):not(:disabled) {
background-color: #dee2e6;
border-color: #adb5bd;
}
.question-palette-btn.palette-active {
background-color: #007bff;
color: #ffffff;
border-color: #007bff;
}
.question-palette-btn.palette-marked {
background-color: #ff9800;
color: #ffffff;
border-color: #ff9800;
}
.question-palette-btn.palette-active.palette-marked {
background-color: #ff6d00;
color: #ffffff;
border-color: #ff6d00;
}
.question-palette-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
/* Question status colors */
.question-palette-btn.answered {
background-color: #28a745;
color: #ffffff;
border-color: #28a745;
}
.question-palette-btn.marked {
background-color: #ff9800;
color: #ffffff;
border-color: #ff9800;
}
.question-palette-btn.skipped {
background-color: #6c757d;
color: #ffffff;
border-color: #6c757d;
}
.palette-legend {
display: flex;
flex-direction: column;
gap: 10px;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #495057;
}
.legend-dot {
width: 14px;
height: 14px;
border-radius: 2px;
flex-shrink: 0;
}
.legend-current {
background-color: #007bff;
}
.legend-answered {
background-color: #28a745;
}
.legend-skipped {
background-color: #6c757d;
}
.legend-marked {
background-color: #ff9800;
}
.legend-not-visited {
background-color: #e9ecef;
}
/* Main Content Area */
.main-content-area {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
background-color: #f5f5f5;
}
/* Top Section: Question above Editor */
.top-section {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
.content-wrapper {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Question Bar - appears above editor */
.question-bar {
background-color: #f8f9fa;
border-bottom: 1px solid #e0e0e0;
max-height: 25%;
min-height: 150px;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.question-header {
padding: 8px 24px;
background-color: #e9ecef;
border-bottom: 1px solid #dee2e6;
}
.question-header h2 {
margin: 0;
font-size: 16px;
font-weight: 600;
color: #212529;
}
.question-text {
padding: 12px 24px;
flex: 1;
overflow-y: auto;
}
.problem-container h1 {
margin: 0 0 8px 0;
font-size: 13px;
font-weight: 400;
color: #495057;
line-height: 1.5;
}
.problem-description {
margin-bottom: 12px;
font-size: 14px;
line-height: 1.5;
color: #495057;
}
.problem-description strong {
color: #212529;
font-weight: 600;
}
.problem-description p {
margin-bottom: 8px;
}
.problem-container {
font-size: 14px;
color: #495057;
}
/* Editor Section Wrapper */
.editor-section-wrapper {
flex: 1;
display: flex;
flex-direction: column;
background-color: #1e1e1e;
overflow: hidden;
}
.editor-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 16px;
background-color: #2d2d30;
border-bottom: 1px solid #1e1e1e;
}
.editor-controls {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 95%;
}
.language-selector {
background-color: transparent;
color: #858585;
border: none;
border-radius: 0;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
outline: none;
transition: all 0.2s;
position: relative;
}
.language-selector:hover {
color: #cccccc;
background-color: rgba(255, 255, 255, 0.05);
}
.reset-code-btn {
display: flex;
align-items: center;
gap: 8px;
background-color: transparent;
color: #858585;
border: none;
border-radius: 4px;
padding: 6px 12px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
margin-left: auto;
}
.reset-code-btn svg {
width: 18px;
height: 18px;
stroke-width: 2;
}
.reset-code-btn:hover {
color: #cccccc;
background-color: rgba(255, 255, 255, 0.05);
}
.editor-container {
flex: 1;
overflow: hidden;
}
/* Remove Monaco Editor active line border */
.editor-container .monaco-editor .view-overlays .current-line {
border: none !important;
}
.editor-container .monaco-editor .margin-view-overlays .current-line {
border: none !important;
}
.test-cases-section {
margin-top: 16px;
}
.test-cases-section h3 {
font-size: 13px;
font-weight: 600;
margin-bottom: 10px;
color: #212529;
}
.test-case-card {
background-color: #ffffff;
border: 1px solid #dee2e6;
border-radius: 3px;
margin-bottom: 10px;
overflow: hidden;
}
.test-case-label {
background-color: #f8f9fa;
padding: 5px 10px;
font-size: 11px;
font-weight: 600;
color: #495057;
}
.test-case-content {
padding: 10px;
}
.test-case-item {
display: flex;
flex-direction: column;
margin-bottom: 8px;
}
.test-case-item:last-child {
margin-bottom: 0;
}
.test-label {
font-size: 11px;
font-weight: 600;
color: #6c757d;
margin-bottom: 3px;
}
.test-value {
background-color: #f8f9fa;
border: 1px solid #dee2e6;
padding: 6px 8px;
border-radius: 3px;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 12px;
line-height: 1.4;
color: #212529;
}
/* Bottom Section: Console */
.bottom-section {
height: 250px;
background-color: #ffffff;
border-top: 1px solid #e0e0e0;
display: flex;
flex-direction: column;
position: relative;
}
.console-section {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.console-header {
display: flex;
align-items: center;
padding: 0;
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
}
.console-tabs {
display: flex;
gap: 0;
}
.console-tab {
padding: 10px 20px;
background-color: transparent;
color: #6c757d;
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
font-size: 13px;
font-weight: 500;
transition: all 0.2s;
}
.console-tab:hover {
color: #495057;
}
.console-tab-active {
color: #007bff;
border-bottom-color: #007bff;
}
.console-content {
flex: 1;
padding-top: 16px;
padding-left: 24px;
padding-right: 24px;
padding-bottom: 30px;
overflow-y: auto;
background-color: #f8f9fa;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 12px;
}
.console-placeholder {
color: #adb5bd;
font-style: italic;
}
.console-line {
margin-bottom: 6px;
line-height: 1.5;
color: #212529;
white-space: pre-wrap;
word-wrap: break-word;
}
.console-line.system {
color: #007bff;
}
.console-line.error {
color: #dc3545;
}
.console-line.output {
color: #212529;
}
.console-line.input {
color: #28a745;
font-weight: 500;
}
/* Console Input Line - makes it look like terminal output */
.console-line.console-input-line {
display: flex;
align-items: center;
margin-bottom: 0;
}
.console-cursor {
color: #6c757d;
margin-right: 4px;
}
.console-input-form {
display: flex;
align-items: center;
width: 100%;
margin: 0;
}
.console-input {
flex: 1;
background: transparent;
border: none;
outline: none;
color: #212529;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 12px;
padding: 0;
line-height: 1.5;
min-width: 200px;
}
.console-input::placeholder {
color: transparent;
}
/* Add blinking cursor effect */
.console-input:focus {
caret-color: #212529;
}
/* Test Cases Tab Styles */
.testcases-tab-content {
overflow-y: auto;
padding: 0;
}
.testcases-container {
padding: 12px;
}
.testcase-item {
background-color: #ffffff;
border: 1px solid #dee2e6;
border-radius: 4px;
margin-bottom: 12px;
overflow: hidden;
}
.testcase-item:last-child {
margin-bottom: 0;
}
.testcase-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
}
.testcase-title {
font-size: 12px;
font-weight: 600;
color: #212529;
}
.testcase-badge {
font-size: 10px;
font-weight: 600;
padding: 2px 8px;
background-color: #e7f3ff;
color: #0066cc;
border-radius: 3px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.testcase-body {
padding: 12px;
}
.testcase-field {
margin-bottom: 12px;
}
.testcase-field:last-child {
margin-bottom: 0;
}
.testcase-field-label {
font-size: 11px;
font-weight: 600;
color: #6c757d;
margin-bottom: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.testcase-field-value {
background-color: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 3px;
padding: 8px 10px;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 12px;
line-height: 1.5;
color: #212529;
margin: 0;
white-space: pre-wrap;
word-break: break-word;
overflow-x: auto;
}
/* Action Bar */
.action-bar {
position: absolute;
bottom: 60px;
right: 16px;
display: flex;
gap: 12px;
z-index: 1001;
}
.action-bar-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border-radius: 4px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
border: none;
}
.action-clear {
background-color: #6c757d;
color: white;
}
.action-clear:hover {
background-color: #5a6268;
}
.action-mark {
background-color: #6c757d;
color: white;
}
.action-mark:hover {
background-color: #5a6268;
}
.action-run {
background-color: #28a745;
color: white;
}
.action-run:hover:not(:disabled) {
background-color: #218838;
}
.action-run:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.action-save {
background-color: #007bff;
color: white;
}
.action-save:hover {
background-color: #0056b3;
}
.problem-examples h2 {
font-size: 16px;
font-weight: 600;
margin-top: 24px;
margin-bottom: 12px;
color: #111827;
}
.example-box {
background-color: #f9fafb;
border: 1px solid #e5e7eb;
padding: 16px;
border-radius: 8px;
margin-bottom: 12px;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 13px;
line-height: 1.6;
}
.loading-spinner {
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: #ffffff;
border-radius: 50%;
animation: spin 0.6s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Old terminal styles removed */
/* Login Page Styles */
.login-container {
min-height: 100vh;
display: flex;
position: relative;
background-color: var(--background);
color: var(--foreground);
}
.login-left {
width: 50%;
position: relative;
}
.login-bg-image {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.95);
}
.dark .login-bg-image {
filter: brightness(0.75);
}
.login-right {
width: 50%;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
background-color: var(--background);
}
.login-form-container {
width: 100%;
max-width: 28rem;
}
.login-logos {
display: flex;
justify-content: center;
gap: 1rem;
margin-bottom: 2rem;
}
.login-logo {
height: 3rem;
width: auto;
}
.login-title {
font-size: 1.25rem;
font-weight: 600;
text-align: center;
color: var(--foreground);
font-family: monospace;
margin-bottom: 0.5rem;
}
.login-subtitle {
text-align: center;
font-size: 0.875rem;
color: var(--muted-foreground);
margin-bottom: 2rem;
}
.login-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.login-field {
display: flex;
flex-direction: column;
}
.login-label {
display: block;
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 0.5rem;
color: var(--foreground);
}
.login-input {
width: 100%;
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
border: 1px solid var(--border);
background-color: var(--input);
color: var(--foreground);
}
.login-input:focus {
outline: none;
box-shadow: 0 0 0 2px #3b82f6;
border-color: transparent;
}
.login-error {
border: 1px solid rgba(239, 68, 68, 0.2);
background-color: rgba(239, 68, 68, 0.1);
color: #f87171;
padding: 0.75rem;
border-radius: 0.375rem;
}
.login-button {
width: 100%;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
transition: all 0.2s;
cursor: pointer;
border: none;
background-color: var(--primary);
color: var(--primary-foreground);
}
.login-button:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.login-footer {
margin-top: 1.5rem;
text-align: center;
}
.login-footer-text {
font-size: 0.875rem;
color: var(--muted-foreground);
}
.login-footer-link {
font-weight: 500;
color: var(--primary);
cursor: pointer;
text-decoration: none;
}
.login-footer-link:hover {
text-decoration: underline;
}
.login-demo-note {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border);
}
.login-demo-text {
font-size: 0.75rem;
text-align: center;
color: var(--muted-foreground);
}
.login-trust-logo {
margin-top: 2rem;
display: flex;
justify-content: flex-end;
}
.trust-logo-img {
height: 2rem;
width: auto;
}
.theme-toggle {
position: absolute;
top: 1rem;
right: 1rem;
z-index: 10;
}
/* Footer Styles */
.fixed {
position: fixed;
}
.bottom-0 {
bottom: 0;
}
.left-0 {
left: 0;
}
.right-0 {
right: 0;
}
.border-t {
border-top-width: 1px;
border-top-style: solid;
}
.border-slate-200\/40 {
border-color: rgba(226, 232, 240, 0.4);
}
.dark\:border-gray-800\/20 {
border-color: rgba(31, 41, 55, 0.2);
}
.bg-white {
background-color: #ffffff;
}
.dark\:bg-\[\#070c1f\] {
background-color: #000000;
}
.footer-bar {
background-color: #000000;
z-index: 1000;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
.flex {
display: flex;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.h-7 {
height: 1.75rem;
}
.text-xs {
font-size: 0.75rem;
line-height: 1rem;
}
.text-slate-500 {
color: #64748b;
}
.dark\:text-gray-500 {
color: #6b7280;
}
.text-slate-400 {
color: #94a3b8;
}
.dark\:text-gray-400 {
color: #9ca3af;
}
.text-red-400 {
color: #f87171;
}
.dark\:text-red-500 {
color: #ef4444;
}
.mx-0\.5 {
margin-left: 0.125rem;
margin-right: 0.125rem;
}
/* Make sure the footer appears on top of other elements */
footer {
z-index: 1000;
}
/* Test List Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-slideUp { animation: slideUp 0.3s ease-out; }
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}