34935-vm/assets/css/dashboard.css
2025-10-17 01:31:35 +00:00

358 lines
6.0 KiB
CSS

:root {
--primary-bg: #1a1d21;
--secondary-bg: #2a2d31;
--primary-text: #f0f0f0;
--secondary-text: #a0a0a0;
--accent-color: #00aaff;
--border-color: #3a3d41;
}
body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
background-color: var(--primary-bg);
color: var(--primary-text);
overflow: hidden;
}
#app-container {
display: flex;
height: 100vh;
}
#sidebar {
width: 320px;
background-color: var(--primary-bg);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
padding: 1.5rem;
box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}
#app-header h1 {
font-size: 1.5rem;
font-weight: 700;
margin: 0 0 2rem 0;
}
#app-nav {
overflow-y: auto;
}
.control-group {
margin-bottom: 2rem;
border-top: 1px solid var(--border-color);
padding-top: 1.5rem;
}
.control-group:first-child {
border-top: none;
padding-top: 0;
}
.control-group h3 {
font-size: 1rem;
font-weight: 600;
margin: 0 0 1rem 0;
color: var(--accent-color);
}
.control-group label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
cursor: pointer;
}
#main-content {
flex: 1;
position: relative;
}
#cesiumContainer {
width: 100%;
height: 100%;
}
/* Facility Portfolio */
#facility-list-container {
max-height: 200px;
overflow-y: auto;
margin-bottom: 1rem;
}
#facility-list {
list-style: none;
padding: 0;
margin: 0;
}
#facility-list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem;
border-radius: 4px;
margin-bottom: 0.5rem;
background-color: var(--secondary-bg);
}
#facility-list .delete-facility-btn {
background: none;
border: none;
color: #ff4d4d;
cursor: pointer;
font-size: 1rem;
}
#add-facility-form input {
width: calc(100% - 1rem);
padding: 0.5rem;
margin-bottom: 0.5rem;
background-color: var(--secondary-bg);
border: 1px solid var(--border-color);
color: var(--primary-text);
border-radius: 4px;
}
#add-facility-form button {
width: 100%;
padding: 0.75rem;
background-color: var(--accent-color);
border: none;
color: white;
font-weight: 600;
border-radius: 4px;
cursor: pointer;
}
#add-facility-form small {
display: block;
text-align: center;
margin-top: 0.5rem;
color: var(--secondary-text);
}
/* Modal */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
align-items: center;
justify-content: center;
}
.modal-content {
background-color: var(--secondary-bg);
padding: 2rem;
border-radius: 8px;
width: 80%;
max-width: 800px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-button {
color: var(--secondary-text);
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
/* New styles for hamburger menu and layout */
#top-bar {
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
align-items: center;
padding: 1rem;
background: linear-gradient(to bottom, rgba(26, 29, 33, 0.7), transparent);
z-index: 100;
}
#hamburger-menu {
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
margin-right: 1rem;
}
#hamburger-menu span {
display: block;
width: 24px;
height: 3px;
background-color: var(--primary-text);
margin: 4px 0;
transition: all 0.3s;
}
#top-header h2 {
margin: 0;
font-size: 1.2rem;
font-weight: 600;
}
#sidebar.sidebar-hidden {
transform: translateX(-100%);
}
#main-content.sidebar-hidden {
margin-left: 0;
}
#sidebar {
transition: transform 0.3s ease-in-out;
z-index: 200;
position: absolute;
left: 0;
top: 0;
height: 100%;
}
#main-content {
transition: margin-left 0.3s ease-in-out;
margin-left: 320px;
}
/* New Nav Bars */
.top-nav, .bottom-nav {
display: flex;
align-items: center;
background-color: var(--secondary-bg);
padding: 0 1rem;
height: 50px;
z-index: 99;
}
.top-nav {
flex-grow: 1;
margin-left: 2rem;
}
.bottom-nav {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
border-top: 1px solid var(--border-color);
}
.nav-item {
color: var(--primary-text);
text-decoration: none;
padding: 0 1rem;
font-size: 0.9rem;
font-weight: 500;
transition: color 0.2s;
}
.nav-item:hover {
color: var(--accent-color);
}
.bottom-nav .nav-item:last-child {
margin-left: auto;
color: var(--secondary-text);
}
#dashboard-content {
padding: 2rem;
}
.table {
width: 100%;
border-collapse: collapse;
margin-top: 2rem;
}
.table th, .table td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
.table th {
background-color: var(--secondary-bg);
font-weight: 600;
}
.table tbody tr:nth-child(even) {
background-color: var(--secondary-bg);
}
.risk-high {
color: #ff4d4d;
font-weight: 700;
}
.risk-medium {
color: #ffb347;
font-weight: 700;
}
.risk-low {
color: #fdfd96;
}
.risk-very-low {
color: #a4d0a4;
}
#cesiumContainer {
height: calc(100vh - 100px);
}
#top-bar {
background: var(--secondary-bg);
border-bottom: 1px solid var(--border-color);
padding: 0 1rem;
height: 50px;
}
#top-header {
display: none; /* Replaced by top-nav */
}
#settings-form .form-group {
margin-bottom: 1rem;
}
#settings-form label {
display: block;
margin-bottom: 0.5rem;
}
#settings-form input,
#settings-form select {
width: 100%;
padding: 0.5rem;
border-radius: 4px;
border: 1px solid var(--border-color);
background-color: var(--secondary-bg);
color: var(--primary-text);
}
#settings-form button {
padding: 0.75rem 1.5rem;
background-color: var(--accent-color);
border: none;
color: white;
font-weight: 600;
border-radius: 4px;
cursor: pointer;
}