358 lines
No EOL
7.4 KiB
CSS
358 lines
No EOL
7.4 KiB
CSS
/*
|
|
* PowerOn | Multi-Agent Service - Navigation CSS
|
|
* Optimierte Styles für die Navigationskomponenten
|
|
*/
|
|
|
|
/* ===== NAVIGATION COMPONENTS ===== */
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 250px;
|
|
background-color: #2c3e50; /* Dunklerer Hintergrund für besseren Kontrast */
|
|
color: #ecf0f1; /* Hellere Textfarbe für bessere Lesbarkeit */
|
|
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
|
|
padding: 0; /* Padding entfernen, um konsistentere Struktur zu haben */
|
|
flex-shrink: 0;
|
|
font-size: 0.875rem;
|
|
height: 100vh; /* Volle Höhe */
|
|
overflow-y: auto; /* Scrollbar bei Bedarf */
|
|
}
|
|
|
|
/* Sidebar-Header verbessern */
|
|
.sidebar-header {
|
|
padding: 1.5rem 1rem;
|
|
margin-bottom: 0;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
background-color: #1a2530; /* Noch dunklerer Hintergrund für Header */
|
|
}
|
|
|
|
.sidebar-header h2 {
|
|
color: #3498db; /* Markenfarbe für Haupttitel */
|
|
margin-bottom: 1rem;
|
|
font-size: 1.4rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Current Workspace styling */
|
|
.sidebar .current-workspace {
|
|
padding: 0.75rem 1rem;
|
|
margin: 0;
|
|
font-weight: 500;
|
|
color: white;
|
|
background-color: rgba(52, 152, 219, 0.2); /* Leicht blaues Highlight */
|
|
border-radius: 0;
|
|
border-left: 4px solid #3498db; /* Seitlicher Akzent */
|
|
}
|
|
|
|
/* Current User styling */
|
|
.sidebar .current-user {
|
|
padding: 0.5rem 1rem;
|
|
color: #bdc3c7;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Navigation Container verbessern */
|
|
.navigation-container {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Hauptnavigation */
|
|
#main-navigation {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Navigationsitems einheitlicher gestalten */
|
|
.nav-item {
|
|
border-left: 4px solid transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-item a {
|
|
padding: 0.75rem 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
color: #ecf0f1;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
border-left-color: rgba(52, 152, 219, 0.5);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background-color: rgba(52, 152, 219, 0.2);
|
|
border-left-color: #3498db;
|
|
}
|
|
|
|
.nav-item i {
|
|
width: 20px;
|
|
margin-right: 10px;
|
|
text-align: center;
|
|
color: #3498db; /* Icons in Markenfarbe */
|
|
}
|
|
|
|
/* Dropdown und Collapse Pfeile */
|
|
.fa-chevron-down, .fa-caret-down {
|
|
transition: transform 0.3s ease;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.collapsed .fa-chevron-down {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
/* Untermenüpunkte besser einrücken */
|
|
.nav-item[data-level="1"] {
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.nav-item[data-level="2"] {
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Workspace wählen, Administration, etc. */
|
|
.nav-action-btn {
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 0.75rem 1rem;
|
|
color: #ecf0f1;
|
|
display: flex;
|
|
align-items: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-action-btn:hover {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.nav-action-btn i {
|
|
width: 20px;
|
|
margin-right: 10px;
|
|
text-align: center;
|
|
color: #3498db;
|
|
}
|
|
|
|
/* Bereichs-Überschriften in der Sidebar */
|
|
.nav-section-header {
|
|
padding: 0.75rem 1rem;
|
|
margin-top: 1rem;
|
|
color: #3498db;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
letter-spacing: 1px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
/* Spezial-Styling für Verwaltungsbereich */
|
|
[data-module="verwaltung"] > a,
|
|
[data-module="administration"] > a {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
[data-module="verwaltung"] > a i,
|
|
[data-module="administration"] > a i {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
/* Einstellungen am Ende der Seitenleiste */
|
|
[data-module="einstellungen"] {
|
|
margin-top: auto; /* Push to bottom */
|
|
}
|
|
|
|
/* Hover-Effekte und Fokus-Zustände für bessere Interaktivität */
|
|
.nav-item a:focus,
|
|
.nav-action-btn:focus {
|
|
outline: none;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Workspace-Liste und Items */
|
|
.workspace-list {
|
|
margin-bottom: 1rem;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.workspace-item, .sidebar-item {
|
|
padding: 0.5rem 1rem;
|
|
margin-bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
color: #ecf0f1;
|
|
transition: all 0.2s ease;
|
|
border-left: 4px solid transparent;
|
|
}
|
|
|
|
.workspace-item i, .sidebar-item i {
|
|
margin-right: 0.5rem;
|
|
width: 1rem;
|
|
color: #3498db;
|
|
}
|
|
|
|
.workspace-item:hover, .sidebar-item:hover {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
border-left-color: rgba(52, 152, 219, 0.5);
|
|
}
|
|
|
|
.workspace-item.active, .sidebar-item.active {
|
|
background-color: rgba(52, 152, 219, 0.2);
|
|
border-left-color: #3498db;
|
|
}
|
|
|
|
.sidebar-item a {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 0.5rem 0;
|
|
color: #ecf0f1;
|
|
}
|
|
|
|
/* Workspace-Dropdown stylen */
|
|
.workspace-dropdown {
|
|
background-color: #1a2530;
|
|
border-radius: 0;
|
|
border: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.workspace-selector-header {
|
|
padding: 0.75rem 1rem;
|
|
color: #ecf0f1;
|
|
display: flex;
|
|
align-items: start;
|
|
justify-content: start;
|
|
}
|
|
|
|
.workspace-selector-header i.fa-chevron-down {
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Admin Navigation */
|
|
.admin-nav {
|
|
margin-top: 1rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.admin-nav h3 {
|
|
padding: 0.5rem 1rem;
|
|
color: #e74c3c;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.admin-nav-items {
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* Top Navigation */
|
|
.top-nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 1rem;
|
|
background-color: #fff;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
margin-bottom: 0.75rem;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.current-workspace {
|
|
font-weight: 600;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.user-menu {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.top-nav-items {
|
|
display: flex;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.top-nav-item {
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
/* Dropdown-Menü Styles */
|
|
.dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.dropdown-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.5rem;
|
|
cursor: pointer;
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.dropdown-toggle i {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.dropdown-toggle .fa-caret-down {
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.dropdown-content {
|
|
display: none;
|
|
position: absolute;
|
|
right: 0;
|
|
background-color: #f9f9f9;
|
|
min-width: 160px;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
z-index: 1000;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.dropdown-content a {
|
|
color: #333;
|
|
padding: 12px 16px;
|
|
text-decoration: none;
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.dropdown-content a:hover {
|
|
background-color: #f1f1f1;
|
|
}
|
|
|
|
/* Logout-Button */
|
|
.logout-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.375rem 0.75rem;
|
|
background-color: rgba(231, 76, 60, 0.8);
|
|
color: white;
|
|
border-radius: 0.25rem;
|
|
font-size: 0.875rem;
|
|
transition: background-color 0.2s;
|
|
margin-top: 1rem;
|
|
margin-left: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background-color: rgba(231, 76, 60, 1);
|
|
}
|
|
|
|
.logout-btn i {
|
|
margin-right: 0.5rem;
|
|
} |