Files
dune-dashboard/static/style.css
T

1159 lines
22 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; }
.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: #f8f6f2;
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 > * {
pointer-events: none !important;
}
.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;
pointer-events: auto !important;
}
.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.has-item > * {
pointer-events: none !important;
}
.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 > * {
pointer-events: none !important;
}
.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;
}
/* 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 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;
}