open-env / static /style.css
Nitish
feat: Code Security Review OpenEnv - Final Submission
f44f429
:root {
--secondary: #52525b;
}
/* Default to Dark Mode */
[data-theme='dark'] {
--bg-primary: #000000;
--bg-card: #151515;
--bg-input: #1f1f1f;
--border-card: #2e2e2e;
--border-input: #3e3e3e;
--accent-primary: #76b900; /* NVIDIA Green */
--accent-hover: #88d400;
--accent-glow: rgba(118, 185, 0, 0.2);
--text-main: #ffffff;
--text-muted: #a1a1aa;
--code-bg: #09090b;
--header-bg: #1a1a1a;
}
/* Light Mode */
[data-theme='light'] {
--bg-primary: #f5f5f7;
--bg-card: #ffffff;
--bg-input: #ffffff;
--border-card: #d2d2d7;
--border-input: #e5e7eb;
--accent-primary: #0071e3; /* Mac Blue */
--accent-hover: #0077ed;
--accent-glow: rgba(0, 113, 227, 0.1);
--text-main: #1d1d1f;
--text-muted: #6e6e73;
--code-bg: #f5f5f7;
--header-bg: #ebebeb;
}
:root {
--success: #76b900;
--error: #ef4444;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: var(--text-main);
background-color: var(--bg-primary);
min-height: 100vh;
padding: 2rem;
position: relative;
overflow-x: hidden;
}
/* Background Subtle Glow */
#app-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 50% 0%, rgba(118, 185, 0, 0.1), transparent 50%);
z-index: -2;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
header {
margin-bottom: 2.5rem;
text-align: center;
padding: 2rem 0;
border-bottom: 1px solid var(--border-card);
}
h1 {
font-size: 2.25rem;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--text-main);
margin-bottom: 0.5rem;
text-align: center;
}
/* Mac Window Styling */
.mac-window {
background: var(--bg-card);
border: 1px solid var(--border-card);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
margin-top: 1rem;
}
.mac-title-bar {
background: var(--header-bg);
height: 44px;
display: flex;
align-items: center;
padding: 0 16px;
border-bottom: 1px solid var(--border-card);
position: relative;
}
.mac-dots {
display: flex;
gap: 8px;
position: absolute;
left: 16px;
}
.dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.mac-tabs {
display: flex;
margin: 0 auto;
background: #000;
border-radius: 6px;
padding: 2px;
}
.mac-tab {
background: transparent;
border: none;
color: var(--text-muted);
padding: 6px 16px;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s;
width: auto;
margin-bottom: 0;
text-transform: none;
letter-spacing: normal;
}
.mac-tab:hover {
color: var(--text-main);
}
.mac-tab.active {
background: var(--bg-input);
color: var(--accent-primary);
}
.window-content {
padding: 2rem;
min-height: 500px;
}
.tab-pane {
display: none;
}
.tab-pane.active {
display: block;
}
h1 {
font-size: 2.25rem;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--text-main);
margin-bottom: 0.5rem;
}
/* Add a subtle green underline to h1 */
h1::after {
content: '';
display: block;
width: 60px;
height: 4px;
background: var(--accent-primary);
margin: 1rem auto 0;
border-radius: 2px;
}
p {
color: var(--text-muted);
font-size: 1.1rem;
}
.panel {
background: #1a1a1b;
border: 1px solid var(--border-card);
border-radius: 8px;
padding: 1.75rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}
.dashboard {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: start;
}
@media (max-width: 900px) {
.dashboard {
grid-template-columns: 1fr;
}
}
/* Common Panel Header */
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border-card);
padding-bottom: 1rem;
margin-bottom: 1.25rem;
}
h2 {
font-size: 1.25rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-main);
}
.icon {
color: var(--accent-primary);
}
.badge-row {
display: flex;
gap: 0.5rem;
}
.badge {
background: var(--bg-input);
border: 1px solid var(--border-input);
padding: 0.25rem 0.75rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--accent-primary);
}
/* Observation Panel */
.task-info {
margin-bottom: 1.25rem;
font-size: 0.95rem;
line-height: 1.6;
color: #e4e4e7;
}
.feedback-info {
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.2);
border-left: 3px solid var(--error);
border-radius: 4px;
padding: 1rem;
margin-bottom: 1rem;
font-size: 0.9rem;
}
.hidden {
display: none !important;
}
.code-container {
background: var(--code-bg);
border-radius: 6px;
overflow: hidden;
border: 1px solid var(--border-card);
}
.code-header {
background: var(--header-bg);
padding: 0.5rem 1rem;
font-size: 0.75rem;
color: var(--text-muted);
border-bottom: 1px solid var(--border-card);
display: flex;
justify-content: flex-end;
}
pre {
margin: 0;
padding: 1rem;
font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
font-size: 0.85rem;
overflow-x: auto;
}
/* Action Panel Form */
.form-group {
margin-bottom: 1.25rem;
}
label {
display: block;
font-size: 0.85rem;
font-weight: 600;
color: #d4d4d8;
margin-bottom: 0.4rem;
}
input, select, textarea {
width: 100%;
background: var(--bg-input);
border: 1px solid var(--border-input);
border-radius: 4px;
color: var(--text-main);
padding: 0.65rem 0.875rem;
font-family: inherit;
font-size: 0.95rem;
transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--accent-primary);
box-shadow: 0 0 0 1px var(--accent-primary);
}
select option {
background: var(--bg-primary);
color: var(--text-main);
}
button {
width: 100%;
padding: 0.75rem;
border: none;
border-radius: 4px;
font-family: inherit;
font-weight: 600;
font-size: 0.95rem;
cursor: pointer;
transition: all 0.2s;
margin-bottom: 1rem;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.primary-btn {
background: var(--accent-primary);
color: #000000;
}
.primary-btn:hover {
background: var(--accent-hover);
}
.secondary-btn {
background: transparent;
border: 1px solid var(--border-input);
color: var(--text-main);
}
.secondary-btn:hover {
background: var(--bg-input);
border-color: #52525b;
}
/* Toast */
.toast {
position: fixed;
bottom: 2rem;
right: 2rem;
background: var(--bg-card);
border: 1px solid var(--accent-primary);
border-left: 4px solid var(--accent-primary);
padding: 1rem 1.25rem;
border-radius: 4px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px var(--accent-glow);
transform: translateY(100px);
opacity: 0;
transition: transform 0.3s, opacity 0.3s;
z-index: 100;
min-width: 320px;
}
/* Theme Toggle Button */
.theme-toggle {
position: absolute;
right: 16px;
background: transparent;
border: none;
cursor: pointer;
color: var(--text-muted);
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
width: auto;
margin: 0;
transition: color 0.2s;
}
.theme-toggle:hover {
color: var(--text-main);
}
.theme-toggle svg {
width: 18px;
height: 18px;
}
@keyframes slideUp {
to {
transform: translateY(0);
opacity: 1;
}
}
.toast-content {
display: flex;
align-items: center;
gap: 1rem;
}
.toast-icon {
font-size: 1.25rem;
}
#toast-title {
font-size: 0.85rem;
margin-bottom: 0.2rem;
color: var(--text-muted);
}
#toast-message {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-main);
}
#toast-close {
background: transparent;
border: none;
color: var(--text-muted);
font-size: 1.5rem;
cursor: pointer;
padding: 0;
width: auto;
margin: 0;
}
#toast-close:hover {
color: var(--text-main);
}
.environment-done {
border-color: var(--success);
box-shadow: 0 0 15px var(--accent-glow);
}