Files
proxy_tmdb/public/admin.css

312 lines
5.1 KiB
CSS

/* Admin dashboard — extends public/style.css. */
.topbar {
gap: 10px;
}
.tabs {
display: flex;
gap: 2px;
background: var(--bg-3);
padding: 4px;
border-radius: 10px;
flex: 1;
justify-content: center;
max-width: 500px;
}
.tab {
background: transparent;
color: var(--text-muted);
border: 0;
padding: 7px 16px;
border-radius: 7px;
cursor: pointer;
font-size: 13px;
font-weight: 500;
transition:
background 0.15s,
color 0.15s;
}
.tab:hover {
color: var(--text);
}
.tab.active {
background: var(--bg-hover);
color: var(--text);
}
.topbar-actions {
display: flex;
gap: 14px;
align-items: center;
flex-shrink: 0;
}
#main-admin {
max-width: 1400px;
margin: 0 auto;
padding: 24px 20px 80px;
}
.view {
display: none;
}
.view.active {
display: block;
}
/* Stat cards */
.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.stat-card {
background: var(--bg-3);
border-radius: var(--radius);
padding: 18px;
border: 1px solid transparent;
}
.stat-card h3 {
margin: 0 0 8px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
font-weight: 600;
}
.stat-value {
font-size: 28px;
font-weight: 700;
color: var(--text);
margin-bottom: 4px;
font-variant-numeric: tabular-nums;
}
.stat-sub {
font-size: 12px;
color: var(--text-muted);
line-height: 1.5;
}
#card-cron .stat-value.ok {
color: #4ade80;
}
#card-cron .stat-value.err {
color: var(--danger);
}
#card-cron .stat-value.running {
color: var(--accent-2);
}
/* Panels */
.panel {
background: var(--bg-3);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 20px;
}
.panel h2 {
margin: 0 0 16px;
font-size: 14px;
font-weight: 600;
color: var(--text);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Disk bars */
.disk-bars {
display: flex;
flex-direction: column;
gap: 10px;
}
.disk-row {
display: grid;
grid-template-columns: 160px 1fr 100px;
gap: 12px;
align-items: center;
font-size: 13px;
}
.disk-row .label {
color: var(--text-muted);
}
.disk-row .size {
text-align: right;
font-variant-numeric: tabular-nums;
color: var(--text);
}
.disk-bar {
background: var(--bg-2);
height: 14px;
border-radius: 7px;
overflow: hidden;
}
.disk-bar > span {
display: block;
height: 100%;
background: var(--accent);
transition: width 0.3s;
}
.disk-bar.tv > span {
background: #a78bfa;
}
.disk-bar.jwmovie > span {
background: #f59e0b;
}
.disk-bar.jwtv > span {
background: #f472b6;
}
.disk-bar.ratings > span {
background: var(--imdb);
}
/* Cron */
.cron-summary {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 14px;
}
.cron-summary .pill {
background: var(--bg-hover);
padding: 6px 12px;
border-radius: 999px;
font-size: 12px;
color: var(--text-muted);
}
.cron-summary .pill b {
color: var(--text);
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.cron-log-wrapper {
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
background: var(--bg-2);
}
.cron-log-wrapper summary {
padding: 10px 14px;
cursor: pointer;
font-size: 13px;
color: var(--text-muted);
user-select: none;
font-weight: 500;
}
.cron-log-wrapper summary:hover {
color: var(--text);
}
.cron-log {
margin: 0;
padding: 14px;
background: #020617;
color: #cbd5e1;
font-family: "SF Mono", "Monaco", "Courier New", monospace;
font-size: 12px;
line-height: 1.5;
overflow: auto;
max-height: 400px;
white-space: pre-wrap;
word-break: break-all;
}
/* Tables */
.tbl {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.tbl th,
.tbl td {
padding: 10px 12px;
border-bottom: 1px solid var(--border);
text-align: left;
}
.tbl th {
background: var(--bg-2);
color: var(--text-muted);
font-weight: 600;
position: sticky;
top: 0;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.tbl td {
font-variant-numeric: tabular-nums;
}
.tbl td.num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.tbl tr:hover td {
background: var(--bg-2);
}
.tbl a {
color: var(--accent-2);
text-decoration: none;
}
.tbl a:hover {
text-decoration: underline;
}
/* Key-value list */
.kv {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 8px 20px;
}
.kv > div {
display: flex;
justify-content: space-between;
padding: 6px 0;
border-bottom: 1px solid var(--border);
font-size: 13px;
}
.kv > div > span:first-child {
color: var(--text-muted);
}
.kv > div > span:last-child {
color: var(--text);
font-variant-numeric: tabular-nums;
}
.footnote {
font-size: 12px;
color: var(--text-dim);
margin: 8px 0;
}
.footnote code {
background: var(--bg-2);
padding: 1px 6px;
border-radius: 4px;
font-family: "SF Mono", monospace;
font-size: 11px;
}
#refresh-status {
color: var(--text-dim);
font-size: 11px;
}
@media (max-width: 700px) {
.tabs {
max-width: none;
}
.topbar {
flex-wrap: wrap;
}
.disk-row {
grid-template-columns: 100px 1fr 80px;
}
}