7bc8c74d5e
- Update color scheme to purple/blue gradient accents - Add modern card layouts with hover effects - Implement token display with copy button - Add stats dashboard on home page - Improve install page with SQLite/MySQL toggle - Add feature cards for supported functions - Improve login/register pages with centered layout - Add admin page with user management table - Add responsive grid layouts - Add fade-in animations
673 lines
9.9 KiB
CSS
673 lines
9.9 KiB
CSS
:root {
|
|
--bg-primary: #0A0A0F;
|
|
--bg-secondary: #12121A;
|
|
--bg-tertiary: #1A1A24;
|
|
--bg-card: #15151F;
|
|
--text-primary: #E4E4E7;
|
|
--text-secondary: #A1A1AA;
|
|
--text-muted: #52525B;
|
|
--accent-purple: #8B5CF6;
|
|
--accent-blue: #3B82F6;
|
|
--accent-cyan: #06B6D4;
|
|
--accent-green: #10B981;
|
|
--accent-orange: #F59E0B;
|
|
--border: #27272A;
|
|
--border-hover: #3F3F46;
|
|
--error: #EF4444;
|
|
--success: #22C55E;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
/* Layout */
|
|
.container {
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container-sm {
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px 0;
|
|
margin-bottom: 32px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.header-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-title h1 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Logo */
|
|
.logo {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
margin-bottom: 16px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.card-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.card-desc {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Grid */
|
|
.grid {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.grid-cols-2 {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.grid-cols-3 {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.grid-cols-4 {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.grid-cols-4 {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.grid-cols-2,
|
|
.grid-cols-3,
|
|
.grid-cols-4 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
outline: none;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.input:focus {
|
|
border-color: var(--accent-purple);
|
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.input-error {
|
|
border-color: var(--error);
|
|
}
|
|
|
|
.input-error:focus {
|
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
|
|
}
|
|
|
|
/* Buttons */
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 20px;
|
|
background: var(--accent-purple);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.button:hover {
|
|
background: #7C3AED;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.button-secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.button-secondary:hover {
|
|
background: var(--border);
|
|
}
|
|
|
|
.button-ghost {
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.button-ghost:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.button-sm {
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.button-lg {
|
|
padding: 14px 28px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.button-block {
|
|
width: 100%;
|
|
}
|
|
|
|
/* API Box */
|
|
.api-box {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 13px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.api-box code {
|
|
color: var(--text-primary);
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.api-box .method {
|
|
color: var(--accent-green);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.api-box .path {
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.api-box .desc {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Token Display */
|
|
.token-display {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.token-display .token {
|
|
flex: 1;
|
|
color: var(--text-primary);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.token-display .copy-btn {
|
|
padding: 6px 12px;
|
|
background: var(--accent-purple);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.token-display .copy-btn:hover {
|
|
background: #7C3AED;
|
|
}
|
|
|
|
/* Stats */
|
|
.stat {
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Messages */
|
|
.error {
|
|
color: var(--error);
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.success {
|
|
color: var(--success);
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* Utility */
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.text-secondary {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.text-sm {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.text-lg {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.mb-2 {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.mb-4 {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.mb-6 {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.mt-2 {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.mt-4 {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.mt-6 {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.flex-col {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.items-center {
|
|
align-items: center;
|
|
}
|
|
|
|
.justify-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.justify-center {
|
|
justify-content: center;
|
|
}
|
|
|
|
.gap-2 {
|
|
gap: 8px;
|
|
}
|
|
|
|
.gap-4 {
|
|
gap: 16px;
|
|
}
|
|
|
|
.gap-6 {
|
|
gap: 24px;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
/* Feature Cards */
|
|
.feature-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.feature-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
.feature-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.feature-desc {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Links */
|
|
a {
|
|
color: var(--accent-purple);
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
a:hover {
|
|
color: #A78BFA;
|
|
}
|
|
|
|
/* Code */
|
|
code {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
background: var(--bg-tertiary);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Tables */
|
|
.table-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th, td {
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
th {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
td {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
tr:hover td {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
/* Tags */
|
|
.tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 10px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.tag-purple {
|
|
background: rgba(139, 92, 246, 0.1);
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
.tag-green {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: var(--accent-green);
|
|
}
|
|
|
|
.tag-blue {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
.tag-orange {
|
|
background: rgba(245, 158, 11, 0.1);
|
|
color: var(--accent-orange);
|
|
}
|
|
|
|
/* Dividers */
|
|
.divider {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 24px 0;
|
|
}
|
|
|
|
/* Page Title */
|
|
.page-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
}
|
|
|
|
.empty-state-icon {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin: 0 auto 16px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-state-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-state-desc {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Loading */
|
|
.loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 24px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.spinner {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid var(--border);
|
|
border-top-color: var(--accent-purple);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
} |