/* ========================================
   PIRASANNA COMMAND CENTER - GLOBAL STYLES
   ======================================== */

:root {
    --bg-deepspace: #050508;
    --bg-panel: #0c0c12;
    --bg-card: #111118;
    --bg-elevated: #16161f;
    --bg-hover: #1c1c28;
    --bg-sidebar: #0a0a0f;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f0f5;
    --text-secondary: #9898a8;
    --text-muted: #606070;
    --accent-cyan: #00d4ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.15);
    --accent-green: #00ff88;
    --accent-green-dim: rgba(0, 255, 136, 0.12);
    --accent-orange: #ff8c00;
    --accent-orange-dim: rgba(255, 140, 0, 0.12);
    --accent-purple: #a855f7;
    --accent-purple-dim: rgba(168, 85, 247, 0.12);
    --accent-pink: #ff4d8d;
    --accent-pink-dim: rgba(255, 77, 141, 0.12);
    --accent-red: #ff4444;
    --accent-red-dim: rgba(255, 68, 68, 0.12);
    --accent-yellow: #ffd700;
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --topbar-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-deepspace);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.glow-1 { 
    top: -200px; 
    left: -200px; 
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
}

.glow-2 { 
    bottom: -200px; 
    right: -200px; 
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-section {
    padding: 15px 12px 5px;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--accent-green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed);
}

.top-bar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 50;
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.page-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.last-update {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.content-area {
    padding: 30px;
    min-height: calc(100vh - var(--topbar-height));
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    border-color: rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--border-medium);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-emoji {
    font-size: 1.8rem;
}

.card-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-online {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.status-configured {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}

.status-warning {
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
}

.status-error {
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

/* Info Rows */
.info-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* Code */
code, .code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-elevated);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    border: 1px solid var(--border-subtle);
}

pre {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 15px 0;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

thead {
    background: var(--bg-elevated);
}

th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--bg-hover);
}

/* Password Field */
.password-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-hidden {
    color: var(--text-muted);
    letter-spacing: 2px;
}

.password-visible {
    color: var(--accent-orange);
    font-weight: 500;
}

.toggle-pw {
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-pw:hover {
    background: var(--accent-cyan-dim);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan);
}

/* Copy Button */
.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.copy-btn:hover {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}

.copy-btn.copied {
    color: var(--accent-green);
}

/* Collapsible */
.collapsible {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.collapsible-header:hover {
    background: var(--bg-hover);
}

.collapsible-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.collapsible-arrow {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.collapsible.open .collapsible-arrow {
    transform: rotate(180deg);
}

.collapsible-content {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-subtle);
}

.collapsible.open .collapsible-content {
    display: block;
}

/* Alert Boxes */
.alert {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-danger {
    background: var(--accent-red-dim);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.alert-warning {
    background: var(--accent-orange-dim);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.alert-info {
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.alert-success {
    background: var(--accent-green-dim);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.alert-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.alert-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tags */
.tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 2px;
}

.tag-cyan { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.tag-green { background: var(--accent-green-dim); color: var(--accent-green); }
.tag-orange { background: var(--accent-orange-dim); color: var(--accent-orange); }
.tag-purple { background: var(--accent-purple-dim); color: var(--accent-purple); }
.tag-pink { background: var(--accent-pink-dim); color: var(--accent-pink); }

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quick Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.cyan { background: var(--accent-cyan-dim); }
.stat-icon.green { background: var(--accent-green-dim); }
.stat-icon.orange { background: var(--accent-orange-dim); }
.stat-icon.purple { background: var(--accent-purple-dim); }

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.section-icon.cyan { background: var(--accent-cyan-dim); }
.section-icon.green { background: var(--accent-green-dim); }
.section-icon.orange { background: var(--accent-orange-dim); }
.section-icon.purple { background: var(--accent-purple-dim); }
.section-icon.pink { background: var(--accent-pink-dim); }

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }
    
    .sidebar .nav-text,
    .sidebar .nav-section-title,
    .sidebar .logo-text {
        display: none;
    }
    
    .main-content {
        margin-left: var(--sidebar-collapsed);
    }
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.open ~ .mobile-overlay {
        display: block;
    }
    
    .sidebar.open .nav-text,
    .sidebar.open .nav-section-title,
    .sidebar.open .logo-text {
        display: inline;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        padding: 0 15px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Quick Links Grid */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
}

.quick-link-icon {
    font-size: 1.5rem;
}

.quick-link-text {
    font-weight: 500;
}

/* Service Cards */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.service-icon {
    font-size: 2rem;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.service-port {
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.service-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-status.running {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
}

.service-link:hover {
    text-decoration: underline;
}
```css
/* ===== CODE EDITOR ===== */
.code-editor {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.code-editor::before {
  content: '// KI-Fabrik Code Editor';
  display: block;
  padding: 12px 16px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #334155;
}

.code-editor .line-numbers {
  position: absolute;
  left: 0;
  top: 45px;
  bottom: 0;
  width: 40px;
  background: #0f172a;
  color: #64748b;
  text-align: right;
  padding: 8px 4px;
  border-right: 1px solid #334155;
}

.code-editor .code-content {
  margin-left: 40px;
  padding: 8px 16px;
  white-space: pre;
  overflow-x: auto;
}

/* Syntax Highlighting Platzhalter */
.code-editor .keyword { color: #f472b6; }
.code-editor .string { color: #22c55e; }
.code-editor .comment { color: #64748b; font-style: italic; }
.code-editor .function { color: #6366f1; }
.code-editor .number { color: #f59e0b; }

/* ===== KANBAN BOARD ===== */
.kanban-board {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  overflow-x: auto;
  min-height: 500px;
}

.kanban-column {
  flex: 0 0 280px;
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  max-height: 600px;
}

.kanban-column-header {
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #475569;
}

.kanban-column-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.kanban-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: move;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-color: #6366f1;
}

.kanban-card-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.kanban-card-description {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}

.kanban-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.kanban-card-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
}

/* ===== TERMINAL ===== */
.terminal-window {
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Monaco', 'Menlo', monospace;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.terminal-header {
  background: #1e293b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #334155;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.close { background: #ef4444; }
.terminal-dot.minimize { background: #f59e0b; }
.terminal-dot.maximize { background: #22c55e; }

.terminal-title {
  color: #94a3b8;
  font-size: 14px;
  margin-left: auto;
}

.terminal-output {
  padding: 16px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.terminal-output .prompt {
  color: #6366f1;
  margin-right: 8px;
}

.terminal-output .command { color: #22c55e; }
.terminal-output .error { color: #ef4444; }
.terminal-output .info { color: #60a5fa; }

.terminal-input-line {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.terminal-input-prompt {
  color: #6366f1;
  margin-right: 8px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  animation: slideIn 0.3s ease;
  z-index: 1000;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-notification.info {
  background: #6366f1;
  color: white;
  border-left: 4px solid #4f46e5;
}

.toast-notification.success {
  background: #22c55e;
  color: white;
  border-left: 4px solid #16a34a;
}

.toast-notification.warning {
  background: #f59e0b;
  color: white;
  border-left: 4px solid #d97706;
}

.toast-notification.error {
  background: #ef4444;
  color: white;
  border-left: 4px solid #dc2626;
}

.toast-icon {
  font-size: 20px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 14px;
  opacity: 0.9;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden
/* === SIDEBAR SCROLLING FIX === */
.sidebar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 100vh !important;
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #1a1a2e;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

.nav-section {
    flex-shrink: 0;
}

/* FIX: Sidebar Scrolling */
.sidebar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 100vh !important;
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #1a1a2e;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

.nav-section {
    flex-shrink: 0;
}

/* === SIDEBAR NAVIGATION SCROLLING FIX === */
.sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.sidebar-header {
    flex-shrink: 0 !important;
}

.sidebar-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
}

/* Alle nav-sections scrollbar machen */
.sidebar > .nav-section,
.sidebar .nav-sections-wrapper {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #1a1a2e;
}

/* Wrapper für alle nav-sections */
.sidebar-nav-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #1a1a2e;
}

.sidebar-nav-wrapper::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav-wrapper::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.sidebar-nav-wrapper::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 3px;
}

/* === ENDGÜLTIGER SIDEBAR SCROLL FIX === */
.sidebar-nav-wrapper {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;  /* WICHTIG für flex overflow */
    max-height: calc(100vh - 80px) !important;
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #1a1a2e;
}

.sidebar-nav-wrapper::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav-wrapper::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.sidebar-nav-wrapper::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

.sidebar-nav-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Sidebar muss flex container sein mit height limit */
.sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.sidebar-header {
    flex: 0 0 auto !important;
}
