Files

1493 lines
32 KiB
CSS

:root {
--primary: #c9a24e;
--primary-dark: #a8862e;
--primary-light: #e0c97a;
--bg: #f4f1ea;
--card-bg: #ffffff;
--text: #2c1810;
--text-light: #6b5a4a;
--text-muted: #9a8a7a;
--border: #e0d5c7;
--accent: #8b4513;
--danger: #c0392b;
--success: #27ae60;
--nav-bg: #1a1a2e;
--nav-text: #c9c4d0;
--nav-active: #c9a24e;
--hover: #f0ebe0;
--shadow: 0 2px 8px rgba(44,24,16,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
}
/* Top Navigation */
nav {
background: var(--nav-bg);
padding: 0 24px;
display: flex;
align-items: center;
gap: 4px;
height: 52px;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
nav .brand {
color: var(--primary);
font-weight: 700;
font-size: 15px;
margin-right: 24px;
letter-spacing: 0.5px;
white-space: nowrap;
}
nav a {
color: var(--nav-text);
text-decoration: none;
padding: 0 14px;
height: 52px;
display: flex;
align-items: center;
font-size: 13px;
font-weight: 500;
border-bottom: 2px solid transparent;
transition: all 0.15s;
}
nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
nav a.active {
color: var(--nav-active);
border-bottom-color: var(--nav-active);
}
nav .spacer { flex: 1; }
/* Horizontal vs vertical nav link visibility */
.nav-links-h { display: flex; align-items: center; gap: 2px; }
.nav-links-v { display: none; }
body[data-nav-layout="vertical"] .nav-links-h { display: none; }
body[data-nav-layout="vertical"] .nav-links-v { display: flex; flex-direction: column; width: 100%; flex: 1; overflow-y: auto; }
/* Horizontal nav dropdowns */
.nav-dropdown {
position: relative;
display: inline-block;
}
.nav-dropdown-toggle {
cursor: default;
padding: 0 10px;
}
.nav-dropdown-content {
display: none;
position: absolute;
top: 100%;
left: 0;
background: var(--nav-bg);
min-width: 140px;
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
border-radius: 6px;
z-index: 1000;
padding: 4px 0;
border: 1px solid rgba(255,255,255,0.1);
}
.nav-dropdown-content a {
color: var(--nav-text);
padding: 8px 16px;
height: auto;
border-bottom: none;
font-size: 12px;
display: block;
}
.nav-dropdown-content a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-dropdown-content a.active {
color: var(--nav-active);
border-left: 3px solid var(--nav-active);
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.conn-dot {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
margin-right: 6px;
}
.conn-dot.online { background: var(--success); }
.conn-dot.offline { background: var(--danger); }
/* Container */
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
/* Error Banners */
.error-banner {
background: #fff3cd;
border: 1px solid #ffc107;
color: #856404;
padding: 16px 24px;
border-radius: 8px;
margin-bottom: 20px;
font-size: 14px;
}
.error-banner.danger {
background: #f8d7da;
border-color: #f5c6cb;
color: #721c24;
}
.error-banner code {
background: rgba(0,0,0,0.06);
padding: 2px 6px;
border-radius: 3px;
font-size: 13px;
}
/* Page Header */
.page-header {
margin-bottom: 24px;
}
.page-header h1 {
font-size: 24px;
font-weight: 700;
color: var(--text);
}
.page-header p {
color: var(--text-light);
font-size: 14px;
margin-top: 4px;
}
/* Vitals Bar */
.vitals-bar {
display: flex;
align-items: center;
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px 20px;
margin-bottom: 20px;
gap: 0;
}
.vitals-item {
display: flex;
align-items: center;
gap: 8px;
}
.vitals-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-muted);
font-weight: 600;
}
.vitals-value {
font-size: 15px;
font-weight: 700;
font-family: 'Courier New', monospace;
}
.vitals-divider {
width: 1px;
height: 28px;
background: var(--border);
margin: 0 24px;
}
/* Stat Cards */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 16px;
margin-bottom: 32px;
}
.stat-card {
background: var(--card-bg);
border-radius: 12px;
padding: 20px;
box-shadow: var(--shadow);
transition: transform 0.1s;
}
.stat-card:hover { transform: translateY(-1px); }
.stat-card .label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-muted);
font-weight: 600;
}
.stat-card .value {
font-size: 32px;
font-weight: 700;
color: var(--text);
margin-top: 4px;
}
.stat-card .value.online { color: var(--success); }
/* Cards */
.card {
background: var(--card-bg);
border-radius: 12px;
box-shadow: var(--shadow);
margin-bottom: 20px;
overflow: hidden;
}
.card-header {
padding: 16px 20px;
border-bottom: 1px solid var(--border);
font-weight: 600;
font-size: 15px;
display: flex;
align-items: center;
justify-content: space-between;
}
.card-body { padding: 20px; }
.card-body:empty { display: none; }
/* Tables */
.table-wrap { overflow-x: auto; }
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
thead th {
background: var(--table-header);
color: var(--text);
padding: 10px 14px;
text-align: left;
font-weight: 600;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-light);
border-bottom: 2px solid var(--border);
white-space: nowrap;
cursor: pointer;
user-select: none;
}
thead th:hover { color: var(--text); }
thead th.sort-asc::after { content: ' \25B2'; font-size: 10px; }
thead th.sort-desc::after { content: ' \25BC'; font-size: 10px; }
tbody td {
padding: 10px 14px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: none; }
td a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
}
td a:hover { text-decoration: underline; }
/* Filters */
.filters {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
margin-bottom: 16px;
}
.filters input, .filters select {
padding: 8px 12px;
border: 1px solid var(--border);
border-radius: 6px;
font-size: 13px;
background: var(--card-bg);
color: var(--text);
min-width: 160px;
}
.filters input:focus, .filters select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(201,162,78,0.15);
}
.filters button {
padding: 8px 16px;
background: var(--primary);
color: #fff;
border: none;
border-radius: 6px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s;
}
.filters button:hover { background: var(--primary-dark); }
/* Faction Badges */
.badge {
display: inline-block;
padding: 2px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.badge-atreides { background: #1a5276; color: #fff; }
.badge-harkonnen { background: #7b241c; color: #fff; }
.badge-smuggler { background: #7d6608; color: #fff; }
.badge-none { background: #566573; color: #fff; }
.badge-neutral { background: #566573; color: #fff; }
.badge-leader { background: #f39c12; color: #fff; }
.badge-officer { background: #3498db; color: #fff; }
.badge-member { background: #95a5a6; color: #fff; }
.badge-online { background: #27ae60; color: #fff; }
.badge-offline { background: #95a5a6; color: #fff; }
.badge-alive { background: #27ae60; color: #fff; }
.badge-dead { background: #c0392b; color: #fff; }
.badge-solaris { background: #8e44ad; color: #fff; }
/* Guild Cards Grid */
.guild-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 16px;
}
.guild-card {
background: var(--card-bg);
border-radius: 12px;
padding: 20px;
box-shadow: var(--shadow);
cursor: pointer;
transition: transform 0.1s, box-shadow 0.1s;
text-decoration: none;
color: var(--text);
display: block;
}
.guild-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(44,24,16,0.12);
}
.guild-card h3 {
font-size: 16px;
margin-bottom: 4px;
}
.guild-card .meta {
font-size: 13px;
color: var(--text-light);
margin-top: 8px;
}
.guild-card .meta span {
margin-right: 16px;
}
/* Detail sections */
.detail-section {
margin-bottom: 24px;
}
.detail-section h2 {
font-size: 16px;
font-weight: 700;
color: var(--text);
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 2px solid var(--primary);
}
.detail-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
}
.detail-item .dlabel {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-muted);
font-weight: 600;
}
.detail-item .dvalue {
font-size: 14px;
font-weight: 500;
margin-top: 2px;
word-break: break-word;
}
/* Inventory */
.inv-type {
font-weight: 600;
margin: 12px 0 8px;
font-size: 14px;
}
.inv-type:first-child { margin-top: 0; }
.inv-section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin: 16px 0 8px;
font-size: 14px;
font-weight: 600;
}
.inv-section-header .inv-meta {
font-size: 11px;
font-weight: 400;
color: var(--text-muted);
margin-left: 8px;
}
/* Main Inventory Grid */
.inv-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 6px;
margin-bottom: 12px;
}
.inv-grid-compact {
grid-template-columns: repeat(5, 1fr);
gap: 3px;
}
.inv-grid-compact .inv-grid-slot {
aspect-ratio: auto;
height: 48px;
min-height: unset;
border-width: 1px;
border-radius: 4px;
}
.inv-grid-compact .inv-slot-icon {
font-size: 14px;
margin-bottom: 1px;
}
.inv-grid-compact .inv-slot-name {
font-size: 6px;
}
.inv-grid-compact .inv-slot-stack {
font-size: 7px;
bottom: 1px;
right: 2px;
padding: 0 2px;
}
.inv-grid-compact .inv-slot-ammo {
font-size: 7px;
top: 1px;
right: 2px;
}
.inv-grid-compact .inv-slot-durability-bar {
height: 2px;
}
.inv-grid-compact .inv-slot-quality {
width: 5px;
height: 5px;
top: 2px;
left: 3px;
}
.inv-grid-slot {
aspect-ratio: 1;
border: 2px dashed var(--border);
border-radius: 8px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
position: relative;
transition: all 0.15s;
background: var(--card-bg);
min-height: 80px;
overflow: hidden;
}
.inv-grid-slot:hover {
border-color: var(--primary);
background: var(--hover);
}
.inv-grid-slot.has-item {
border-style: solid;
border-color: var(--border);
}
.inv-grid-slot.has-item:hover {
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(201,162,78,0.2);
}
.inv-slot-overlay {
position: absolute;
inset: 0;
z-index: 1;
cursor: pointer;
}
.inv-slot-icon {
font-size: 22px;
line-height: 1;
margin-bottom: 2px;
color: var(--text-light);
pointer-events: none;
}
.inv-slot-name {
font-size: 8px;
color: var(--text-muted);
text-align: center;
line-height: 1.1;
max-width: 90%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
}
.inv-slot-stack {
position: absolute;
bottom: 2px;
right: 4px;
font-size: 9px;
font-weight: 700;
color: var(--text);
background: rgba(255,255,255,0.8);
padding: 0 3px;
border-radius: 2px;
pointer-events: none;
}
.inv-slot-ammo {
position: absolute;
top: 2px;
right: 4px;
font-size: 9px;
font-weight: 600;
color: #e67e22;
pointer-events: none;
}
.inv-slot-durability-bar {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
background: var(--border);
border-radius: 0 0 4px 4px;
pointer-events: none;
overflow: hidden;
}
.inv-slot-durability-fill {
height: 100%;
background: var(--success);
transition: width 0.2s;
pointer-events: none;
}
.inv-slot-durability-fill.medium { background: #f39c12; }
.inv-slot-durability-fill.low { background: var(--danger); }
.inv-slot-quality {
position: absolute;
top: 2px;
left: 4px;
width: 6px;
height: 6px;
border-radius: 50%;
pointer-events: none;
}
.inv-slot-empty-icon {
color: var(--text-muted);
opacity: 0.3;
font-size: 18px;
pointer-events: none;
}
/* Equipped Items Grid */
.inv-equipped-compact {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 3px;
margin-bottom: 12px;
}
.inv-equipped-compact .inv-grid-slot {
aspect-ratio: auto;
height: 48px;
min-height: unset;
border-width: 1px;
border-radius: 4px;
padding: 3px;
}
.inv-equipped-compact .inv-slot-icon {
font-size: 14px;
}
.inv-equipped-compact .inv-slot-name {
font-size: 6px;
}
.inv-equipped-badge {
font-size: 6px;
text-transform: uppercase;
letter-spacing: 0.2px;
color: var(--text-muted);
font-weight: 600;
line-height: 1;
margin-bottom: 1px;
pointer-events: none;
}
/* Hotbar */
.inv-hotbar {
display: grid;
grid-template-columns: repeat(10, 1fr);
gap: 3px;
margin-bottom: 12px;
}
.inv-hotbar-slot {
aspect-ratio: auto;
height: 44px;
border: 1px solid var(--border);
border-radius: 4px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
position: relative;
transition: all 0.15s;
background: var(--card-bg);
overflow: hidden;
}
.inv-hotbar-slot:hover {
border-color: var(--primary);
background: var(--hover);
}
.inv-hotbar-slot.has-item {
border-color: var(--border);
border-style: solid;
}
.inv-hotbar-slot .inv-slot-icon {
font-size: 14px;
line-height: 1;
margin-bottom: 1px;
color: var(--text-light);
pointer-events: none;
}
.inv-hotbar-slot .inv-slot-name {
font-size: 6px;
color: var(--text-muted);
text-align: center;
line-height: 1.1;
max-width: 95%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
}
.inv-hotbar-slot .inv-slot-stack {
position: absolute;
bottom: 1px;
right: 2px;
font-size: 7px;
font-weight: 700;
color: var(--text);
background: rgba(255,255,255,0.8);
padding: 0 2px;
border-radius: 2px;
pointer-events: none;
}
.inv-hotbar-slot .inv-slot-empty-icon {
color: var(--text-muted);
opacity: 0.3;
font-size: 14px;
pointer-events: none;
}
/* Experimental Warning Banner */
.experimental-banner {
background: rgba(220, 38, 38, 0.12);
border: 1px solid rgba(220, 38, 38, 0.5);
border-left: 4px solid #dc2626;
border-radius: 6px;
padding: 10px 14px;
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 13px;
line-height: 1.5;
color: var(--text);
margin: 0 16px 12px;
}
.experimental-banner .banner-icon {
font-size: 18px;
flex-shrink: 0;
}
.experimental-banner strong {
color: #ef4444;
}
/* Key Items Grid */
.inv-key-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 3px;
margin-bottom: 12px;
}
.inv-key-grid-slot {
display: flex;
align-items: center;
gap: 5px;
padding: 4px 6px;
border: 1px solid var(--border);
border-radius: 4px;
cursor: pointer;
transition: all 0.15s;
background: var(--card-bg);
min-height: 28px;
overflow: hidden;
}
.inv-key-grid-slot:hover {
border-color: var(--primary);
background: var(--hover);
}
.inv-key-grid-slot .inv-slot-icon {
font-size: 12px;
flex-shrink: 0;
color: var(--text-light);
pointer-events: none;
}
.inv-key-grid-slot .inv-slot-name {
font-size: 10px;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
}
.inv-key-stack {
font-size: 9px;
color: var(--text-muted);
flex-shrink: 0;
font-weight: 600;
pointer-events: none;
}
/* Unknown Section */
.inv-unknown-section {
margin-top: 12px;
}
.inv-unknown-toggle {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 6px;
cursor: pointer;
font-size: 13px;
font-weight: 600;
color: var(--text);
transition: all 0.15s;
width: 100%;
}
.inv-unknown-toggle:hover {
border-color: var(--primary);
background: var(--hover);
}
.inv-unknown-toggle .arrow {
transition: transform 0.2s;
font-size: 10px;
color: var(--text-muted);
}
.inv-unknown-toggle .arrow.open {
transform: rotate(90deg);
}
.inv-unknown-content {
display: none;
margin-top: 8px;
}
.inv-unknown-content.open {
display: block;
}
.inv-unknown-sub {
margin-bottom: 12px;
}
.inv-unknown-sub-header {
font-size: 12px;
font-weight: 600;
color: var(--text-light);
margin-bottom: 6px;
padding-bottom: 4px;
border-bottom: 1px solid var(--border);
}
.inv-unknown-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 4px;
}
.inv-unknown-grid .inv-grid-slot {
min-height: 56px;
border-width: 1px;
}
/* Item Edit Modal */
.item-edit-modal .item-preview {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: var(--hover);
border-radius: 8px;
margin-bottom: 16px;
}
.item-edit-modal .item-preview .item-icon {
font-size: 32px;
color: var(--text-light);
}
.item-edit-modal .item-preview .item-info {
flex: 1;
}
.item-edit-modal .item-preview .item-name {
font-weight: 600;
font-size: 14px;
}
.item-edit-modal .item-preview .item-id {
font-size: 11px;
color: var(--text-muted);
font-family: monospace;
}
.item-edit-form .form-row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}
.item-edit-form .form-row label {
min-width: 80px;
font-size: 13px;
color: var(--text-light);
margin: 0;
}
.item-edit-form .form-row input {
flex: 1;
padding: 6px 10px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 13px;
background: var(--card-bg);
color: var(--text);
}
.item-edit-form .form-row input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(201,162,78,0.15);
}
.item-edit-actions {
display: flex;
gap: 8px;
margin-top: 16px;
}
.item-edit-actions .btn-save { flex: 1; }
.item-edit-actions .btn-cancel { flex: 1; }
.item-edit-actions .btn-danger { flex: 0 0 auto; }
/* Info box */
.info-box {
background: #eaf2f8;
border: 1px solid #d4e6f1;
color: #1a5276;
padding: 16px 20px;
border-radius: 8px;
font-size: 14px;
margin-bottom: 20px;
}
.info-box code {
background: rgba(0,0,0,0.06);
padding: 2px 6px;
border-radius: 3px;
}
/* Resource charts */
.chart-panel .chart-hint {
font-size: 11px;
color: var(--text-muted);
font-weight: 400;
}
.chart-panel-body {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.chart-box {
position: relative;
height: 140px;
}
.chart-box canvas {
width: 100% !important;
height: 100% !important;
}
@media (max-width: 600px) {
.chart-panel-body {
grid-template-columns: 1fr;
}
.chart-box { height: 120px; }
}
/* Empty state */
.empty {
text-align: center;
padding: 40px 20px;
color: var(--text-muted);
font-size: 14px;
}
/* Bar chart */
.faction-bar {
display: flex;
align-items: center;
gap: 8px;
margin: 4px 0;
font-size: 13px;
}
.faction-bar .bar-bg {
flex: 1;
height: 24px;
background: #e8e4dc;
border-radius: 4px;
overflow: hidden;
position: relative;
}
.faction-bar .bar-fill {
height: 100%;
border-radius: 4px;
transition: width 0.3s;
min-width: 2px;
}
.faction-bar .bar-fill.atreides { background: #1a5276; }
.faction-bar .bar-fill.harkonnen { background: #7b241c; }
.faction-bar .bar-fill.smuggler { background: #7d6608; }
.faction-bar .bar-fill.none { background: #566573; }
.faction-bar .bar-fill.neutral { background: #566573; }
.faction-bar .bar-label {
min-width: 100px;
white-space: nowrap;
}
.faction-bar .bar-count {
min-width: 40px;
text-align: right;
font-weight: 600;
}
/* Responsive */
@media (max-width: 768px) {
.container { padding: 16px; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.guild-grid { grid-template-columns: 1fr; }
nav .brand { font-size: 13px; margin-right: 12px; }
nav a { padding: 0 8px; font-size: 12px; }
.filters { flex-direction: column; align-items: stretch; }
.filters input, .filters select { min-width: auto; }
}
/* Edit Buttons */
.btn-edit {
background: var(--primary);
color: #fff;
border: none;
border-radius: 4px;
padding: 4px 10px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
margin-left: 8px;
}
.btn-edit:hover { background: var(--primary-dark); }
.btn-save {
background: var(--success);
color: #fff;
border: none;
border-radius: 4px;
padding: 8px 16px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.btn-save:hover { background: #219a52; }
.btn-cancel {
background: var(--text-muted);
color: #fff;
border: none;
border-radius: 4px;
padding: 8px 16px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.btn-cancel:hover { background: #7a6b5b; }
.btn-danger {
background: var(--danger);
color: #fff;
border: none;
border-radius: 3px;
padding: 2px 6px;
font-size: 11px;
cursor: pointer;
}
.btn-danger:hover { background: #a93226; }
/* Modal */
.modal-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 200;
}
.modal {
background: var(--card-bg);
border-radius: 12px;
padding: 24px;
box-shadow: 0 8px 32px rgba(0,0,0,0.3);
max-width: 400px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
}
.modal-wide {
max-width: 900px;
width: 95%;
}
.modal h3 {
margin: 0 0 16px 0;
font-size: 18px;
color: var(--text);
}
.modal label {
display: block;
margin-bottom: 12px;
font-size: 14px;
color: var(--text);
}
.modal label input, .modal label select {
display: block;
margin-top: 4px;
padding: 6px 10px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 14px;
width: 100%;
}
.modal-actions {
margin-top: 16px;
display: flex;
gap: 8px;
justify-content: flex-end;
}
/* Chat Logs */
.chat-msg {
padding: 8px 12px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: baseline;
gap: 8px;
font-size: 14px;
flex-wrap: wrap;
}
.chat-msg:last-child {
border-bottom: none;
}
.chat-msg:hover {
background: var(--hover);
}
.chat-time {
font-size: 12px;
color: var(--text-muted);
font-family: monospace;
white-space: nowrap;
}
.chat-channel {
font-weight: 600;
font-size: 12px;
white-space: nowrap;
}
.chat-sender {
font-weight: 600;
color: var(--text);
white-space: nowrap;
}
.chat-text {
color: var(--text);
flex: 1;
min-width: 200px;
}
.chat-coords {
font-size: 11px;
color: var(--text-muted);
font-family: monospace;
white-space: nowrap;
}
/* Nav Layout Toggle */
.nav-toggle {
position: fixed;
top: 56px;
left: 6px;
z-index: 101;
background: var(--nav-bg);
color: var(--nav-text);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 4px;
padding: 3px 7px;
font-size: 15px;
cursor: pointer;
line-height: 1;
opacity: 0.5;
transition: opacity 0.15s;
}
.nav-toggle:hover { opacity: 1; color: #fff; }
/* Vertical sidebar layout */
body[data-nav-layout="vertical"] {
padding-left: 216px;
}
body[data-nav-layout="vertical"] .nav-toggle {
left: 204px;
top: 6px;
}
body[data-nav-layout="vertical"] nav {
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: 200px;
flex-direction: column;
height: 100vh;
padding: 0;
align-items: stretch;
box-shadow: 1px 0 4px rgba(0,0,0,0.2);
}
body[data-nav-layout="vertical"] nav .brand {
padding: 20px 16px 12px;
margin-right: 0;
font-size: 13px;
text-align: center;
border-bottom: 1px solid rgba(255,255,255,0.08);
}
body[data-nav-layout="vertical"] nav a {
padding: 10px 16px;
height: auto;
border-bottom: none;
border-left: 3px solid transparent;
font-size: 12px;
}
body[data-nav-layout="vertical"] nav a:hover {
background: rgba(255,255,255,0.05);
}
body[data-nav-layout="vertical"] nav a.active {
border-bottom-color: transparent;
border-left-color: var(--nav-active);
}
body[data-nav-layout="vertical"] nav .spacer {
display: none;
}
body[data-nav-layout="vertical"] nav .theme-dropdown {
padding: 8px 16px;
border-top: 1px solid rgba(255,255,255,0.08);
}
body[data-nav-layout="vertical"] nav .theme-dropdown .theme-dropdown-content {
bottom: 100%;
top: auto;
left: 0;
right: auto;
margin-bottom: 4px;
}
body[data-nav-layout="vertical"] nav .theme-dropdown .theme-btn {
width: 100%;
justify-content: center;
}
body[data-nav-layout="vertical"] nav .nav-conn,
body[data-nav-layout="vertical"] nav .nav-logout {
padding: 10px 16px;
justify-content: center;
border-top: 1px solid rgba(255,255,255,0.08);
}
body[data-nav-layout="vertical"] .container {
max-width: none;
padding: 24px;
}
body[data-nav-layout="vertical"] .site-footer {
margin-left: 216px;
}
/* Update widget: lives in the nav next to the theme button, styled like
the theme dropdown (nav-bg surface, nav-text tones) in every theme. */
.nav-tools { display: flex; align-items: center; gap: 2px; }
.update-banner { display: none; position: relative; }
.update-banner .ub-bellwrap { position: relative; display: inline-block; }
.update-banner .ub-dot {
position: absolute; top: 2px; right: 6px; width: 8px; height: 8px;
border-radius: 50%; background: var(--warn);
}
.update-banner .ub-panel {
position: absolute;
top: calc(100% + 8px);
right: 0;
width: 320px;
max-width: calc(100vw - 32px);
max-height: 70vh;
overflow-y: auto;
background: var(--nav-bg);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
z-index: 1000;
padding: 12px;
font-size: 12px;
line-height: 1.5;
color: var(--nav-text);
}
.update-banner .ub-title { font-weight: 700; margin-bottom: 2px; color: #fff; }
.update-banner .ub-sub { color: var(--nav-text); opacity: 0.75; font-size: 11px; margin-bottom: 6px; }
.update-banner .ub-preview-tag {
font-size: 10px; font-weight: 700; color: #fff; background: var(--warn);
border-radius: 8px; padding: 0 6px; margin-left: 4px;
}
.update-banner .ub-notes { margin: 4px 0 6px; }
.update-banner .ub-notes summary { cursor: pointer; font-size: 11px; color: var(--nav-text); opacity: 0.75; }
.update-banner .ub-notes pre {
white-space: pre-wrap; font-size: 11px; max-height: 160px; overflow-y: auto;
background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
border-radius: 6px; padding: 8px; margin-top: 4px; color: var(--nav-text);
}
.update-banner .ub-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.update-banner .ub-actions button {
padding: 4px 12px; font-size: 12px; cursor: pointer;
background: var(--primary); color: #fff; border: none; border-radius: 4px;
}
.update-banner .ub-actions button.ub-ghost {
background: transparent; color: var(--nav-text);
border: 1px solid rgba(255,255,255,0.25);
}
.update-banner .ub-mute { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--nav-text); opacity: 0.75; cursor: pointer; }
.update-banner .ub-status { font-size: 11px; color: var(--nav-text); opacity: 0.75; margin-top: 4px; }
.update-banner .ub-panel-head { font-weight: 700; margin-bottom: 6px; color: #fff; cursor: pointer; }
.update-banner .ub-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 12px; }
.update-banner .ub-row select {
padding: 4px 8px; font-size: 12px; color: var(--nav-text);
background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px;
}
.update-banner .ub-row button {
padding: 4px 12px; font-size: 12px; cursor: pointer;
background: transparent; color: var(--nav-text);
border: 1px solid rgba(255,255,255,0.25); border-radius: 4px;
}
#ub-overlay {
position: fixed; inset: 0; z-index: 2000;
background: rgba(0,0,0,0.6);
display: flex; align-items: center; justify-content: center; padding: 24px;
}
#ub-overlay .ub-overlay-box {
max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto;
background: var(--card-bg); color: var(--text);
border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px;
}
#ub-overlay .ub-overlay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#ub-overlay .ub-overlay-head button {
padding: 4px 14px; font-size: 12px; cursor: pointer;
background: var(--primary); color: #fff; border: none; border-radius: 4px;
}
#ub-overlay pre { white-space: pre-wrap; font-size: 12px; }
/* Vertical sidebar: tools row sits with the theme button; panel pops upward
like the theme dropdown content does. */
body[data-nav-layout="vertical"] .nav-tools {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 16px;
border-top: 1px solid rgba(255,255,255,0.08);
}
body[data-nav-layout="vertical"] .nav-tools .theme-dropdown {
padding: 0;
border-top: none;
}
body[data-nav-layout="vertical"] .nav-tools .theme-btn {
width: auto;
}
body[data-nav-layout="vertical"] .update-banner .ub-panel {
top: auto;
bottom: calc(100% + 8px);
left: 0;
right: auto;
}
@media (max-width: 768px) {
body[data-nav-layout="vertical"] {
padding-left: 0;
}
body[data-nav-layout="vertical"] .nav-toggle {
top: 8px;
left: 8px;
}
body[data-nav-layout="vertical"] nav {
display: none;
}
body[data-nav-layout="vertical"] nav.nav-open {
display: flex;
}
body[data-nav-layout="vertical"] .container {
padding: 24px;
}
body[data-nav-layout="vertical"] .site-footer {
margin-left: 0;
}
}
/* Native dropdowns: readable closed box in every theme. Several templates
reference background vars that were never defined, so be explicit here.
The color-scheme lines make the browser render the native options popup
to match (otherwise it pops up white while inheriting light text). */
select {
background-color: var(--card-bg);
color: var(--text);
border-color: var(--border);
}
[data-theme$="-dark"] select {
color-scheme: dark;
}
/* Explicit option colors: some browsers ignore color-scheme for the
native popup, so paint the rows directly (light text on card bg). */
[data-theme$="-dark"] select option {
background-color: var(--card-bg);
color: var(--text);
}
[data-theme]:not([data-theme$="-dark"]) select {
color-scheme: light;
}
/* Theme dropdown: invisible hover bridge so moving the mouse from the
button down to the menu never drops hover (no more racing the cursor). */
.theme-dropdown::after {
content: '';
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
height: 14px;
}
.theme-dropdown:hover::after {
display: block;
}
body[data-nav-layout="vertical"] .theme-dropdown::after {
top: auto;
bottom: 100%;
}