289 lines
5.3 KiB
CSS
289 lines
5.3 KiB
CSS
/* ==========================================================================
|
|
MOBILE BOTTOM NAVIGATION & RESPONSIVE RULES
|
|
========================================================================== */
|
|
|
|
#mobile-bottom-nav {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 60px;
|
|
background: var(--bg-header);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border-top: 1px solid var(--border-color);
|
|
box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.04);
|
|
z-index: 100;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-tab {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 3px;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
flex: 1;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.nav-tab iconify-icon {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.nav-tab.active {
|
|
color: var(--primary-blue);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Responsive Breakpoints */
|
|
@media (max-width: 1023px) {
|
|
#desktop-nav-sidebar {
|
|
display: none;
|
|
}
|
|
|
|
#desktop-inspector-panel {
|
|
display: none;
|
|
}
|
|
|
|
#mobile-bottom-nav {
|
|
display: flex;
|
|
}
|
|
|
|
#workspace-layout {
|
|
padding-bottom: 80px;
|
|
}
|
|
|
|
.production-grid, .contracts-grid, .perks-grid, .achievements-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.header-nav-group {
|
|
display: none;
|
|
}
|
|
|
|
#financial-hud {
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.executive-fin-hub {
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
#header-sector-container {
|
|
order: 3;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
/* Cramped / Mobile viewport: Hide sector pill numbers so only icons are displayed */
|
|
@media (max-width: 640px) {
|
|
.sector-pill .sector-pill-rate {
|
|
display: none !important;
|
|
}
|
|
|
|
.sector-pill {
|
|
padding: 8px 4px;
|
|
gap: 0;
|
|
}
|
|
|
|
.sector-pill iconify-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
}
|
|
|
|
|
|
/* ==========================================================================
|
|
TOASTS & MODALS
|
|
========================================================================== */
|
|
|
|
#toast-container {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@media (max-width: 1023px) {
|
|
#toast-container {
|
|
bottom: 74px;
|
|
left: 20px;
|
|
right: 20px;
|
|
}
|
|
}
|
|
|
|
.toast-msg {
|
|
background: #1e293b;
|
|
color: #ffffff;
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow-lg);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
animation: slideInToast 0.25s ease-out;
|
|
}
|
|
|
|
.toast-msg.toast-success {
|
|
border-left: 4px solid var(--emerald-profit);
|
|
}
|
|
|
|
.toast-msg.toast-warning {
|
|
border-left: 4px solid var(--amber-dark);
|
|
}
|
|
|
|
.toast-msg.toast-info {
|
|
border-left: 4px solid var(--primary-blue);
|
|
}
|
|
|
|
.toast-msg.fade-out {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
@keyframes slideInToast {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(15px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 200;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
}
|
|
|
|
.modal-overlay.open {
|
|
display: flex;
|
|
}
|
|
|
|
.modal-card {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
max-width: 420px;
|
|
width: 100%;
|
|
box-shadow: var(--shadow-lg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.modal-icon {
|
|
font-size: 2rem;
|
|
color: var(--primary-blue);
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.15rem;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.modal-subtitle {
|
|
font-size: 0.78rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.input-field-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.input-field-group label {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.modal-input {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
padding: 8px 12px;
|
|
font-size: 0.88rem;
|
|
font-family: var(--font-sans);
|
|
outline: none;
|
|
}
|
|
|
|
.modal-input:focus {
|
|
border-color: var(--primary-blue);
|
|
}
|
|
|
|
.modal-actions-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.modal-actions-row button {
|
|
flex: 1;
|
|
padding: 10px;
|
|
}
|
|
|
|
.btn-text-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
text-align: center;
|
|
}
|
|
|
|
.btn-text-close:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-error-box {
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
color: #b91c1c;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-body-text {
|
|
font-size: 0.88rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|