Fix: apply .gitignore and remove untracked files

This commit is contained in:
antonn committed 2026-05-08 19:09:25 +00:00
commit b0bf3b7167
94 files changed
+123744

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
.adpanel {
display: inline-block;
width: 1em;
height: 1em;
background-color: currentColor;
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
}
.sidebar {
mask-image: url("/img/sidebar.png");
}
.sidebar-modern {
mask-image: url("/img/sidebar-modern.png");
}
.sidebar-it {
mask-image: url("/img/sidebar-it.png");
}
+13263
View File
File diff suppressed because it is too large. Load diff
+855
View File
@@ -0,0 +1,855 @@
.toolbar-assistant {
position: relative;
}
.dashboard-assistant-trigger {
position: relative;
}
.dashboard-assistant-trigger::after {
content: "";
position: absolute;
inset: -1px;
border-radius: inherit;
background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.18));
opacity: 0;
transition: opacity 0.2s ease;
pointer-events: none;
}
.dashboard-assistant-trigger:hover::after,
.dashboard-assistant-trigger[aria-expanded="true"]::after {
opacity: 1;
}
.dashboard-assistant-menu {
position: fixed;
top: 105px;
right: clamp(12px, 5vw, 100px);
left: auto;
width: min(580px, calc(100vw - 24px));
max-height: 85vh;
display: none;
flex-direction: column;
z-index: 1500;
border-radius: 24px;
background: linear-gradient(165deg, rgba(30,32,38,0.95) 0%, rgba(22,24,28,0.98) 100%);
backdrop-filter: blur(40px) saturate(180%);
-webkit-backdrop-filter: blur(40px) saturate(180%);
border: none;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 25px 80px -12px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.dashboard-assistant-menu.dashboard-assistant-menu--setup {
width: min(430px, calc(100vw - 24px));
max-height: min(520px, calc(100vh - 96px));
}
.dashboard-assistant-menu.is-open {
display: flex;
animation: modalReveal 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes modalReveal {
0% {
opacity: 0;
transform: scale(0.96) translateY(10px);
filter: blur(8px);
}
100% {
opacity: 1;
transform: scale(1) translateY(0);
filter: blur(0);
}
}
.dashboard-assistant-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 24px 28px 20px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.dashboard-assistant-icon {
width: 64px;
height: 64px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
background: transparent;
}
.dashboard-assistant-icon i {
display: block;
font-size: 24px;
color: #fff;
}
.dashboard-assistant-title {
margin: 0;
font-size: 20px;
font-weight: 700;
color: rgba(255, 255, 255, 0.95);
letter-spacing: -0.02em;
}
.dashboard-assistant-subtitle {
margin: 6px 0 0;
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
}
.dashboard-assistant-head-actions {
display: flex;
align-items: center;
gap: 8px;
}
.dashboard-assistant-head-btn {
width: 36px;
height: 36px;
border-radius: 10px;
border: none;
background: rgba(255, 255, 255, 0.06);
color: rgba(255, 255, 255, 0.5);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 14px;
transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
flex-shrink: 0;
}
.dashboard-assistant-head-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.8);
}
.dashboard-assistant-head-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.dashboard-assistant-status {
margin: 0 28px 14px;
padding: 11px 16px;
display: flex;
align-items: center;
gap: 10px;
border-radius: 12px;
background: rgba(20, 28, 49, 0.5);
color: rgba(255, 255, 255, 0.85);
font-size: 13px;
border: 1px solid rgba(255, 255, 255, 0.04);
}
.dashboard-assistant-status::before {
content: "";
width: 10px;
height: 10px;
border-radius: 999px;
background: #22c55e;
box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
flex: 0 0 auto;
}
.dashboard-assistant-status[data-state="working"]::before,
.dashboard-assistant-status[data-state="transcribing"]::before {
background: #38bdf8;
box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.18);
}
.dashboard-assistant-status[data-state="recording"]::before {
background: #fb7185;
box-shadow: 0 0 0 6px rgba(251, 113, 133, 0.18);
}
.dashboard-assistant-status[data-state="warning"]::before,
.dashboard-assistant-status[data-state="error"]::before {
background: #f59e0b;
box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18);
}
.dashboard-assistant-config,
.dashboard-assistant-notice {
margin: 0 28px 14px;
border-radius: 12px;
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.04);
}
.dashboard-assistant-config[hidden],
.dashboard-assistant-notice[hidden] {
display: none;
}
.dashboard-assistant-config {
padding: 14px;
}
.dashboard-assistant-menu.dashboard-assistant-menu--setup .dashboard-assistant-head {
padding-bottom: 16px;
}
.dashboard-assistant-menu.dashboard-assistant-menu--setup .dashboard-assistant-config,
.dashboard-assistant-menu.dashboard-assistant-menu--setup .dashboard-assistant-notice {
margin-bottom: 22px;
}
.dashboard-assistant-config-title {
margin: 0;
font-size: 14px;
font-weight: 700;
color: #ecf5ff;
}
.dashboard-assistant-config-text,
.dashboard-assistant-notice {
font-size: 13px;
line-height: 1.55;
color: rgba(204, 216, 236, 0.84);
}
.dashboard-assistant-config-text {
margin: 6px 0 0;
}
.dashboard-assistant-token-form {
margin-top: 14px;
display: grid;
gap: 10px;
}
.dashboard-assistant-token-label {
font-size: 12px;
font-weight: 700;
color: rgba(171, 189, 219, 0.88);
}
.dashboard-assistant-token-input {
width: 100%;
min-height: 42px;
padding: 0 14px;
border-radius: 14px;
border: 1px solid rgba(120, 146, 190, 0.26);
background: rgba(8, 13, 24, 0.88);
color: #edf4ff;
font-size: 14px;
}
select.dashboard-assistant-token-input {
appearance: none;
-webkit-appearance: none;
background-image:
linear-gradient(45deg, transparent 50%, rgba(212, 228, 255, 0.9) 50%),
linear-gradient(135deg, rgba(212, 228, 255, 0.9) 50%, transparent 50%);
background-position:
calc(100% - 18px) calc(50% - 3px),
calc(100% - 12px) calc(50% - 3px);
background-size: 6px 6px, 6px 6px;
background-repeat: no-repeat;
padding-right: 42px;
}
.dashboard-assistant-token-input::placeholder,
.dashboard-assistant-transcript::placeholder {
color: rgba(141, 156, 183, 0.78);
}
.dashboard-assistant-token-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.dashboard-assistant-token-state {
font-size: 12px;
color: rgba(164, 180, 207, 0.8);
}
.dashboard-assistant-access-row {
margin-top: 14px;
padding-top: 14px;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dashboard-assistant-access-copy {
flex: 1;
min-width: 0;
}
.dashboard-assistant-access-title {
margin: 0;
font-size: 13px;
font-weight: 700;
color: #ecf5ff;
}
.dashboard-assistant-access-text {
margin: 5px 0 0;
font-size: 12px;
line-height: 1.5;
color: rgba(164, 180, 207, 0.8);
}
.dashboard-assistant-switch {
position: relative;
width: 48px;
height: 28px;
display: inline-block;
flex: 0 0 auto;
}
.dashboard-assistant-switch input {
position: absolute;
width: 0;
height: 0;
opacity: 0;
}
.dashboard-assistant-switch-slider {
position: absolute;
inset: 0;
border-radius: 999px;
background: rgba(71, 85, 105, 0.85);
cursor: pointer;
transition: background 0.2s ease, opacity 0.2s ease;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.dashboard-assistant-switch-slider::before {
content: "";
position: absolute;
top: 3px;
left: 3px;
width: 22px;
height: 22px;
border-radius: 999px;
background: #f8fbff;
transition: transform 0.2s ease;
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}
.dashboard-assistant-switch input:checked + .dashboard-assistant-switch-slider {
background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
.dashboard-assistant-switch input:checked + .dashboard-assistant-switch-slider::before {
transform: translateX(20px);
}
.dashboard-assistant-switch input:focus + .dashboard-assistant-switch-slider {
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.dashboard-assistant-switch input:disabled + .dashboard-assistant-switch-slider {
opacity: 0.55;
cursor: not-allowed;
}
.dashboard-assistant-save {
min-height: 40px;
padding: 0 16px;
border: none;
border-radius: 12px;
background: linear-gradient(135deg, #0ea5e9, #2563eb);
color: #eff8ff;
font-weight: 800;
cursor: pointer;
transition: filter 0.2s ease, transform 0.2s ease;
}
.dashboard-assistant-save:hover {
filter: brightness(1.05);
transform: translateY(-1px);
}
.dashboard-assistant-save:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.dashboard-assistant-notice {
padding: 14px;
}
.dashboard-assistant-messages[hidden],
.dashboard-assistant-composer[hidden] {
display: none;
}
.dashboard-assistant-messages {
flex: 1;
min-height: 220px;
padding: 4px 28px 20px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 12px;
}
.dashboard-assistant-messages::-webkit-scrollbar {
width: 8px;
}
.dashboard-assistant-messages::-webkit-scrollbar-thumb {
background: rgba(114, 136, 179, 0.3);
border-radius: 999px;
}
.dashboard-assistant-empty {
min-height: 220px;
border: 1px dashed rgba(139, 161, 203, 0.16);
border-radius: 18px;
background: rgba(11, 17, 31, 0.46);
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 24px;
font-size: 13px;
line-height: 1.6;
color: rgba(176, 191, 216, 0.8);
}
.dashboard-assistant-message {
max-width: 88%;
display: flex;
flex-direction: column;
gap: 6px;
align-self: flex-start;
user-select: text;
-webkit-user-select: text;
}
.dashboard-assistant-message--user {
align-self: flex-end;
}
.dashboard-assistant-message-bubble {
padding: 12px 14px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.9);
font-size: 13px;
line-height: 1.65;
white-space: pre-wrap;
word-break: break-word;
user-select: text;
-webkit-user-select: text;
}
.dashboard-assistant-message-bubble::selection {
background: rgba(96, 165, 250, 0.35);
color: #fff;
}
.dashboard-assistant-message-link {
color: #8ec5ff;
word-break: break-all;
}
.dashboard-assistant-message-link:hover {
color: #b7daff;
}
.dashboard-assistant-message--user .dashboard-assistant-message-bubble {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.15));
border: 1px solid rgba(99, 102, 241, 0.3);
}
.dashboard-assistant-message-meta-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding-inline: 2px;
}
.dashboard-assistant-message-meta {
font-size: 11px;
color: rgba(145, 160, 187, 0.76);
user-select: text;
-webkit-user-select: text;
}
.dashboard-assistant-message-copy {
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
color: rgba(223, 233, 249, 0.9);
min-height: 28px;
padding: 0 10px;
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 700;
cursor: pointer;
transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
user-select: none;
-webkit-user-select: none;
}
.dashboard-assistant-message-copy:hover {
background: rgba(96, 165, 250, 0.14);
border-color: rgba(96, 165, 250, 0.28);
color: #f8fbff;
}
.dashboard-assistant-message-copy:active {
transform: translateY(1px);
}
.dashboard-assistant-message-copy.is-copied {
background: rgba(34, 197, 94, 0.14);
border-color: rgba(34, 197, 94, 0.28);
color: rgba(220, 252, 231, 0.96);
}
.dashboard-assistant-message-copy i {
font-size: 11px;
}
.dashboard-assistant-composer {
padding: 16px 28px 24px;
background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.dashboard-assistant-text-form {
display: grid;
gap: 8px;
margin-bottom: 12px;
}
.dashboard-assistant-text-label {
font-size: 12px;
font-weight: 700;
color: rgba(171, 189, 219, 0.88);
}
.dashboard-assistant-text-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px;
align-items: stretch;
}
.dashboard-assistant-text-input {
width: 100%;
min-height: 52px;
resize: vertical;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(0, 0, 0, 0.2);
color: rgba(255, 255, 255, 0.9);
font-size: 14px;
line-height: 1.45;
transition: all 0.2s ease;
}
.dashboard-assistant-text-input:focus {
outline: none;
background: rgba(0, 0, 0, 0.3);
border-color: rgba(99, 102, 241, 0.5);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.dashboard-assistant-send-btn {
width: 52px;
min-height: 52px;
border: none;
border-radius: 12px;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.85));
color: #fff;
font-size: 17px;
cursor: pointer;
transition: all 0.2s ease;
}
.dashboard-assistant-send-btn:hover {
filter: brightness(1.04);
}
.dashboard-assistant-send-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
filter: none;
}
.dashboard-assistant-voicepad {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px;
align-items: stretch;
}
.dashboard-assistant-voice-btn,
.dashboard-assistant-replay-btn {
border: none;
cursor: pointer;
transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.dashboard-assistant-voice-btn:hover,
.dashboard-assistant-replay-btn:hover {
filter: brightness(1.04);
}
.dashboard-assistant-voice-btn:disabled,
.dashboard-assistant-replay-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.dashboard-assistant-voice-btn {
min-height: 52px;
padding: 0 18px;
border-radius: 12px;
background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.12));
border: 1px solid rgba(16, 185, 129, 0.3);
color: rgba(255, 255, 255, 0.9);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
font-size: 14px;
font-weight: 600;
box-shadow: none;
}
.dashboard-assistant-voice-btn--recording {
background: linear-gradient(135deg, rgba(190, 24, 93, 0.95), rgba(225, 29, 72, 0.95));
color: #fff3f6;
}
.dashboard-assistant-voice-icon {
width: 34px;
height: 34px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.14);
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
}
.dashboard-assistant-voice-copy {
white-space: nowrap;
}
.dashboard-assistant-replay-btn {
width: 52px;
min-height: 52px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(255, 255, 255, 0.08);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 16px;
}
.dashboard-assistant-voice-meta {
margin-top: 10px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 24px;
}
.dashboard-assistant-voice-state {
font-size: 12px;
color: rgba(171, 187, 214, 0.82);
}
.dashboard-assistant-speaking {
display: inline-flex;
align-items: center;
gap: 4px;
}
.dashboard-assistant-speaking-wave {
width: 4px;
height: 16px;
border-radius: 999px;
background: linear-gradient(180deg, #7dd3fc, #2563eb);
animation: dashboardAssistantSpeak 0.9s ease-in-out infinite;
}
.dashboard-assistant-speaking-wave:nth-child(2) {
animation-delay: 0.15s;
}
.dashboard-assistant-speaking-wave:nth-child(3) {
animation-delay: 0.3s;
}
@keyframes dashboardAssistantSpeak {
0%,
100% {
transform: scaleY(0.45);
opacity: 0.5;
}
50% {
transform: scaleY(1);
opacity: 1;
}
}
.dashboard-assistant-transcript {
margin-top: 10px;
padding: 12px 14px;
border-radius: 16px;
background: rgba(9, 14, 27, 0.8);
border: 1px solid rgba(126, 147, 189, 0.14);
color: #dce8fb;
font-size: 13px;
line-height: 1.55;
}
.dashboard-assistant-transcript[hidden] {
display: none;
}
.dashboard-assistant-composer-note {
margin-top: 10px;
font-size: 12px;
color: rgba(144, 160, 187, 0.78);
}
.dashboard-assistant-confirm-overlay {
z-index: 2200;
}
.dashboard-assistant-confirm-modal {
width: min(620px, calc(100vw - 28px));
max-height: min(78vh, 560px);
}
/* Responsive fixes to keep paddings aligned */
@media (max-width: 640px) {
.dashboard-assistant-menu {
top: 70px;
right: 10px;
left: auto;
width: calc(100vw - 20px);
max-height: calc(100vh - 80px);
border-radius: 20px;
}
.dashboard-assistant-head,
.dashboard-assistant-messages,
.dashboard-assistant-composer {
padding-left: 20px;
padding-right: 20px;
}
.dashboard-assistant-status,
.dashboard-assistant-config,
.dashboard-assistant-notice {
margin-left: 20px;
margin-right: 20px;
}
}
.dashboard-assistant-confirm-copy {
display: grid;
gap: 10px;
}
.dashboard-assistant-confirm-lead {
margin: 0;
font-size: 17px;
line-height: 1.5;
color: #eef6ff;
}
.dashboard-assistant-confirm-text {
margin: 0;
font-size: 14px;
line-height: 1.65;
color: rgba(194, 209, 233, 0.82);
}
.dashboard-assistant-confirm-footer {
justify-content: space-between;
flex-wrap: wrap;
}
.dashboard-assistant-confirm-footer .enterprise-btn-secondary,
.dashboard-assistant-confirm-footer .enterprise-btn-primary {
flex: 1 1 220px;
justify-content: center;
}
.dashboard-assistant-status.is-hidden,
.dashboard-assistant-token-state.is-hidden,
.dashboard-assistant-notice.is-hidden {
display: none;
}
@media (max-width: 640px) {
.dashboard-assistant-menu {
width: calc(100vw - 20px);
max-height: calc(100vh - 112px);
border-radius: 20px;
}
.dashboard-assistant-head,
.dashboard-assistant-messages,
.dashboard-assistant-composer {
padding-left: 14px;
padding-right: 14px;
}
.dashboard-assistant-status,
.dashboard-assistant-config,
.dashboard-assistant-notice {
margin-left: 14px;
margin-right: 14px;
}
.dashboard-assistant-message {
max-width: 94%;
}
.dashboard-assistant-voicepad {
grid-template-columns: minmax(0, 1fr);
}
.dashboard-assistant-text-row {
grid-template-columns: minmax(0, 1fr);
}
.dashboard-assistant-replay-btn {
width: 100%;
}
.dashboard-assistant-voice-copy {
white-space: normal;
}
.dashboard-assistant-confirm-modal {
width: calc(100vw - 20px);
}
}
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
.dock-wrap.dock-hidden {
opacity: 0;
pointer-events: none;
transform: translateY(20px);
transition: all 0.3s ease;
}
.dock-wrap {
transition: all 0.3s ease;
}
+4208
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

+11325
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+208
View File
@@ -0,0 +1,208 @@
(() => {
const bot = document.documentElement.dataset.bot;
if (!bot) {
console.error("Bot name not found in dataset");
return;
}
const resMemoryLabel = document.getElementById('resMemoryLabel');
const resMemoryBar = document.getElementById('resMemoryBar');
const resDiskLabel = document.getElementById('resDiskLabel');
const resDiskBar = document.getElementById('resDiskBar');
const resCpuLabel = document.getElementById('resCpuLabel');
const resCpuBar = document.getElementById('resCpuBar');
const resNetworkInboundLabel = document.getElementById('resNetworkInboundLabel');
const resNetworkOutboundLabel = document.getElementById('resNetworkOutboundLabel');
const resUptimeLabel = document.getElementById('resUptimeLabel');
let resourceStatsUptimeInterval = null;
let lastFetchedUptime = null;
let uptimeFetchedAt = null;
let lastNetworkInboundBytes = 0;
let lastNetworkOutboundBytes = 0;
const sio = window.io;
let socket;
if (typeof sio === 'function') {
try { socket = sio(); } catch { socket = null; }
}
if (!socket) {
console.error('Socket.IO not available for resource popup');
return;
}
function formatBytes(bytes, decimals = 2) {
if (!+bytes) return '0 B';
const k = 1024;
const dm = decimals < 0 ? 0 : decimals;
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
const i = Math.floor(Math.log(bytes) / Math.log(k));
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;
}
function formatUptime(seconds) {
if (!seconds || seconds < 0) return '—';
const days = Math.floor(seconds / 86400);
const hours = Math.floor((seconds % 86400) / 3600);
const mins = Math.floor((seconds % 3600) / 60);
const secs = Math.floor(seconds % 60);
const parts = [];
if (days > 0) parts.push(`${days}d`);
if (hours > 0) parts.push(`${hours}h`);
if (mins > 0) parts.push(`${mins}m`);
if (secs > 0 || parts.length === 0) parts.push(`${secs}s`);
return parts.join(' ');
}
function readNetworkBytes(network, keys) {
if (!network || typeof network !== 'object') return null;
for (const key of keys) {
const value = Number(network[key]);
if (Number.isFinite(value) && value >= 0) return value;
}
return null;
}
function onResourceData(data) {
if (!data || data.server !== bot) return;
const isRunning = data.status === 'running' || data.status === 'online';
if (data.memory && isRunning) {
let usedMb, limitMb, pct;
if (typeof data.memory === 'object') {
usedMb = data.memory.used || 0;
limitMb = data.memory.total || 0;
pct = data.memory.percent ?? (limitMb > 0 ? Math.min(100, Math.round((usedMb / limitMb) * 100)) : 0);
} else {
usedMb = data.memory; limitMb = 0; pct = 0;
}
resMemoryLabel.textContent = limitMb > 0
? `${formatBytes(usedMb * 1048576)} / ${formatBytes(limitMb * 1048576)} (${Math.round(pct)}%)`
: `${formatBytes(usedMb * 1048576)} / Unlimited`;
resMemoryBar.style.width = `${pct}%`;
} else {
resMemoryLabel.textContent = '—';
resMemoryBar.style.width = '0%';
}
if (data.disk) {
let usedGb, limitGb, pct;
if (typeof data.disk === 'object') {
usedGb = data.disk.used || 0;
limitGb = data.disk.total || 0;
pct = data.disk.percent ?? (limitGb > 0 ? Math.min(100, Math.round((usedGb / limitGb) * 100)) : 0);
} else {
usedGb = data.disk / 1024; limitGb = 0; pct = 0;
}
resDiskLabel.textContent = limitGb > 0
? `${formatBytes(usedGb * 1073741824)} / ${formatBytes(limitGb * 1073741824)} (${Math.round(pct)}%)`
: `${formatBytes(usedGb * 1073741824)} / Unlimited`;
resDiskBar.style.width = `${pct}%`;
} else {
resDiskLabel.textContent = '—';
resDiskBar.style.width = '0%';
}
if (data.cpu !== undefined && data.cpu !== null && isRunning) {
const cpuMax = data.cpuLimit || 100;
const cpuPct = Math.min(cpuMax, Math.round(data.cpu));
const cpuBarWidth = cpuMax > 0 ? Math.min(100, (cpuPct / cpuMax) * 100) : 0;
resCpuLabel.textContent = `${cpuPct}% / ${Math.round(cpuMax)}%`;
resCpuBar.style.width = `${cpuBarWidth}%`;
} else {
resCpuLabel.textContent = '—';
resCpuBar.style.width = '0%';
}
const network = data.network || null;
const inboundBytes = readNetworkBytes(network, ['inboundBytes', 'rxBytes', 'receivedBytes']);
const outboundBytes = readNetworkBytes(network, ['outboundBytes', 'txBytes', 'transmittedBytes']);
if (inboundBytes !== null) {
lastNetworkInboundBytes = Math.max(lastNetworkInboundBytes, inboundBytes);
if (resNetworkInboundLabel) resNetworkInboundLabel.textContent = formatBytes(lastNetworkInboundBytes);
} else if (resNetworkInboundLabel) {
resNetworkInboundLabel.textContent = '—';
}
if (outboundBytes !== null) {
lastNetworkOutboundBytes = Math.max(lastNetworkOutboundBytes, outboundBytes);
if (resNetworkOutboundLabel) resNetworkOutboundLabel.textContent = formatBytes(lastNetworkOutboundBytes);
} else if (resNetworkOutboundLabel) {
resNetworkOutboundLabel.textContent = '—';
}
if (data.uptime && data.uptime > 0 && isRunning) {
lastFetchedUptime = data.uptime;
uptimeFetchedAt = Date.now();
resUptimeLabel.textContent = formatUptime(data.uptime);
startUptimeCounter();
} else {
lastFetchedUptime = null;
uptimeFetchedAt = null;
stopUptimeCounter();
resUptimeLabel.textContent = isRunning ? 'Starting...' : 'Offline';
}
}
function startUptimeCounter() {
stopUptimeCounter();
if (lastFetchedUptime === null || uptimeFetchedAt === null) return;
resourceStatsUptimeInterval = setInterval(() => {
if (lastFetchedUptime === null || uptimeFetchedAt === null) {
stopUptimeCounter();
return;
}
const elapsed = Math.floor((Date.now() - uptimeFetchedAt) / 1000);
const currentUptime = lastFetchedUptime + elapsed;
resUptimeLabel.textContent = formatUptime(currentUptime);
}, 1000);
}
function stopUptimeCounter() {
if (resourceStatsUptimeInterval) {
clearInterval(resourceStatsUptimeInterval);
resourceStatsUptimeInterval = null;
}
}
let subscribed = false;
function subscribe() {
if (subscribed) return;
subscribed = true;
socket.on('resources:data', onResourceData);
socket.emit('resources:subscribe', { server: bot });
}
function unsubscribe() {
if (!subscribed) return;
subscribed = false;
socket.off('resources:data', onResourceData);
socket.emit('resources:unsubscribe', { server: bot });
stopUptimeCounter();
}
socket.on('connect', () => {
if (subscribed) {
subscribed = false;
subscribe();
} else if (document.visibilityState !== 'hidden') {
subscribe();
}
});
if (document.visibilityState !== 'hidden') {
if (socket.connected) subscribe();
}
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'hidden') {
unsubscribe();
return;
}
subscribe();
});
window.addEventListener('beforeunload', () => {
unsubscribe();
});
})();
+11608
View File
File diff suppressed because it is too large. Load diff
+694
View File
@@ -0,0 +1,694 @@
:root {
--shadow-offset: 0;
--shadow-blur: 15px;
--shadow-spread: -5px;
--shadow-color: rgba(255, 255, 255, 0.7);
--tint-color: 255, 255, 255;
--tint-opacity: 0.10;
--frost-blur: 5px;
--noise-frequency: 0.010;
--distortion-strength: 150;
--outer-shadow-blur: 24px;
--menu-top: 100rem;
--menu-left: -5rem;
--watermark-offset-x: 3.5rem;
}
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
body {
font-family: sans-serif;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed;
background-color: #06080d;
color: white;
display: flex;
flex-direction: column;
align-items: center;
}
@media (max-width: 768px) {
body {
background-attachment: scroll;
}
}
form {
position: absolute;
display: flex;
flex-direction: column;
user-select: none;
gap: 10px;
width: 300px;
margin-top: 300px;
z-index: 100;
}
@media (max-width: 768px) {
form {
margin-top: 270px;
}
}
.input-icon {
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
color: #4f4f4f;
font-size: 16px;
z-index: 10;
transition: color 0.4s cubic-bezier(0.2, 0, 0, 1), opacity 0.4s cubic-bezier(0.2, 0, 0, 1);
pointer-events: none;
}
.input-holder {
position: relative;
display: flex;
align-items: center;
width: 380px;
margin-left: -40px;
}
.input-holder:hover .input-icon {
color: #3f3f3f;
}
.input-holder:focus-within .input-icon {
color: rgba(26, 26, 26, 0.78);
}
.login-input {
width: 100%;
margin: 0;
padding-left: 40px;
box-sizing: border-box;
}
input {
padding: 10px;
border: 1px solid transparent;
user-select: none;
border-radius: 10px;
background-color: #dbdbdb;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
transition: background-color 0.4s cubic-bezier(0.2, 0, 0, 1), border-color 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1);
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #424242;
}
input::placeholder {
color: #6a6a6a;
opacity: 1;
}
input:hover {
background-color: #d4d4d4;
}
input:focus {
background-color: rgba(255, 255, 255, 0.98);
border-color: #007aff;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(0, 122, 255, 0.3);
outline: none;
color: #1a1a1a;
caret-color: #1a1a1a;
}
input:focus::placeholder {
color: rgba(26, 26, 26, 0.55);
}
button {
padding: 10px;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
color: white;
font-weight: bold;
}
.get-started {
position: relative;
border-radius: 12px;
/* Smoother curve */
height: 48px;
/* Slightly taller for touch target size */
width: 380px;
user-select: none;
margin-top: 50px;
margin-left: -40px;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
/* Apple font */
font-size: 16px;
/* slightly larger */
letter-spacing: -0.01em;
/* Tighter tracking */
font-weight: 600;
/* Bolder */
color: #ffffff;
background: linear-gradient(to bottom, #363636, #1a1a1a, #000000);
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 0;
transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.6s ease, box-shadow 0.6s ease;
}
.get-started__logo {
width: 18px;
height: 18px;
object-fit: contain;
flex: 0 0 auto;
display: block;
margin: 0 6px 0 7px;
}
@media (max-width: 768px) {
.get-started {
margin-top: 30px;
}
}
.get-started:hover {
background: linear-gradient(to bottom, #404040, #2a2a2a, #111111);
transform: scale(0.995);
/* Extremely subtle press in effect */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.get-started:active {
transform: scale(0.98);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.error {
color: red;
margin-bottom: 10px;
text-align: center;
}
.menu {
position: absolute;
width: 390px;
height: 480px;
border-radius: 30px;
padding: 30px;
margin-top: 60px;
isolation: isolate;
box-shadow: 0px 6px var(--outer-shadow-blur) rgba(0, 0, 0, 0.2);
background-color: rgba(var(--tint-color), var(--tint-opacity));
border: 1px solid rgba(255, 255, 255, 0.25);
pointer-events: none;
}
.menu::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
border-radius: 30px;
box-shadow: inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
background-color: rgba(var(--tint-color), var(--tint-opacity));
}
.menu::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: 30px;
isolation: isolate;
}
.menu>* {
position: relative;
z-index: 1;
}
@media (max-width: 768px) {
.menu {
font-size: 24px;
padding: 20px;
margin-top: 20px;
}
}
.forgot-password {
position: absolute;
cursor: pointer;
color: #f5f5f7;
/* Matching pure white sub-tone */
user-select: none;
margin-top: 150px;
margin-left: 230px;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
font-weight: 500;
white-space: nowrap;
opacity: 0.65;
text-decoration: none !important;
transition: opacity 0.2s ease, text-shadow 0.2s ease;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.forgot-password:hover {
opacity: 1;
text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
/* Illuminates instead of changing color */
}
.video {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
z-index: -1;
}
.sign-up {
position: relative;
color: #f5f5f7 !important;
user-select: none;
top: 140px;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 24px;
font-weight: 600;
letter-spacing: -0.015em;
z-index: 1;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
.sign-up {
top: 100px;
}
}
.sign-up-desc {
position: relative;
color: #a1a1a6;
user-select: none;
top: 207px;
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 15px;
font-weight: 500;
letter-spacing: -0.012em;
opacity: 1;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
.sign-up-desc {
top: 170px;
}
}
.sign-up-sublines {
position: relative;
color: #86868b;
user-select: none;
top: 245px;
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
font-weight: 500;
letter-spacing: -0.012em;
opacity: 1;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
@media (max-width: 758px) {
.sign-up-sublines {
top: 210px;
}
}
#watermark {
position: fixed;
pointer-events: none;
top: 20px;
left: 30px;
z-index: 999;
display: flex;
}
@media (max-width: 768px) {
#watermark {
top: 10px;
left: 20px;
}
}
#watermark img {
width: 160px;
height: auto;
object-fit: contain;
z-index: 1;
}
.circle-icon {
position: absolute;
background-color: white;
padding: 20px;
border-radius: 15px;
height: 12px;
width: 9px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
margin-top: -210px;
margin-left: 120px;
border: 1px solid #c4c4c4;
}
.circle-icon__glyph {
color: #000;
font-size: 25px;
margin-top: -50px;
margin-left: -10px;
}
@media (max-width: 768px) {
.circle-icon {
margin-top: -220px;
}
}
.toast-host {
position: fixed;
top: 18px;
right: 5px;
z-index: 999999;
pointer-events: none;
}
.toast {
width: 300px;
transform: translateX(120%);
opacity: 0;
pointer-events: none;
will-change: transform, opacity;
}
.toast-inner {
background: rgba(255, 45, 85, 0.18);
border-radius: 16px;
padding: 14px 14px 12px;
box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
font-family: "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #fff;
}
.toast-msg {
font-weight: 600;
font-size: 16px;
margin-left: 10px;
text-align: center;
white-space: nowrap;
letter-spacing: 0.2px;
}
.toast-bar {
height: 6px;
margin-top: 10px;
border-radius: 9999px;
background: rgba(255, 255, 255, 0.18);
overflow: hidden;
position: relative;
}
.toast-bar::after {
content: "";
position: absolute;
inset: 0;
transform-origin: left;
background: rgba(255, 255, 255, 0.95);
animation: toastProgress 4500ms linear forwards;
}
.toast.toast-show {
animation: toastIn 320ms cubic-bezier(.2, .9, .2, 1) forwards;
}
.toast.toast-hide {
animation: toastOut 260ms cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes toastIn {
from {
transform: translateX(120%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes toastOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(120%);
opacity: 0;
}
}
@keyframes toastProgress {
from {
transform: scaleX(1);
}
to {
transform: scaleX(0);
}
}
.captcha-modal {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 20px;
background: rgba(0, 0, 0, 0.6);
z-index: 100000;
}
.captcha-modal.show {
display: flex !important;
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto !important;
z-index: 100000 !important;
}
.captcha-modal.show .captcha-modal__card {
visibility: visible !important;
opacity: 1 !important;
}
.captcha-modal__backdrop {
position: absolute;
inset: 0;
background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 40%);
pointer-events: none;
}
.captcha-modal__card {
position: relative;
z-index: 1;
width: min(420px, 95vw);
background: rgba(18, 18, 18, 0.9);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 16px;
padding: 22px 20px 18px;
box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
font-family: "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #f2f2f2;
}
.captcha-modal__title {
font-size: 18px;
font-weight: 700;
margin: 0 0 6px;
}
.captcha-modal__title-icon {
margin-right: 8px;
color: #4ade80;
font-size: 18px;
}
.captcha-modal__desc {
margin: 0 0 14px;
font-size: 14px;
opacity: 0.85;
min-height: 18px;
}
.captcha-modal__widget {
min-height: 90px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
}
.login-form--blocked {
pointer-events: none;
opacity: 0.3;
}
.captcha-modal__widget #recaptchaWidget[hidden],
.captcha-modal__widget #cf-turnstile[hidden] {
display: none;
}
.local-captcha {
width: 100%;
}
.local-captcha__prompt {
font-size: 14px;
font-weight: 600;
margin-bottom: 10px;
color: #e0e0e0;
}
.local-captcha__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 6px;
margin-bottom: 12px;
}
.local-captcha__cell {
position: relative;
aspect-ratio: 1;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
border: 2px solid transparent;
transition: border-color 0.2s ease, transform 0.15s ease;
background: rgba(255, 255, 255, 0.05);
}
.local-captcha__cell:hover {
transform: scale(1.03);
border-color: rgba(255, 255, 255, 0.3);
}
.local-captcha__cell.selected {
border-color: #4ade80;
}
.local-captcha__cell.selected .local-captcha__check {
opacity: 1;
}
.local-captcha__cell img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
pointer-events: none;
-webkit-user-drag: none;
user-drag: none;
}
.local-captcha__check {
position: absolute;
top: 6px;
right: 6px;
width: 22px;
height: 22px;
background: #4ade80;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.2s ease;
color: #000;
font-size: 12px;
}
.local-captcha__footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.local-captcha__step {
font-size: 12px;
opacity: 0.7;
}
.local-captcha__submit {
padding: 8px 20px;
font-size: 13px;
font-weight: 600;
border-radius: 8px;
border: none;
background: linear-gradient(135deg, #4ade80, #22c55e);
color: #000;
cursor: pointer;
transition: all 0.2s ease;
}
.local-captcha__submit:hover {
background: linear-gradient(135deg, #22c55e, #16a34a);
}
.local-captcha__submit:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.local-captcha__status {
margin-top: 8px;
font-size: 13px;
text-align: center;
min-height: 18px;
}
.local-captcha__status[data-state="error"] {
color: #f87171;
}
.local-captcha__status[data-state="success"] {
color: #4ade80;
}
.local-captcha__status[data-state="muted"] {
color: #a3a3a3;
}
+8501
View File
File diff suppressed because it is too large. Load diff
+579
View File
@@ -0,0 +1,579 @@
body {
background: url("https://cdn.pixabay.com/photo/2024/07/19/08/16/waves-8905720_1280.png") center/cover no-repeat;
}
:root {
--bg-1: linear-gradient(180deg, #0f1724 0%, #0b1020 100%);
--muted: #9aa4b2;
--accent: #61dafb;
--accent-2: #7c5cff;
--glass: rgba(255, 255, 255, 0.03);
--panel-radius: 14px;
--dock-height: 62px;
--dock-icon-size: 36px;
--ui-scale: 1;
--console-width: min(1100px, 92vw);
--console-height: min(42vh, 540px);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
html,
body {
height: 100%;
margin: 0;
color: #e6eef8;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale
}
.app-wrap {
display: flex;
flex-direction: column;
min-height: 100vh;
gap: 14px;
padding: 12px 16px 120px 16px;
box-sizing: border-box;
align-items: center;
}
.topbar {
width: 100%;
max-width: calc(var(--console-width) + 120px);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 6px
}
.brand {
display: flex;
align-items: center;
gap: 6px
}
.brand .logo {
width: 68px;
height: 68px;
border-radius: 12px;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
color: #061126;
box-shadow: 0 10px 36px rgba(92, 40, 182, 0.12);
font-size: 28px
}
.top-actions {
display: flex;
gap: 8px;
align-items: center
}
.icon-btn {
background: var(--glass);
border: 1px solid rgba(255, 255, 255, 0.03);
padding: 8px;
border-radius: 10px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-weight: 600;
font-size: 13px
}
.icon-btn:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5)
}
.topbar .icon-btn {
position: relative;
background: transparent !important;
border-color: transparent !important;
z-index: 1;
}
.topbar .icon-btn::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(255, 255, 255, 0.04);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.03);
border-radius: inherit;
z-index: -1;
pointer-events: none;
transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.topbar .icon-btn:hover {
transform: none !important;
background: transparent !important;
box-shadow: none;
}
.topbar .icon-btn:hover::before {
transform: scale(1.04);
background: rgba(255, 255, 255, 0.10);
box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}
.main-stage {
display: flex;
gap: 20px;
width: 100%;
max-width: calc(var(--console-width) + 120px);
align-items: flex-start;
justify-content: center
}
.console-panel {
width: var(--console-width);
min-width: 440px;
max-width: calc(var(--console-width));
transform-origin: top left;
transform: scale(var(--ui-scale));
transition: transform 160ms ease;
margin-left: -4%;
margin-top: 6px
}
.console-window {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
border-radius: 12px;
padding: 12px;
box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
border: 1px solid rgba(255, 255, 255, 0.03)
}
.controls {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 10px
}
select#scriptSelect {
padding: 9px 32px 9px 12px;
border-radius: 12px;
background: #0e1116;
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.06);
min-width: 200px;
font-size: 13px;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 14px;
cursor: pointer;
transition: all .15s ease
}
select#scriptSelect:hover {
border-color: rgba(255, 255, 255, 0.15);
background-color: #13171e
}
.run-button,
.stop-button {
padding: 8px 10px;
border-radius: 10px;
border: none;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 14px
}
.run-button {
background: linear-gradient(90deg, #14b8a6, #10b981);
color: white
}
.stop-button {
background: linear-gradient(90deg, #ef4444, #f97316);
color: white
}
.window-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
color: var(--muted)
}
.window-controls {
display: flex;
gap: 8px;
align-items: center
}
.dot {
width: 11px;
height: 11px;
border-radius: 50%;
display: inline-block
}
#console {
background: #0f1720;
color: #9ae6b4;
padding: 12px;
border-radius: 10px;
font-family: "Courier New", monospace;
font-size: 13px;
line-height: 1.45;
height: var(--console-height);
overflow: auto;
border: 1px solid rgba(255, 255, 255, 0.02);
box-sizing: border-box;
}
.cmd-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 10px
}
#cmdInput {
flex: 1;
padding: 10px;
border-radius: 10px;
background: #0e1116;
border: 1px solid rgba(255, 255, 255, 0.02);
color: #cbd5e1;
font-size: 13px
}
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.72);
display: none;
align-items: center;
justify-content: center;
z-index: 10000;
backdrop-filter: blur(6px)
}
.modal-overlay.show {
display: flex
}
.modal {
width: 1100px;
max-width: 96vw;
background: #071218;
border-radius: 12px;
padding: 14px;
border: 1px solid rgba(255, 255, 255, 0.06);
box-shadow: 0 28px 80px rgba(2, 6, 23, 0.72);
color: var(--muted)
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 12px
}
.modal-title {
font-weight: 700;
color: #fff
}
.modal-close {
background: transparent;
border: 0;
color: var(--muted);
font-size: 18px;
cursor: pointer
}
.modal-body {
display: flex;
gap: 12px
}
.modal-left {
width: 40%;
min-height: 300px
}
.modal-right {
width: 60%
}
.modal.file-open .modal-right {
width: 70%
}
.editor-modal .modal {
width: 92vw;
max-width: 1360px;
height: 88vh;
display: flex;
flex-direction: column;
padding: 12px
}
.editor-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 10px;
color: var(--muted)
}
.editor-title {
font-weight: 700;
color: #fff
}
.editor-actions {
display: flex;
gap: 8px
}
#entries {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 8px;
height: 58vh;
overflow: auto
}
#entries li {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.02);
cursor: pointer;
transition: all .12s
}
#entries li:hover {
transform: scale(1.03);
box-shadow: 0 8px 30px rgba(2, 6, 23, 0.4)
}
.entry-left {
display: flex;
align-items: center;
gap: 12px
}
.entry-icon {
width: 42px;
height: 42px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.02);
display: flex;
align-items: center;
justify-content: center
}
.entry-name {
font-weight: 700;
color: #fff
}
.entry-meta {
color: var(--muted);
font-size: 12px
}
.entry-actions button {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.03);
padding: 6px 8px;
border-radius: 8px;
color: var(--muted);
cursor: pointer;
font-size: 13px
}
.entry-actions button:hover {
color: #fff;
border-color: rgba(255, 255, 255, 0.06)
}
#bigEditor {
flex: 1;
display: flex;
flex-direction: column;
gap: 8px;
background: #071219;
border-radius: 10px;
padding: 12px;
overflow: auto
}
#bigEditor .code-area {
flex: 1;
display: block;
border-radius: 8px;
padding: 12px;
background: #021018;
overflow: auto;
color: #dbeafe;
font-family: monospace;
font-size: 14px;
white-space: pre;
outline: none
}
#bigEditor textarea {
width: 100%;
height: 100%;
background: #021018;
border: none;
color: #dbeafe;
padding: 12px;
border-radius: 6px;
font-family: monospace;
font-size: 14px;
resize: none;
box-sizing: border-box
}
.kw {
color: #82aaff;
font-weight: 700
}
.fn {
color: #ffd580;
font-weight: 700
}
.cls {
color: #b6e3ff;
font-weight: 700
}
.str {
color: #9ae6b4
}
.com {
color: #6b7280;
font-style: italic
}
.num {
color: #f0a9ff
}
.task-modal .modal {
width: 520px
}
.dock-wrap {
position: fixed;
left: 50%;
transform: translateX(-50%);
bottom: 12px;
z-index: 2200;
width: 450px;
}
.dock {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 12px;
border-radius: 999px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
backdrop-filter: blur(6px);
box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
border: 1px solid rgba(255, 255, 255, 0.03)
}
.dock .dock-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 6px;
border-radius: 10px;
cursor: pointer;
transition: transform .12s, box-shadow .12s
}
.dock .dock-item:hover {
transform: translateY(-6px);
box-shadow: 0 16px 30px rgba(2, 6, 23, 0.45)
}
.dock .dock-item .icon {
width: var(--dock-icon-size);
height: var(--dock-icon-size);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #0f1724, rgba(255, 255, 255, 0.02));
color: var(--accent);
font-size: 16px
}
.dock .dock-item .label {
font-size: 11px;
color: var(--muted);
margin-top: 2px
}
.dock .sep {
width: 1px;
height: 36px;
background: rgba(255, 255, 255, 0.04);
margin: 0 6px;
border-radius: 2px;
}
input[type=file] {
display: none
}
@media (max-width:1100px) {
.main-stage {
flex-direction: column;
align-items: center
}
.console-panel {
width: 92%
}
}
@media (max-width:640px) {
.brand .logo {
width: 56px;
height: 56px
}
.modal {
width: 94vw
}
}