You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
870 lines
18 KiB
870 lines
18 KiB
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap'); |
|
|
|
/* === CSS VARIABLES === */ |
|
:root { |
|
/* Colors */ |
|
--color-bg-body: #161b22; |
|
--color-bg-dark: #121212; |
|
--color-bg-sidebar: #111; |
|
--color-bg-component: #1e1e1e; |
|
--color-bg-hover: #2a2a2a; |
|
--color-bg-accent: #005f87; |
|
--color-bg-tab-active: #1a3d2a; |
|
--color-border: #444; |
|
--color-border-accent: #00ff88; |
|
--color-border-panel: #30363d; |
|
--color-text-primary: #ccc; |
|
--color-text-muted: #888; |
|
--color-text-accent: #00ff88; |
|
--color-text-white: #fff; |
|
--color-text-dark: #333; |
|
--color-button: #238636; |
|
--color-button-disabled: #555; |
|
--color-connection: #333; |
|
--color-connection-selected: #007bff; |
|
--color-tooltip-bg: #333; |
|
--color-tooltip-text: #fff; |
|
|
|
/* Sizes */ |
|
--radius-small: 4px; |
|
--radius-medium: 6px; |
|
--radius-large: 8px; |
|
--font-family-mono: 'JetBrains Mono', monospace; |
|
--font-family-code: 'Fira Code', monospace; |
|
--component-padding: 8px; |
|
--component-gap: 12px; |
|
} |
|
|
|
/* === RESET & BASE STYLES === */ |
|
* { |
|
box-sizing: border-box; |
|
} |
|
|
|
body { |
|
margin: 0; |
|
font-family: var(--font-family-mono); |
|
color: var(--color-text-primary); |
|
display: flex; |
|
flex-direction: row; |
|
min-height: 100vh; |
|
background: radial-gradient(circle at 30% 50%, rgba(0, 255, 136, 0.1), transparent 50%), |
|
radial-gradient(circle at 70% 80%, rgba(255, 107, 53, 0.1), transparent 50%), |
|
var(--color-bg-body) |
|
} |
|
|
|
/* === LAYOUT === */ |
|
#page-container { |
|
display: flex; |
|
flex-direction: column; |
|
width: 100%; |
|
} |
|
|
|
#sd-header { |
|
width: 100%; |
|
padding: 12px 24px; |
|
font-weight: bold; |
|
color: var(--color-text-accent); |
|
border-bottom: 1px solid var(--color-text-dark); |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
|
|
.header-text { |
|
font-size: 24px; |
|
margin: 0; |
|
text-shadow: 0 0 10px rgba(0, 255, 136, 0.8); |
|
} |
|
} |
|
|
|
#main-content { |
|
display: flex; |
|
flex-direction: row; |
|
height: 100%; |
|
} |
|
|
|
/* === SIDEBAR === */ |
|
#sidebar { |
|
width: 100%; |
|
background-color: var(--color-bg-sidebar); |
|
display: flex; |
|
flex-wrap: wrap; |
|
flex-direction: row; |
|
gap: var(--component-gap); |
|
|
|
.sidebar-title { |
|
color: #8b949e; |
|
font-size: 14px; |
|
text-transform: uppercase; |
|
letter-spacing: 1px; |
|
margin-bottom: 15px; |
|
padding-bottom: 8px; |
|
padding-left: 8px; |
|
border-bottom: 1px solid #303638; |
|
} |
|
} |
|
|
|
/* === COMPONENT ICONS === */ |
|
.component-icon, |
|
#arrow-tool { |
|
position: relative; |
|
padding: var(--component-padding) 12px; |
|
background-color: var(--color-bg-component); |
|
border: 1px solid var(--color-border); |
|
border-radius: var(--radius-medium); |
|
text-align: center; |
|
cursor: grab; |
|
user-select: none; |
|
font-size: 16px; |
|
color: var(--color-text-primary); |
|
transition: background-color 0.1s ease; |
|
|
|
&:hover { |
|
background-color: var(--color-bg-hover); |
|
border-color: var(--color-border-accent); |
|
} |
|
|
|
&:active { |
|
cursor: grabbing; |
|
} |
|
|
|
&.dragging .tooltip { |
|
display: none; |
|
} |
|
|
|
&:hover .tooltip { |
|
visibility: visible; |
|
opacity: 1; |
|
z-index: 1000; |
|
} |
|
} |
|
|
|
#arrow-tool { |
|
&.active { |
|
background-color: var(--color-bg-accent); |
|
color: var(--color-text-white); |
|
border-color: var(--color-button); |
|
} |
|
} |
|
|
|
/* === TOOLTIP === */ |
|
.tooltip { |
|
visibility: hidden; |
|
opacity: 0; |
|
position: absolute; |
|
top: 100%; |
|
left: 0; |
|
z-index: 10; |
|
background: var(--color-tooltip-bg); |
|
color: var(--color-tooltip-text); |
|
padding: 6px 8px; |
|
border-radius: var(--radius-small); |
|
white-space: nowrap; |
|
font-size: 14px; |
|
line-height: 1.4; |
|
margin-top: 4px; |
|
transition: opacity 0.2s; |
|
} |
|
|
|
/* === CANVAS === */ |
|
#canvas-wrapper { |
|
flex: 1; |
|
display: flex; |
|
flex-direction: column; |
|
border-radius: var(--radius-large); |
|
border: 2px solid var(--color-border-panel); |
|
overflow: hidden; |
|
background: var(--color-bg-dark); |
|
margin: 12px 12px 12px 0; |
|
padding: 16px; |
|
} |
|
|
|
#canvas-container { |
|
flex: 1; |
|
position: relative; |
|
background: var(--color-bg-dark); |
|
height: 100%; |
|
margin-top: 16px; |
|
} |
|
|
|
#canvas { |
|
width: 100%; |
|
height: 90%; |
|
background: var(--color-bg-dark); |
|
border: 2px dashed var(--color-border-panel); |
|
border-radius: var(--radius-large); |
|
} |
|
|
|
.dropped { |
|
cursor: move; |
|
|
|
&.selected rect { |
|
stroke: #00bcd4; |
|
stroke-width: 2; |
|
} |
|
} |
|
|
|
/* === TOOLBAR === */ |
|
#canvas-toolbar { |
|
position: absolute; |
|
top: 12px; |
|
left: 12px; |
|
z-index: 20; |
|
display: flex; |
|
gap: 8px; |
|
background: var(--color-bg-component); |
|
border: 1px solid var(--color-border); |
|
border-radius: var(--radius-small); |
|
padding: 6px; |
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); |
|
|
|
.toolbar-btn { |
|
background: none; |
|
border: 1px solid var(--color-border); |
|
color: var(--color-text-primary); |
|
padding: 6px 10px; |
|
border-radius: var(--radius-small); |
|
font-size: 14px; |
|
cursor: pointer; |
|
font-family: var(--font-family-mono); |
|
|
|
&:hover { |
|
background-color: var(--color-bg-hover); |
|
border-color: var(--color-border-accent); |
|
} |
|
|
|
&.active { |
|
background-color: var(--color-bg-accent); |
|
color: var(--color-text-white); |
|
border-color: var(--color-button); |
|
} |
|
} |
|
} |
|
|
|
/* === PANELS === */ |
|
#info-panel { |
|
position: absolute; |
|
top: 12px; |
|
right: 12px; |
|
background: var(--color-bg-dark); |
|
color: var(--color-text-primary); |
|
padding: 1rem; |
|
border-radius: var(--radius-large); |
|
font-family: monospace; |
|
font-size: 14px; |
|
min-width: 220px; |
|
z-index: 10; |
|
border: 1px solid var(--color-text-dark); |
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); |
|
|
|
.panel-title { |
|
font-weight: bold; |
|
color: var(--color-text-white); |
|
font-size: 15px; |
|
margin-bottom: 0.5rem; |
|
} |
|
|
|
.panel-metric { |
|
margin-bottom: 0.4rem; |
|
|
|
.label { |
|
display: inline-block; |
|
width: 140px; |
|
color: var(--color-text-muted); |
|
} |
|
} |
|
} |
|
|
|
#node-props-panel { |
|
position: absolute; |
|
width: 220px; |
|
background-color: var(--color-bg-sidebar); |
|
border: 1px solid var(--color-border); |
|
border-radius: var(--radius-small); |
|
padding: 12px; |
|
color: var(--color-text-white); |
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.6); |
|
display: none; |
|
z-index: 10; |
|
|
|
h3 { |
|
margin-top: 0; |
|
font-size: 15px; |
|
color: var(--color-text-primary); |
|
} |
|
|
|
.form-group { |
|
margin-bottom: 10px; |
|
} |
|
|
|
label { |
|
display: block; |
|
font-weight: bold; |
|
margin-bottom: 4px; |
|
} |
|
|
|
select { |
|
width: 100%; |
|
padding: 4px; |
|
font-size: 14px; |
|
} |
|
|
|
button:disabled { |
|
background-color: var(--color-button-disabled); |
|
cursor: not-allowed; |
|
} |
|
} |
|
|
|
.prop-group { |
|
display: none; |
|
margin-bottom: 12px; |
|
|
|
label, |
|
input { |
|
display: block; |
|
width: 100%; |
|
margin-top: 6px; |
|
font-size: 13px; |
|
} |
|
} |
|
|
|
#score-panel { |
|
margin-top: 16px; |
|
} |
|
|
|
/* === INPUTS & BUTTONS === */ |
|
input[type="text"], |
|
input[type="number"] { |
|
padding: 6px; |
|
background-color: #222; |
|
border: 1px solid var(--color-border); |
|
color: var(--color-text-white); |
|
border-radius: var(--radius-small); |
|
font-family: var(--font-family-code); |
|
} |
|
|
|
#node-props-save, |
|
#run-button { |
|
margin-top: 8px; |
|
padding: 10px; |
|
background-color: var(--color-button); |
|
color: var(--color-text-white); |
|
border: none; |
|
border-radius: var(--radius-small); |
|
cursor: pointer; |
|
font-size: 14px; |
|
|
|
&:disabled { |
|
background-color: var(--color-button-disabled); |
|
cursor: not-allowed; |
|
} |
|
} |
|
|
|
#github-login-btn { |
|
display: inline-flex; |
|
align-items: center; |
|
gap: 8px; |
|
padding: 8px 14px; |
|
background-color: #fff; |
|
color: #000000; |
|
text-decoration: none; |
|
border-radius: var(--radius-medium); |
|
font-weight: 500; |
|
font-family: var(--font-family-mono); |
|
font-size: 12px; |
|
border: 1px solid #2ea043; |
|
transition: background-color 0.2s ease; |
|
float: right; |
|
|
|
&:hover { |
|
background-color: #ccc; |
|
} |
|
|
|
img { |
|
width: 18px; |
|
height: 18px; |
|
} |
|
} |
|
|
|
/* === TABS === */ |
|
.tabs { |
|
display: flex; |
|
flex-direction: column; |
|
height: 100%; |
|
overflow: hidden; |
|
|
|
.tab-labels { |
|
display: flex; |
|
cursor: pointer; |
|
|
|
label { |
|
padding: 10px 20px; |
|
background: var(--color-bg-body); |
|
margin-right: 4px; |
|
margin-bottom: 20px; |
|
border-radius: var(--radius-small); |
|
} |
|
} |
|
|
|
.tab-content { |
|
border-top: 1px solid var(--color-border-panel); |
|
padding: 20px 0 0; |
|
display: none; |
|
height: 100%; |
|
} |
|
} |
|
|
|
input[name="tab"] { |
|
display: none; |
|
} |
|
|
|
#tab1:checked~.tabs { |
|
.tab-labels label[for="tab1"] { |
|
background: var(--color-bg-tab-active); |
|
font-weight: bold; |
|
color: var(--color-text-accent); |
|
} |
|
|
|
#content1 { |
|
display: flex; |
|
flex-direction: column; |
|
height: 100%; |
|
overflow: hidden; |
|
} |
|
} |
|
|
|
#tab2:checked~.tabs { |
|
.tab-labels label[for="tab2"] { |
|
background: var(--color-bg-tab-active); |
|
font-weight: bold; |
|
color: var(--color-text-accent); |
|
} |
|
|
|
#content2 { |
|
display: flex; |
|
flex-direction: column; |
|
height: 100%; |
|
overflow: hidden; |
|
} |
|
} |
|
|
|
#tab3:checked~.tabs { |
|
.tab-labels label[for="tab3"] { |
|
background: var(--color-bg-tab-active); |
|
font-weight: bold; |
|
color: var(--color-text-accent); |
|
} |
|
|
|
#content3 { |
|
display: flex; |
|
flex-direction: column; |
|
height: 100%; |
|
overflow: hidden; |
|
} |
|
} |
|
|
|
/* === CHALLENGE PANEL === */ |
|
#challenge-container { |
|
width: 15%; |
|
background: var(--color-bg-dark); |
|
margin: 12px 12px; |
|
border: 2px solid var(--color-border-panel); |
|
border-radius: var(--radius-large); |
|
padding: 0 12px; |
|
|
|
.challenge-list { |
|
list-style: none; |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
.challenge-item { |
|
padding: 10px; |
|
margin: 5px 0; |
|
background: #21262d; |
|
border-radius: 6px; |
|
cursor: pointer; |
|
transition: all 0.2s ease; |
|
border-left: 3px solid transparent; |
|
list-style: none; |
|
|
|
&:hover { |
|
background: #30363d; |
|
} |
|
|
|
&.active { |
|
background: #1a3d2a; |
|
border-left-color: #00ff88; |
|
} |
|
} |
|
|
|
.challenge-name { |
|
font-weight: 500; |
|
margin-bottom: 5px; |
|
} |
|
|
|
.challenge-difficulty { |
|
font-size: 0.8rem; |
|
color: #0b949e; |
|
|
|
&.easy { |
|
color: #3fb950; |
|
} |
|
|
|
&.medium { |
|
color: #d29922; |
|
} |
|
|
|
&.hard { |
|
color: #f85149; |
|
} |
|
} |
|
} |
|
|
|
/* === REQUIREMENTS === */ |
|
.requirements-section { |
|
background: #161b22; |
|
border: 1px solid #30363d; |
|
border-radius: 8px; |
|
padding: 20px; |
|
margin-bottom: 20px; |
|
|
|
.requirements-list { |
|
margin: 0; |
|
padding: 0; |
|
list-style: none; |
|
} |
|
|
|
.requirement-item { |
|
position: relative; |
|
padding: 8px 0 8px 25px; |
|
margin: 0; |
|
border-bottom: 1px solid #30363d; |
|
|
|
&:before { |
|
content: "✓"; |
|
color: #00ff88; |
|
position: absolute; |
|
left: 0; |
|
} |
|
} |
|
} |
|
|
|
/* === MODAL === */ |
|
.modal { |
|
position: absolute; |
|
top: 30%; |
|
left: 50%; |
|
transform: translate(-50%, -30%); |
|
background: #121212; |
|
padding: 20px; |
|
border-radius: 8px; |
|
border: 1px solid #444; |
|
z-index: 999; |
|
color: #ccc; |
|
|
|
.modal-content label { |
|
display: block; |
|
margin: 10px 0; |
|
} |
|
|
|
.modal-actions { |
|
margin-top: 10px; |
|
text-align: right; |
|
} |
|
|
|
input, |
|
select { |
|
width: 100%; |
|
padding: 6px; |
|
margin-top: 4px; |
|
background: #222; |
|
border: 1px solid #444; |
|
color: #fff; |
|
border-radius: 4px; |
|
} |
|
} |
|
|
|
/* === MISC === */ |
|
.userbox { |
|
display: flex; |
|
align-items: center; |
|
gap: 12px; |
|
|
|
.avatar { |
|
width: 24px; |
|
height: 24px; |
|
border-radius: 12px; |
|
} |
|
} |
|
|
|
/* === CHATBOT STYLES ===*/ |
|
#start-chat { |
|
position: fixed; |
|
bottom: 25px; |
|
right: 25px; |
|
padding: 0.75rem; |
|
background: #22c55e; |
|
border: none; |
|
border-radius: 12px; |
|
color: white; |
|
cursor: pointer; |
|
transition: all 0.3s ease; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
min-width: 48px; |
|
box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); |
|
animation: breathe 1s ease-in-out infinite; |
|
transform-origin: center bottom; |
|
} |
|
|
|
.chat { |
|
display: none; |
|
|
|
section { |
|
--_scrollbar_width: 8px; |
|
display: flex; |
|
flex-direction: column; |
|
gap: 1rem; |
|
padding: 1rem; |
|
overflow-y: auto; |
|
scrollbar-width: var(--_scrollbar_width); |
|
scrollbar-color: rgb(33, 38, 45) transparent; |
|
|
|
&::-webkit-scrollbar { |
|
width: var(--_scrollbar_width); |
|
} |
|
|
|
&::-webkit-scrollbar-track { |
|
background: transparent; |
|
} |
|
|
|
&::-webkit-scrollbar-thumb { |
|
background: rgba(34, 197, 94, 0.3); |
|
border-radius: 2px; |
|
} |
|
|
|
p { |
|
--_border_width: 2px; |
|
--_border_radius: 8px; |
|
max-width: 85%; |
|
padding: 0.75rem 1rem; |
|
background: rgba(14, 19, 13, 0.4); |
|
border-radius: var(--_border_radius); |
|
font-size: 0.9rem; |
|
line-height: 1.4; |
|
backdrop-filter: blur(10px); |
|
border: 1px solid rgba(34, 197, 94, 0.1); |
|
animation: messageSlide 0.4s ease-out; |
|
} |
|
|
|
.me { |
|
margin-left: auto; |
|
border-right: var(--_border_width) solid #22c55e; |
|
border-radius: var(--_border_radius) 4px 4px var(--_border_radius); |
|
color: #e5f5e5; |
|
} |
|
|
|
.other { |
|
border-left: var(--_border_width) solid #38bdf8; |
|
border-radius: 4px var(--_border_radius) var(--_border_radius) 4px; |
|
color: #e0f2fe; |
|
} |
|
} |
|
|
|
footer { |
|
display: flex; |
|
align-items: center; |
|
gap: 0.75rem; |
|
padding: 0.5rem 1rem; |
|
background: #21262d; |
|
border-top: 1px solid rgba(34, 197, 94, 0.1); |
|
border-radius: 0 0 0.5rem 0.5rem; |
|
|
|
textarea { |
|
--_padding: 0.75rem; |
|
--_lines: 3; |
|
border: 0; |
|
flex: 1; |
|
resize: none; |
|
padding: var(--_padding); |
|
height: calc((var(--_lines) * 1lh) + (var(--_padding) * 2)); |
|
background: #161b22; |
|
border-radius: 12px; |
|
color: #fff; |
|
font-size: 0.9rem; |
|
outline: none; |
|
transition: all 0.3s ease; |
|
backdrop-filter: blur(10px); |
|
|
|
&::placeholder { |
|
color: rgba(255, 255, 255, 0.5); |
|
} |
|
|
|
&:focus { |
|
box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1); |
|
background: rgba(14, 19, 13, 0.9); |
|
} |
|
} |
|
|
|
button { |
|
padding: 0.75rem; |
|
background: transparent; |
|
border: none; |
|
border-radius: 12px; |
|
color: #22c55e; |
|
cursor: pointer; |
|
transition: all 0.3s ease; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
min-width: 48px; |
|
|
|
&:hover { |
|
color: #fff; |
|
transform: translateY(-2px); |
|
} |
|
|
|
&:active { |
|
transform: translateY(0); |
|
} |
|
|
|
svg { |
|
--_size: 1.25rem; |
|
width: var(--_size); |
|
height: var(--_size); |
|
} |
|
} |
|
} |
|
} |
|
|
|
#chat-header { |
|
padding: 16px 8px; |
|
box-sizing: border-box; |
|
background: #21262d; |
|
|
|
.chat-title { |
|
font-family: Arial, Helvetica, sans-serif; |
|
font-size: 18px; |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
.powered-by { |
|
margin: 0; |
|
font-size: 12px; |
|
} |
|
} |
|
|
|
.chat-checkbox { |
|
display: none; |
|
|
|
&:checked+.chat { |
|
display: grid; |
|
position: fixed; |
|
bottom: 100px; |
|
right: 0; |
|
grid-template-rows: 1fr auto; |
|
max-width: 400px; |
|
height: 60vh; |
|
max-height: 70vh; |
|
background: #161b22; |
|
border-radius: 0.5rem; |
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 197, 94, 0.1); |
|
backdrop-filter: blur(20px); |
|
} |
|
} |
|
|
|
.loading-indicator { |
|
max-width: 85%; |
|
padding: 0.75rem 1rem; |
|
background: rgba(56, 189, 248, 0.05); |
|
border: 1px solid rgba(56, 189, 248, 0.3); |
|
border-left: 4px solid #38bdf8; |
|
border-radius: 4px 16px 16px 4px; |
|
display: flex; |
|
align-items: center; |
|
gap: 0.5rem; |
|
animation: messageSlide 0.4s ease-out; |
|
|
|
span { |
|
color: #38bdf8; |
|
font-size: 0.8rem; |
|
opacity: 0.8; |
|
} |
|
} |
|
|
|
.loading-dots { |
|
display: flex; |
|
gap: 0.2rem; |
|
|
|
.loading-dot { |
|
width: 4px; |
|
height: 4px; |
|
background: #38bdf8; |
|
border-radius: 50%; |
|
animation: loadingDot 1.4s infinite; |
|
|
|
&:nth-child(2) { |
|
animation-delay: 0.2s; |
|
} |
|
|
|
&:nth-child(3) { |
|
animation-delay: 0.4s; |
|
} |
|
} |
|
} |
|
|
|
/* === KEYFRAMES === */ |
|
@keyframes messageSlide { |
|
from { |
|
opacity: 0; |
|
transform: translateY(15px); |
|
} |
|
|
|
to { |
|
opacity: 1; |
|
transform: translateY(0); |
|
} |
|
} |
|
|
|
@keyframes loadingDot { |
|
|
|
0%, |
|
60%, |
|
100% { |
|
transform: scale(1); |
|
opacity: 0.4; |
|
} |
|
|
|
30% { |
|
transform: scale(1.3); |
|
opacity: 1; |
|
} |
|
} |
|
|
|
@keyframes pulse { |
|
|
|
0%, |
|
100% { |
|
opacity: 1; |
|
transform: scale(1); |
|
} |
|
|
|
50% { |
|
opacity: 0.6; |
|
transform: scale(1.1); |
|
} |
|
} |
|
|
|
@keyframes breathe { |
|
|
|
0%, |
|
100% { |
|
transform: scale(1) translateY(0); |
|
} |
|
|
|
50% { |
|
transform: scale(1.02) translateY(-1px); |
|
} |
|
}
|
|
|