free-claude-code/api/admin_static/admin.css

576 lines
10 KiB
CSS

:root {
color-scheme: dark;
--bg: #0a0a0c;
--panel: rgba(22, 22, 26, 0.7);
--panel-strong: rgba(30, 30, 36, 0.8);
--card: rgba(26, 26, 32, 0.6);
--input: #0f0f13;
--text: #ffffff;
--muted: #9494a3;
--line: rgba(255, 255, 255, 0.08);
--line-strong: rgba(255, 255, 255, 0.15);
--accent: #6366f1;
--accent-glow: rgba(99, 102, 241, 0.4);
--accent-dark: #4f46e5;
--warn: #f59e0b;
--error: #ef4444;
--ok: #10b981;
--info: #3b82f6;
--shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
--glass-bg: rgba(255, 255, 255, 0.03);
--glass-border: rgba(255, 255, 255, 0.08);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
background: var(--bg);
background-image:
radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
color: var(--text);
font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
letter-spacing: -0.01em;
-webkit-font-smoothing: antialiased;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--line-strong);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--muted);
}
button,
input,
select,
textarea {
font: inherit;
}
.app-shell {
display: grid;
grid-template-columns: 268px minmax(0, 1fr);
min-height: 100vh;
padding-bottom: 86px;
}
.sidebar {
position: sticky;
top: 0;
height: 100vh;
border-right: 1px solid var(--line);
background: rgba(10, 10, 12, 0.8);
backdrop-filter: blur(20px);
padding: 24px 16px;
display: flex;
flex-direction: column;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 32px;
padding: 0 8px;
}
.brand-mark {
display: flex;
width: 40px;
height: 40px;
place-items: center;
justify-content: center;
border-radius: var(--radius-md);
background: linear-gradient(135deg, var(--accent), var(--accent-dark));
color: #ffffff;
font-weight: 800;
font-size: 16px;
box-shadow: 0 0 20px var(--accent-glow);
animation: pulse-glow 3s infinite;
}
@keyframes pulse-glow {
0% { box-shadow: 0 0 10px var(--accent-glow); }
50% { box-shadow: 0 0 25px var(--accent-glow); }
100% { box-shadow: 0 0 10px var(--accent-glow); }
}
.brand h1,
.brand p,
.topbar h2,
.topbar p,
.section-heading h3,
.section-heading p,
.strip-header h3 {
margin: 0;
}
.brand h1 {
font-size: 15px;
line-height: 1.2;
}
.brand p,
.eyebrow,
.section-heading p,
.action-meta span {
color: var(--muted);
font-size: 12px;
}
.section-nav {
display: grid;
gap: 6px;
}
.nav-link {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
min-height: 40px;
border: 1px solid transparent;
border-radius: var(--radius-sm);
background: transparent;
color: var(--muted);
padding: 10px 14px;
text-align: left;
cursor: pointer;
transition: var(--transition);
font-weight: 500;
}
.nav-link:hover {
background: var(--glass-bg);
color: var(--text);
transform: translateX(4px);
}
.nav-link.active {
background: var(--accent);
color: #ffffff;
border-color: var(--accent);
box-shadow: 0 4px 12px var(--accent-glow);
}
.main {
min-width: 0;
padding: 28px;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 20px;
}
.eyebrow {
margin-bottom: 4px;
text-transform: uppercase;
font-weight: 700;
}
.topbar h2 {
font-family: 'Outfit', sans-serif;
font-size: 32px;
font-weight: 800;
line-height: 1.1;
background: linear-gradient(135deg, #fff 0%, var(--muted) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.server-state {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.status-pill,
.model-badge {
display: inline-flex;
align-items: center;
min-height: 30px;
border: 1px solid var(--line);
border-radius: 999px;
padding: 5px 10px;
background: var(--panel-strong);
color: var(--muted);
font-size: 12px;
font-weight: 700;
white-space: nowrap;
}
.status-pill.ok {
color: var(--ok);
background: rgba(47, 185, 132, 0.13);
border-color: rgba(89, 217, 148, 0.36);
}
.status-pill.warn {
color: var(--warn);
background: rgba(245, 183, 79, 0.13);
border-color: rgba(245, 183, 79, 0.38);
}
.status-pill.error {
color: var(--error);
background: rgba(255, 116, 108, 0.12);
border-color: rgba(255, 116, 108, 0.36);
}
.provider-strip,
.settings-section,
.env-panel {
border: 1px solid var(--glass-border);
border-radius: var(--radius-lg);
background: var(--panel);
backdrop-filter: blur(12px);
box-shadow: var(--shadow);
padding: 24px;
animation: slide-up 0.5s ease-out backwards;
}
@keyframes slide-up {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.provider-strip {
margin-bottom: 24px;
}
.strip-header,
.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.strip-header {
margin-bottom: 12px;
}
.strip-header h3,
.section-heading h3 {
font-size: 16px;
}
.provider-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 10px;
}
.provider-card {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 12px;
min-height: 140px;
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: 16px;
background: var(--card);
transition: var(--transition);
}
.provider-card:hover {
transform: translateY(-4px);
border-color: var(--accent);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.provider-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.provider-title strong {
font-size: 14px;
}
.provider-meta {
color: var(--muted);
font-size: 12px;
word-break: break-word;
}
.test-button,
.ghost-button,
.secondary-button,
.primary-button {
min-height: 34px;
border-radius: 8px;
border: 1px solid var(--line-strong);
padding: 7px 12px;
cursor: pointer;
font-weight: 700;
}
.ghost-button,
.secondary-button,
.test-button {
background: var(--panel-strong);
color: var(--text);
}
.ghost-button:hover,
.secondary-button:hover,
.test-button:hover {
border-color: var(--accent);
}
.primary-button {
border-color: var(--accent);
background: var(--accent);
color: #06100b;
}
.primary-button:hover {
background: var(--accent-dark);
}
.primary-button:disabled {
cursor: not-allowed;
border-color: var(--line);
background: #34302a;
color: #797067;
}
.form-sections {
display: grid;
gap: 18px;
}
.settings-section {
padding: 18px;
scroll-margin-top: 20px;
}
.section-heading {
margin-bottom: 16px;
}
.field-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 14px;
}
.field {
display: grid;
gap: 7px;
align-content: start;
}
.field label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 13px;
font-weight: 700;
}
.field-source {
color: var(--muted);
font-size: 11px;
font-weight: 600;
}
.field input,
.field select,
.field textarea {
width: 100%;
min-height: 38px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: var(--input);
color: var(--text);
padding: 8px 10px;
}
.field textarea {
min-height: 90px;
resize: vertical;
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
background: #26231f;
color: #82796f;
}
.field-description {
color: var(--muted);
font-size: 12px;
line-height: 1.35;
}
.field.advanced-field {
display: none;
}
.settings-section.show-advanced .advanced-field {
display: grid;
}
.advanced-toggle {
justify-self: start;
margin-top: 14px;
}
.env-panel {
margin-top: 18px;
padding: 18px;
}
.env-preview {
overflow: auto;
max-height: 360px;
margin: 14px 0 0;
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
background: rgba(0, 0, 0, 0.4);
color: #a5f3fc;
padding: 16px;
font-family: 'JetBrains Mono', 'Fira Code', monospace;
font-size: 13px;
line-height: 1.5;
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}
.env-preview::before {
content: "MANAGED_ENV";
display: block;
font-size: 10px;
font-weight: 800;
color: var(--muted);
margin-bottom: 12px;
opacity: 0.5;
}
.action-bar {
position: fixed;
right: 24px;
bottom: 24px;
left: 292px;
z-index: 100;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(180px, auto) auto;
gap: 20px;
align-items: center;
min-height: 80px;
border: 1px solid var(--glass-border);
border-radius: var(--radius-lg);
background: rgba(20, 20, 25, 0.85);
padding: 16px 32px;
backdrop-filter: blur(24px);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.action-meta {
display: grid;
gap: 3px;
min-width: 0;
}
.action-meta strong,
.action-meta span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.message-area {
min-width: 0;
color: var(--muted);
font-size: 13px;
}
.message-area.error {
color: var(--error);
}
.message-area.ok {
color: var(--ok);
}
.action-buttons {
display: flex;
gap: 8px;
}
@media (max-width: 900px) {
.app-shell {
display: block;
padding-bottom: 122px;
}
.sidebar {
position: relative;
height: auto;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.section-nav {
grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.main {
padding: 18px;
}
.topbar {
align-items: flex-start;
flex-direction: column;
}
.server-state {
justify-content: flex-start;
}
.action-bar {
left: 0;
grid-template-columns: 1fr;
align-items: stretch;
padding: 12px 18px;
}
.action-buttons {
justify-content: stretch;
}
.action-buttons button {
flex: 1;
}
}