35512-vm/assets/css/custom.css
Flatlogic Bot 53eb27812c v1.1
2025-11-05 22:08:13 +00:00

125 lines
2.5 KiB
CSS

/* General Styles */
:root {
--primary-color: #4A90E2;
--secondary-color: #50E3C2;
--light-bg: #F7F9FC;
--light-surface: #FFFFFF;
--light-text: #333333;
--dark-bg: #121212;
--dark-surface: #1E1E1E;
--dark-text: #E0E0E0;
--border-radius: 8px;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
transition: background-color 0.3s, color 0.3s;
}
/* Light Mode */
body {
background-color: var(--light-bg);
color: var(--light-text);
}
/* Dark Mode */
body.dark-mode {
background-color: var(--dark-bg);
color: var(--dark-text);
}
.surface {
background-color: var(--light-surface);
border-radius: var(--border-radius);
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: background-color 0.3s;
}
body.dark-mode .surface {
background-color: var(--dark-surface);
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
/* Layout */
.wrapper {
display: flex;
min-height: 100vh;
}
#sidebar {
width: 250px;
background-color: var(--light-surface);
transition: background-color 0.3s;
padding: 20px;
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
body.dark-mode #sidebar {
background-color: var(--dark-surface);
box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}
#content {
flex-grow: 1;
padding: 2rem;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
/* Theme Switcher */
.theme-switcher {
cursor: pointer;
}
/* Asset Table */
.asset-table {
width: 100%;
border-collapse: collapse;
}
.asset-table th, .asset-table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #ddd;
}
body.dark-mode .asset-table th, body.dark-mode .asset-table td {
border-bottom: 1px solid #444;
}
.asset-table th {
background-color: var(--light-bg);
}
body.dark-mode .asset-table th {
background-color: var(--dark-bg);
}
.status {
padding: 5px 10px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: bold;
}
.status-in-service { background-color: #d4edda; color: #155724; }
.status-under-repair { background-color: #fff3cd; color: #856404; }
.status-retired { background-color: #f8d7da; color: #721c24; }
/* Sidebar */
#sidebar .nav-link {
color: var(--light-text);
}
body.dark-mode #sidebar .nav-link {
color: var(--dark-text);
}
#sidebar .nav-link.active {
color: var(--primary-color);
font-weight: bold;
}