417 lines
7.2 KiB
CSS

/* Variablen */
:root {
--primary-color: #3f51b5;
--secondary-color: #283593;
--accent-color: #ff4081;
--background-color: #f5f5f5;
--card-color: #ffffff;
--text-color: #333333;
--text-light: #757575;
--border-color: #dddddd;
--success-color: #4caf50;
--warning-color: #ff9800;
--danger-color: #f44336;
--shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
--card-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
/* Grundlegende Stile */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Header */
header {
background-color: var(--primary-color);
color: white;
padding: 1rem 2rem;
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
max-width: 1400px;
margin: 0 auto;
}
h1 {
font-size: 1.8rem;
margin-bottom: 0.5rem;
}
.server-info {
display: flex;
flex-wrap: wrap;
gap: 1rem;
font-size: 0.9rem;
}
/* Navigation */
nav {
background-color: var(--secondary-color);
display: flex;
justify-content: center;
padding: 0.5rem 1rem;
overflow-x: auto;
white-space: nowrap;
position: sticky;
top: 0;
z-index: 99;
box-shadow: var(--shadow);
}
.nav-button {
background: none;
color: rgba(255, 255, 255, 0.8);
border: none;
padding: 0.75rem 1.25rem;
margin: 0 0.25rem;
cursor: pointer;
font-size: 1rem;
border-radius: 4px;
transition: all 0.3s;
}
.nav-button:hover {
color: white;
background-color: rgba(255, 255, 255, 0.1);
}
.nav-button.active {
color: white;
background-color: var(--primary-color);
font-weight: bold;
}
/* Main Content */
main {
flex: 1;
padding: 2rem;
max-width: 1400px;
margin: 0 auto;
width: 100%;
}
.panel {
display: none;
}
.panel.active {
display: block;
animation: fadeIn 0.3s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
h2 {
margin-bottom: 1.5rem;
color: var(--secondary-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 0.5rem;
}
.card-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.card {
background-color: var(--card-color);
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--card-shadow);
transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.card.full-width {
grid-column: 1 / -1;
}
h3 {
margin-bottom: 1rem;
color: var(--primary-color);
font-size: 1.2rem;
}
/* Loader */
.loader {
text-align: center;
margin: 2rem 0;
color: var(--text-light);
font-style: italic;
}
/* Fortschrittsbalken */
.progress-container {
margin-top: 1rem;
background-color: #e0e0e0;
border-radius: 4px;
height: 8px;
overflow: hidden;
}
.progress-bar {
height: 100%;
background-color: var(--primary-color);
width: 0%;
transition: width 0.5s ease-in-out;
}
/* Tool-Karten */
.tool-card {
display: flex;
flex-direction: column;
height: 100%;
}
.tool-input {
display: flex;
margin-bottom: 1rem;
gap: 0.5rem;
}
.tool-input input {
flex: 1;
padding: 0.5rem;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 1rem;
}
.tool-input button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 0.5rem 1rem;
cursor: pointer;
border-radius: 4px;
font-size: 1rem;
transition: background-color 0.3s;
}
.tool-input button:hover {
background-color: var(--secondary-color);
}
.result-box {
background-color: #f8f9fa;
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 1rem;
overflow: auto;
min-height: 150px;
max-height: 300px;
font-family: 'Consolas', 'Courier New', monospace;
font-size: 0.9rem;
flex: 1;
}
/* Tabellen */
table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
}
th, td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
th {
background-color: rgba(0, 0, 0, 0.05);
font-weight: bold;
color: var(--text-color);
}
tr:hover {
background-color: rgba(0, 0, 0, 0.02);
}
/* Status-Anzeigen */
.status {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.9rem;
font-weight: bold;
}
.status-online {
background-color: var(--success-color);
color: white;
}
.status-offline {
background-color: var(--danger-color);
color: white;
}
.status-warning {
background-color: var(--warning-color);
color: white;
}
/* Echtzeit-Monitor */
.gauge-container {
display: flex;
justify-content: center;
margin: 1rem 0;
}
.gauge {
position: relative;
width: 150px;
height: 75px;
margin: 0 auto;
}
.gauge-body {
position: relative;
width: 100%;
height: 100%;
border-top-left-radius: 100px;
border-top-right-radius: 100px;
background-color: #e0e0e0;
overflow: hidden;
}
.gauge-fill {
position: absolute;
bottom: 0;
width: 100%;
height: 0%;
background-color: var(--primary-color);
transition: height 0.5s;
}
.gauge-cover {
position: absolute;
bottom: 0;
width: 90%;
height: 90%;
margin-left: 5%;
margin-bottom: 5%;
background-color: var(--card-color);
border-top-left-radius: 80px;
border-top-right-radius: 80px;
}
.gauge-value {
position: absolute;
bottom: -25px;
width: 100%;
text-align: center;
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}
/* CPU-Cores */
.cpu-core {
margin: 0.5rem 0;
}
.cpu-core-label {
display: flex;
justify-content: space-between;
margin-bottom: 0.25rem;
}
.cpu-core-bar {
height: 6px;
background-color: #e0e0e0;
border-radius: 3px;
}
.cpu-core-fill {
height: 100%;
background-color: var(--primary-color);
border-radius: 3px;
transition: width 0.5s;
}
/* Network Chart */
canvas {
margin-top: 1rem;
width: 100%;
height: 200px;
}
/* Footer */
footer {
background-color: var(--secondary-color);
color: white;
text-align: center;
padding: 1rem;
margin-top: auto;
font-size: 0.9rem;
}
footer p {
margin: 0.25rem 0;
}
/* Responsive Design */
@media (max-width: 768px) {
header {
padding: 1rem;
}
.header-content {
flex-direction: column;
align-items: flex-start;
}
.server-info {
margin-top: 1rem;
flex-direction: column;
gap: 0.5rem;
}
main {
padding: 1rem;
}
.card-container {
grid-template-columns: 1fr;
}
.nav-button {
padding: 0.5rem 0.75rem;
font-size: 0.9rem;
}
.gauge {
width: 120px;
height: 60px;
}
}