313 lines
8.2 KiB
CSS

:root {
--bg-color: #0f172a;
--bg-secondary: #1e293b;
--surface: #1e293b;
--surface-elevated: #334155;
--surface-hover: #475569;
--primary: #60a5fa;
--primary-dark: #3b82f6;
--primary-light: #93c5fd;
--secondary: #a78bfa;
--accent: #22d3ee;
--text-primary: #f1f5f9;
--text-secondary: #cbd5e1;
--text-muted: #94a3b8;
--border: #334155;
--border-hover: #475569;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
--radius: 8px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-sm: 4px;
--glass-bg: rgba(30, 41, 59, 0.8);
--success: #10b981;
--success-bg: rgba(16, 185, 129, 0.1);
--success-border: rgba(16, 185, 129, 0.3);
--success-text: #10b981;
--warning: #f59e0b;
--warning-bg: rgba(245, 158, 11, 0.1);
--warning-border: rgba(245, 158, 11, 0.3);
--warning-text: #f59e0b;
--error: #ef4444;
--error-bg: rgba(239, 68, 68, 0.1);
--error-border: rgba(239, 68, 68, 0.3);
--error-text: #ef4444;
--info: #3b82f6;
--info-bg: rgba(59, 130, 246, 0.1);
--info-border: rgba(59, 130, 246, 0.3);
--info-text: #3b82f6;
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-mono: 'SFMono-Regular', Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
font-family: var(--font-sans);
font-size: 1rem;
line-height: 1.6;
color: var(--text-primary);
background: var(--bg-color);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-light); text-decoration: underline; }
::selection {
background: rgba(96, 165, 250, 0.3);
color: var(--text-primary);
}
body::before {
content: '';
position: fixed;
inset: 0;
background:
radial-gradient(ellipse 80% 50% at 20% -10%, rgba(96, 165, 250, 0.05) 0%, transparent 60%),
radial-gradient(ellipse 60% 40% at 85% 110%, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
pointer-events: none;
z-index: 0;
}
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
padding: 0 1rem;
display: flex;
align-items: center;
box-shadow: var(--shadow-sm);
transition: all 0.3s ease;
}
nav::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
opacity: 0.3;
}
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-menu a,
.nav-account a {
display: inline-flex;
align-items: center;
padding: 0.5rem 0.75rem;
border-radius: var(--radius);
color: var(--text-primary);
text-decoration: none;
}
.nav-menu > a:first-child {
font-weight: 700;
color: var(--primary);
padding: 1rem 1.5rem;
margin: 0.5rem 0.25rem;
}
.nav-menu a:hover,
.nav-account a:hover {
background: var(--surface-hover);
color: var(--primary);
}
.nav-account {
margin-left: auto;
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-account .account-name {
color: var(--text-secondary);
font-weight: 500;
font-size: 0.95rem;
margin-right: 0.5rem;
}
.nav-account .nav-avatar,
.profile-avatar {
border-radius: 999px;
object-fit: cover;
border: 1px solid var(--border);
}
.nav-account .nav-avatar { width: 30px; height: 30px; }
.profile-avatar { width: 96px; height: 96px; }
#content {
margin-top: 5rem;
min-height: calc(100vh - 10rem);
padding: 2rem 1rem;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
color: var(--text-primary);
}
h1 {
font-size: 2rem;
position: relative;
padding-bottom: 0.75rem;
margin-bottom: 1.25rem;
}
h1::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 3px;
background: linear-gradient(90deg, var(--primary), var(--accent));
border-radius: 3px;
}
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
#content > div:not(.ws-app), .block, .card, .dashboard-panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.75rem;
margin-bottom: 1.5rem;
box-shadow: var(--shadow-sm);
transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#content > div:not(.ws-app):hover, .block:hover, .card:hover, .dashboard-panel:hover {
box-shadow: var(--shadow-md);
border-color: var(--border-hover);
}
form { max-width: 600px; margin: 0 auto; }
form > div { display: flex; flex-direction: column; margin-bottom: 1.5rem; gap: 0.5rem; }
label { font-weight: 500; color: var(--text-secondary); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
input, select, textarea {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid var(--border);
border-radius: var(--radius);
background: var(--bg-secondary);
color: var(--text-primary);
font-size: 1rem;
font-family: inherit;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
background: var(--surface);
}
button, .btn, input[type="submit"] {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
background: var(--primary);
color: var(--bg-color);
border: none;
border-radius: var(--radius);
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.2s ease;
}
button:hover, .btn:hover, input[type="submit"]:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-lg);
text-decoration: none;
}
.banner {
border-radius: var(--radius);
padding: 0.8rem 1rem;
border: 1px solid var(--border);
margin-bottom: 1rem;
background: rgba(255,255,255,0.03);
}
.banner.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.banner.warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
.banner.error, .error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
table {
width: 100%;
border-collapse: collapse;
border: 1px solid var(--border);
background: rgba(255,255,255,0.02);
border-radius: var(--radius);
overflow: hidden;
}
th, td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--surface-elevated); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
code, pre { font-family: var(--font-mono); }
pre {
padding: 1rem;
background: rgba(15, 23, 42, 0.55);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: auto;
}
footer {
border-top: 1px solid var(--border);
padding: 1.25rem 1rem;
color: var(--text-muted);
font-size: 0.875rem;
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
input[type="range"] {
width: 100%;
height: 6px;
background: var(--bg-secondary);
outline: none;
border: none;
border-radius: 999px;
-webkit-appearance: none;
appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
background: var(--primary);
cursor: pointer;
border-radius: 50%;
box-shadow: 0 0 6px rgba(96, 165, 250, 0.3);
}
input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
background: var(--primary);
cursor: pointer;
border-radius: 50%;
border: none;
box-shadow: 0 0 6px rgba(96, 165, 250, 0.3);
}
@media (max-width: 860px) {
nav { flex-wrap: wrap; padding-bottom: 0.6rem; }
.nav-account { width: 100%; margin-left: 0; justify-content: flex-start; }
#content { margin-top: 7.5rem; padding: 1rem 0.75rem; }
#content > div:not(.ws-app), .block, .card, .dashboard-panel { padding: 1.25rem; margin-bottom: 1rem; }
h1 { font-size: 2rem; padding: 1.25rem; }
}