/* ================================================================
   DASHBOARD.CSS - KOMPLETTE STRUKTUR (KEINE FARBEN)
   ================================================================ */

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    margin: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

/* ===== MAIN CONTENT ===== */

/* ================================================================
   HEADER
   ================================================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    min-height: 70px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-header-left h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

.page-header-left p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ================================================================
   EDIT MODUS BUTTONS
   ================================================================ */

#editModeButtons {
    display: none;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

#editModeButtons .btn-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-hover);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#editModeButtons .btn-group .btn-sm {
    padding: 6px 14px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    min-width: 70px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

#editModeButtons .btn-group .btn-primary.btn-sm {
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    box-shadow: var(--btn-primary-shadow) !important;
}

#editModeButtons .btn-group .btn-primary.btn-sm:hover {
    background: var(--btn-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--btn-primary-shadow) !important;
}

/* ===== EDIT TOGGLE BUTTON ===== */
#editToggleBtn {
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    white-space: nowrap;
}

#editToggleBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-primary-shadow);
}

#editToggleBtn:active {
    transform: translateY(0);
}

/* ===== STATUS BADGE ===== */
.status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-warning);
    border: 1px solid rgba(245, 158, 11, 0.15);
    display: none;
    align-items: center;
    white-space: nowrap;
    height: 34px;
}

.status-badge.active {
    display: inline-flex;
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--text-success);
    border-color: rgba(34, 197, 94, 0.15);
}

/* ================================================================
   DASHBOARD GRID
   ================================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.dashboard-item {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    min-height: 100px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    box-shadow: var(--shadow-card);
}

.dashboard-item:hover {
    border-color: var(--bg-card-border-hover);
    box-shadow: var(--shadow-card-hover);
}

.dashboard-item .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 8px 16px;
    flex-shrink: 0;
}

.dashboard-item .widget-title {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.dashboard-item .widget-body {
    padding: 4px 12px 12px 12px;
    flex: 1;
    overflow-y: auto;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
}
.btn:active {
    transform: translateY(0);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

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

.btn-success {
    background: var(--btn-success-bg);
    color: var(--btn-success-text);
}
.btn-success:hover {
    box-shadow: var(--btn-success-shadow);
}

.btn-danger {
    background: var(--btn-danger-bg);
    color: var(--btn-danger-text);
}
.btn-danger:hover {
    box-shadow: var(--btn-danger-shadow);
}

.btn-warning {
    background: var(--btn-warning-bg);
    color: var(--btn-warning-text);
}
.btn-warning:hover {
    box-shadow: var(--btn-warning-shadow);
}

.btn-purple {
    background: var(--btn-purple-bg);
    color: var(--btn-purple-text);
}
.btn-purple:hover {
    box-shadow: var(--btn-purple-shadow);
}

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

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}
.btn-block {
    width: 100%;
    justify-content: center;
}

/* ================================================================
   INPUTS
   ================================================================ */

.input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-input, rgba(255,255,255,0.06));
    border-radius: 12px;
    background: var(--bg-input, rgba(255,255,255,0.04));
    color: var(--text-primary, #ffffff);
    font-size: 14px;
    font-family: var(--font-family, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    transition: all 0.3s ease;
    outline: none;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--border-input-focus, #457EF6);
    background: var(--bg-input-focus, rgba(255,255,255,0.06));
    box-shadow: 0 0 0 4px rgba(69, 126, 246, 0.08);
    transform: translateY(-1px);
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-placeholder, rgba(255,255,255,0.15));
}

.input:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== SELECT ===== */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23457EF6' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

select option {
    background: var(--bg-modal, #1e293b);
    color: var(--text-primary, #ffffff);
    padding: 8px 12px;
}

/* ================================================================
   MODAL
   ================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.modal-overlay.active,
.modal-overlay.show {
    display: flex !important;
}

.modal-box {
    background: var(--bg-modal);
    backdrop-filter: var(--blur-modal);
    -webkit-backdrop-filter: var(--blur-modal);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--bg-modal-border);
    box-shadow: var(--shadow-modal);
    animation: modalFade 0.25s ease;
}

.modal-box-wide { max-width: 780px; }
.modal-box-full { max-width: 95vw; }

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted, rgba(255,255,255,0.35));
    font-size: 26px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    color: var(--text-primary, #ffffff);
    background: rgba(255,255,255,0.05);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--bg-modal-border, rgba(255,255,255,0.06));
}

@keyframes modalFade {
    from { opacity: 0; transform: scale(0.95) translateY(-12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ================================================================
   MESSAGE
   ================================================================ */

.message {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: none;
    font-weight: 500;
}

.message.success { display: block; background: var(--bg-success); color: var(--text-success); }
.message.error { display: block; background: var(--bg-error); color: var(--text-error); }
.message.info { display: block; background: var(--bg-info); color: var(--text-info); }
.message.warning { display: block; background: var(--bg-warning); color: var(--text-warning); }

/* ================================================================
   EDIT MODE
   ================================================================ */

.dashboard-item.edit-mode .drag-handle {
    cursor: grab;
    font-size: 16px;
    padding: 2px 6px;
    user-select: none;
    color: var(--text-muted);
}

.dashboard-item.edit-mode .drag-handle:active {
    cursor: grabbing;
}

.dashboard-item.edit-mode .widget-resize-controls {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    background: var(--bg-hover);
}

.dashboard-item.edit-mode .widget-resize-controls .resize-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 0 4px;
    color: var(--text-muted);
}
.dashboard-item.edit-mode .widget-resize-controls .resize-btn:hover {
    color: var(--text-primary);
}

.dashboard-item.edit-mode .widget-resize-controls .height-input {
    width: 48px;
    padding: 2px 4px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
}

.dashboard-item.edit-mode .widget-resize-controls .reset-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 4px;
}
.dashboard-item.edit-mode .widget-resize-controls .reset-btn:hover {
    color: var(--text-primary);
}

/* ===== EDIT MODE INDICATOR ===== */
.edit-mode-indicator {
    display: none;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.edit-mode-indicator.active {
    display: inline-block;
}

/* ================================================================
   WIDGET PICKER - KOMPLETT MIT SCHLIEßEN-BUTTON FIX
   ================================================================ */

.widget-picker {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: modalFade 0.3s ease;
}

.widget-picker.active {
    display: flex !important;
}

.widget-picker-content {
    background: var(--bg-modal);
    backdrop-filter: var(--blur-modal);
    -webkit-backdrop-filter: var(--blur-modal);
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid var(--bg-modal-border);
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.widget-picker-content .widget-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-input);
    flex-shrink: 0;
}

.widget-picker-content .widget-picker-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-picker-content .widget-picker-header h2 i {
    color: var(--text-info);
}

/* ===== SCHLIEßEN-BUTTON (FIX) ===== */
.widget-picker-content .modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: all 0.25s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.widget-picker-content .modal-close-btn:hover {
    color: var(--text-error);
    background: rgba(239, 68, 68, 0.08);
    transform: rotate(90deg);
}

.widget-picker-content .modal-close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* ===== BODY ===== */
.widget-picker-content .widget-picker-body {
    padding: 16px 20px 20px 20px;
    overflow-y: auto;
    flex: 1;
}

/* ===== WIDGET-OPTIONEN ===== */
.widget-picker-content .widget-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.widget-picker-content .widget-option:last-child {
    margin-bottom: 0;
}

.widget-picker-content .widget-option:hover {
    border-color: var(--bg-card-border-hover);
    background: var(--bg-input-focus);
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.widget-picker-content .widget-option .widget-option-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.widget-picker-content .widget-option .widget-option-info {
    flex: 1;
    min-width: 0;
}

.widget-picker-content .widget-option .widget-option-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.widget-picker-content .widget-option .widget-option-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.widget-picker-content .widget-option .widget-option-meta {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.widget-picker-content .widget-option .widget-option-meta .widget-option-badge {
    font-size: 9px;
    padding: 1px 10px;
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.widget-picker-content .widget-option .widget-option-add {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    white-space: nowrap;
    flex-shrink: 0;
}

.widget-picker-content .widget-option .widget-option-add:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-primary-shadow);
}

/* ===== FOOTER ===== */
.widget-picker-content .widget-picker-footer {
    padding: 12px 24px 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-input);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-picker-content .widget-picker-footer .footer-hint {
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-picker-content .widget-picker-footer .footer-hint i {
    color: var(--text-info);
}

/* ================================================================
   WIDGET SIZES
   ================================================================ */

.widget-col-1 { grid-column: span 1; }
.widget-col-2 { grid-column: span 2; }
.widget-col-3 { grid-column: span 3; }
.widget-col-4 { grid-column: span 4; }
.widget-col-5 { grid-column: span 5; }
.widget-col-6 { grid-column: span 6; }
.widget-col-7 { grid-column: span 7; }
.widget-col-8 { grid-column: span 8; }
.widget-col-9 { grid-column: span 9; }
.widget-col-10 { grid-column: span 10; }
.widget-col-11 { grid-column: span 11; }
.widget-col-12 { grid-column: span 12; }

/* ================================================================
   WIDGET-GRUNDLAGEN
   ================================================================ */

.widget-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.widget-empty {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
}

/* ================================================================
   CPU & RAM
   ================================================================ */

.cpu-ram-widget-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 4px 8px;
}

.cpu-ram-item {
    background: var(--bg-hover);
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.cpu-ram-item:hover {
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-card);
}

.cpu-ram-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cpu-ram-icon {
    font-size: 16px;
}

.cpu-ram-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 500;
    flex: 1;
}

.cpu-ram-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}

.cpu-ram-bar {
    background: var(--bg-input);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    margin: 4px 0;
}

.cpu-ram-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.cpu-ram-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
    font-family: monospace;
}

/* ================================================================
   SYSTEM
   ================================================================ */

.system-widget-container {
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.system-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 4px;
}

.system-platform {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.system-platform-icon {
    font-size: 16px;
}

.system-kernel {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    background: var(--bg-input);
    padding: 2px 10px;
    border-radius: 4px;
}

.system-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.system-info-item {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
}

.system-info-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 500;
}

.system-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
    font-family: monospace;
}

.system-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.system-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    font-size: 12px;
}

.system-status-label {
    color: var(--text-muted);
    font-weight: 500;
}

.system-status-value {
    font-weight: 600;
    font-family: monospace;
}

.system-status-value.status-online {
    color: var(--text-success);
}

.system-status-value.status-offline {
    color: var(--text-error);
}

/* ================================================================
   DISK
   ================================================================ */

.disk-widget-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 8px;
}

.disk-item {
    background: var(--bg-hover);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.disk-item:hover {
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-card);
}

.disk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.disk-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.disk-icon {
    font-size: 16px;
}

.disk-mount {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    font-family: monospace;
}

.disk-badge {
    font-size: 9px;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 500;
}

.disk-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.disk-usage {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.disk-percent {
    font-size: 14px;
    font-weight: 700;
    font-family: monospace;
    min-width: 36px;
    text-align: right;
}

.disk-bar {
    background: var(--bg-input);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.disk-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* ================================================================
   HOSTNAME
   ================================================================ */

.hostname-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px;
}

.hostname-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.hostname-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================================
   IP
   ================================================================ */

.ip-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px;
}

.ip-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}

.ip-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================================
   VERSION
   ================================================================ */

.version-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 12px;
}

.version-display:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.version-display:hover .version-value {
    color: var(--text-info);
}

.version-display .version-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
    transition: color 0.25s ease;
}

.version-name {
    font-size: 12px;
    color: var(--text-muted);
}

.version-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ================================================================
   UPTIME
   ================================================================ */

.uptime-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px;
}

.uptime-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}

.uptime-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================================
   ONLINE COUNT
   ================================================================ */

.online-count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px;
}

.online-count-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.online-count-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================================================
   QUICK ACTIONS
   ================================================================ */

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    padding: 4px 8px;
}

.quick-action-btn {
    padding: 10px 6px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.quick-action-btn .action-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

/* ================================================================
   ONLINE USERS
   ================================================================ */

.online-users-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 8px;
}

.online-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-hover);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.online-user-item:hover {
    border-color: var(--border-card-hover);
    background: var(--bg-card);
}

.online-user-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 2px 6px 2px 2px;
}

.online-user-left:hover {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.online-user-left:hover .online-user-name {
    color: var(--border-input-focus);
}

.online-user-avatar-wrapper {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.online-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.online-user-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.online-user-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.online-user-role {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 12px;
}

.online-user-role.role-admin {
    background: rgba(245, 158, 11, 0.15);
    color: var(--text-warning);
}

.online-user-role.role-moderator {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-info);
}

.online-user-ip {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.online-user-logout {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.online-user-logout:hover {
    color: var(--text-error);
    background: rgba(239, 68, 68, 0.1);
}

/* ================================================================
   LAST LOGINS
   ================================================================ */

.last-logins-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 8px;
}

.last-login-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-hover);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.last-login-item:hover {
    border-color: var(--border-card-hover);
    background: var(--bg-card);
}

.last-login-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 2px 6px 2px 2px;
    flex: 1;
}

.last-login-left:hover {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.last-login-left:hover .last-login-name {
    color: var(--border-input-focus);
}

.last-login-left:not(.clickable) {
    cursor: default;
}

.last-login-avatar-wrapper {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.last-login-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.last-login-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.last-login-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.last-login-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.last-login-time {
    font-size: 11px;
    color: var(--text-muted);
}

.last-login-right {
    display: flex;
    align-items: center;
}

.last-login-ip {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    background: var(--bg-input);
    padding: 2px 10px;
    border-radius: 4px;
}

/* ================================================================
   NOTES
   ================================================================ */

.note-item {
    background: var(--bg-hover);
    border-radius: 8px;
    padding: 12px 14px;
    border-left: 3px solid var(--border-color);
}

.note-item.pinned {
    border-left-color: var(--text-warning);
}

.note-item .note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.note-item .note-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.note-item .note-date {
    font-size: 11px;
    color: var(--text-muted);
}

.note-item .note-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.note-item .note-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.note-item .note-actions .note-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.15s;
}

.note-item .note-actions .note-btn:hover {
    color: var(--text-primary);
    background: var(--bg-input);
}

.note-item .note-actions .note-btn.danger:hover {
    color: var(--text-error);
    background: rgba(239, 68, 68, 0.1);
}

.note-item .note-comments {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.note-item .note-comments .comment-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.note-item .note-comments .comment-item .comment-author {
    font-weight: 500;
    color: var(--text-primary);
}

.note-item .note-comments .comment-item .comment-text {
    color: var(--text-secondary);
}

.note-item .note-comments .comment-item .comment-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    padding: 0 4px;
}

.note-item .note-comments .comment-item .comment-delete:hover {
    color: var(--text-error);
}

.note-item .note-comment-input {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.note-item .note-comment-input input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    outline: none;
}

.note-item .note-comment-input input:focus {
    border-color: var(--border-input-focus);
}

.note-item .note-comment-input button {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.note-item .note-comment-input button:hover {
    transform: translateY(-1px);
}

/* ================================================================
   SERVER CONTROL
   ================================================================ */

.server-control-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 4px 8px;
}

.server-control-item {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    background: var(--bg-hover);
}

.server-control-item .sc-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.server-control-item .sc-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.server-control-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px 4px 12px;
    flex-wrap: wrap;
}

/* ================================================================
   LOGS
   ================================================================ */

.logs-widget {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 8px;
}

.logs-widget .log-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.logs-widget .log-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.logs-widget .log-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.logs-widget .log-toggle-btn.active {
    color: var(--text-primary);
}

.logs-widget .log-count {
    font-size: 11px;
    color: var(--text-muted);
}

.logs-widget .log-container {
    display: none;
    max-height: 200px;
}

.logs-widget .log-container.visible {
    display: block;
}

.logs-widget .log-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    max-height: 160px;
    padding: 2px 0;
}

.logs-widget .log-entry {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    line-height: 1.5;
    background: var(--bg-hover);
}

.logs-widget .log-entry .log-icon {
    font-size: 12px;
}

.logs-widget .log-entry .log-time {
    font-size: 10px;
    color: var(--text-muted);
    min-width: 60px;
}

.logs-widget .log-entry .log-message {
    word-break: break-word;
    color: var(--text-secondary);
}

.logs-widget .log-entry.log-level-error .log-message {
    color: var(--text-error);
}

.logs-widget .log-entry.log-level-warn .log-message {
    color: var(--text-warning);
}

.logs-widget .log-entry.log-level-success .log-message {
    color: var(--text-success);
}

.logs-widget .log-refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.logs-widget .log-refresh-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* ================================================================
   TODO
   ================================================================ */

.todo-widget {
    padding: 4px 8px;
}

.todo-widget .todo-input-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.todo-widget .todo-input-row input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background: var(--bg-input);
    color: var(--text-primary);
    outline: none;
}

.todo-widget .todo-input-row input:focus {
    border-color: var(--border-input-focus);
}

.todo-widget .todo-input-row button {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: all 0.15s;
}

.todo-widget .todo-input-row button:hover {
    transform: translateY(-1px);
}

.todo-widget .todo-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
}

.todo-widget .todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg-hover);
}

.todo-widget .todo-item .todo-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--text-success);
    cursor: pointer;
    flex-shrink: 0;
}

.todo-widget .todo-item .todo-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
}

.todo-widget .todo-item .todo-text.done {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-widget .todo-item .todo-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
}

.todo-widget .todo-item .todo-delete:hover {
    color: var(--text-error);
    background: rgba(239, 68, 68, 0.1);
}

.todo-widget .todo-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
}

.todo-widget .todo-stats .stat-number {
    font-weight: 600;
    color: var(--text-primary);
}

/* ================================================================
   WILLKOMMENS-BANNER
   ================================================================ */

/* ================================================================
   WILLKOMMENS-BANNER
   ================================================================ */

.welcome-banner {
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border-radius: 16px;
    border: 1px solid var(--bg-card-border);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

/* ================================================================
   WILLKOMMENS-BANNER
   ================================================================ */

.welcome-banner {
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border-radius: 16px;
    border: 1px solid var(--bg-card-border);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

.welcome-banner.hidden {
    display: none !important;
}

/* ================================================================
   WILLKOMMENS-BANNER
   ================================================================ */

.welcome-banner {
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border-radius: 16px;
    border: 1px solid var(--bg-card-border);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

.welcome-banner.hidden {
    display: none !important;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ================================================================
   WILLKOMMENS-BANNER
   ================================================================ */

.welcome-banner {
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border-radius: 16px;
    border: 1px solid var(--bg-card-border);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

.welcome-banner.hidden {
    display: none !important;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.welcome-banner .welcome-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ================================================================
   WILLKOMMENS-BANNER
   ================================================================ */

.welcome-banner {
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border-radius: 16px;
    border: 1px solid var(--bg-card-border);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

.welcome-banner.hidden {
    display: none !important;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.welcome-banner .welcome-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.welcome-banner .welcome-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ================================================================
   WILLKOMMENS-BANNER
   ================================================================ */

.welcome-banner {
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border-radius: 16px;
    border: 1px solid var(--bg-card-border);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

.welcome-banner.hidden {
    display: none !important;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.welcome-banner .welcome-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.welcome-banner .welcome-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.welcome-banner .welcome-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

/* ================================================================
   WILLKOMMENS-BANNER
   ================================================================ */

.welcome-banner {
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border-radius: 16px;
    border: 1px solid var(--bg-card-border);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

.welcome-banner.hidden {
    display: none !important;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.welcome-banner .welcome-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.welcome-banner .welcome-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.welcome-banner .welcome-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.welcome-banner .welcome-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 12px 16px;
    }
    .welcome-banner .welcome-text {
        font-size: 13px;
    }
    .welcome-banner-content {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 12px 16px;
    }
    .welcome-banner .welcome-text {
        font-size: 13px;
    }
    .welcome-banner-content {
        gap: 10px;
    }
}

.welcome-banner .welcome-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 12px 16px;
    }
    .welcome-banner .welcome-text {
        font-size: 13px;
    }
    .welcome-banner-content {
        gap: 10px;
    }
}

.welcome-banner .welcome-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.welcome-banner .welcome-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 12px 16px;
    }
    .welcome-banner .welcome-text {
        font-size: 13px;
    }
    .welcome-banner-content {
        gap: 10px;
    }
}

.welcome-banner .welcome-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.welcome-banner .welcome-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.welcome-banner .welcome-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 12px 16px;
    }
    .welcome-banner .welcome-text {
        font-size: 13px;
    }
    .welcome-banner-content {
        gap: 10px;
    }
}

.welcome-banner .welcome-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.welcome-banner .welcome-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.welcome-banner .welcome-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.welcome-banner .welcome-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 12px 16px;
    }
    .welcome-banner .welcome-text {
        font-size: 13px;
    }
    .welcome-banner-content {
        gap: 10px;
    }
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.welcome-banner .welcome-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.welcome-banner .welcome-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.welcome-banner .welcome-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.welcome-banner .welcome-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 12px 16px;
    }
    .welcome-banner .welcome-text {
        font-size: 13px;
    }
    .welcome-banner-content {
        gap: 10px;
    }
}

.welcome-banner.hidden {
    display: none !important;
}

.welcome-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.welcome-banner .welcome-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.welcome-banner .welcome-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
}

.welcome-banner .welcome-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.welcome-banner .welcome-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.welcome-banner .welcome-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1200px) {
    
}

@media (max-width: 1024px) {
    .dashboard-grid {
        gap: 16px;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .server-control-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 12px;
    }
    
    .page-header-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    #editToggleBtn {
        height: 36px;
        font-size: 13px;
        padding: 0 16px;
    }
    
    #editModeButtons .btn-group .btn-sm {
        padding: 4px 10px !important;
        font-size: 12px !important;
        min-width: 55px !important;
        height: 30px !important;
    }
    
    .dashboard-grid {
        gap: 12px;
    }
    
    /* Mobile: Alle Widgets volle Breite (100%) */
    .dashboard-item {
        grid-column: 1 / -1 !important;
        width: 100%;
    }
    
    .card {
        padding: 16px;
    }
    .modal-box {
        padding: 20px;
        margin: 10px;
    }
    .system-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .system-status-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .server-control-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cpu-ram-widget-container {
        grid-template-columns: 1fr;
    }
    
    #editModeButtons .btn-group {
        padding: 3px 6px;
        flex-wrap: wrap;
        gap: 3px;
    }
    #editModeButtons .btn-group .btn-sm {
        padding: 4px 10px !important;
        font-size: 12px !important;
        min-width: 55px !important;
        height: 30px !important;
    }

    /* Widget Picker Mobile */
    .widget-picker-content {
        max-width: 100%;
        margin: 10px;
        border-radius: 16px;
    }
    
    .widget-picker-content .widget-option {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .widget-picker-content .widget-option .widget-option-info {
        width: 100%;
        order: 2;
    }
    
    .widget-picker-content .widget-option .widget-option-icon {
        order: 1;
    }
    
    .widget-picker-content .widget-option .widget-option-add {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .widget-picker-content .widget-picker-header h2 {
        font-size: 16px;
    }
    
    .widget-picker-content .modal-close-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    
    
    .page-header-left h1 {
        font-size: 20px;
    }
    
    #editToggleBtn {
        height: 32px;
        font-size: 12px;
        padding: 0 12px;
    }
    
    #editModeButtons .btn-group .btn-sm {
        padding: 3px 8px !important;
        font-size: 11px !important;
        min-width: 45px !important;
        height: 26px !important;
    }
    
    .dashboard-grid {
        gap: 10px;
    }
    
    /* Mobile: Alle Widgets volle Breite (100%) */
    .dashboard-item {
        grid-column: 1 / -1 !important;
        width: 100%;
    }
    
    .card {
        padding: 12px;
    }
    .modal-box {
        padding: 16px;
    }
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
    .server-control-grid {
        grid-template-columns: 1fr 1fr;
    }
    .system-info-grid {
        grid-template-columns: 1fr;
    }
    
    #editModeButtons .btn-group {
        padding: 3px 4px;
        border-radius: 6px;
    }
    #editModeButtons .btn-group .btn-sm {
        padding: 3px 8px !important;
        font-size: 11px !important;
        min-width: 45px !important;
        height: 26px !important;
    }

    /* Widget Picker Mobile klein */
    .widget-picker-content {
        border-radius: 14px;
    }
    
    .widget-picker-content .widget-picker-header {
        padding: 14px 16px;
    }
    
    .widget-picker-content .widget-picker-body {
        padding: 12px 14px 16px 14px;
    }
    
    .widget-picker-content .widget-option {
        padding: 10px 12px;
    }
    
    .widget-picker-content .widget-option .widget-option-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .widget-picker-content .modal-close-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        padding: 2px 4px;
    }
}

/* ================================================================
   SCROLLBAR
   ================================================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
/* ===== WIDGET PICKER SCHLIEßEN-BUTTON ===== */
.widget-picker-content .widget-picker-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: all 0.25s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.widget-picker-content .widget-picker-close:hover {
    color: var(--text-error);
    background: rgba(239, 68, 68, 0.08);
    transform: rotate(90deg);
}

.widget-picker-content .widget-picker-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* ================================================================
   DASHBOARD TABS
   ================================================================ */

.dashboard-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-card);
    backdrop-filter: var(--blur-card);
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dashboard-tabs .tab-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.dashboard-tabs .tab-btn.active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--btn-primary-shadow);
}

.dashboard-tabs .tab-btn i {
    font-size: 14px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .dashboard-tabs {
        flex-wrap: wrap;
        gap: 2px;
        padding: 3px;
    }
    
    .dashboard-tabs .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
        min-width: 60px;
    }
}

/* ================================================================
   WIDGET-MODAL ("Auslösen") - nur Desktop
   ================================================================ */

/* Auslösen-Button im Widget-Header. Standard: ausgeblendet.
   Erst ab 1024px sichtbar -> auf Tablet/Handy gibt es ihn nicht. */
.widget-expand-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: color 0.15s ease, background 0.15s ease;
}

@media (min-width: 1024px) {
    .widget-expand-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.widget-expand-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover, rgba(127, 127, 127, 0.12));
}

/* Overlay hat 20px padding -> sonst kommen die 70% nicht exakt an */
.widget-modal-overlay {
    padding: 0;
}

/* Modal-Box: dynamisch 70% des Viewports statt fester Breite */
.widget-modal-box {
    width: 70vw;
    max-width: 70vw;
    height: 70vh;
    max-height: 70vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.widget-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.widget-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.widget-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    padding: 0 4px;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.widget-modal-close:hover {
    color: var(--text-primary);
}

/* Aufnahmebereich fuer die verschobene .widget-body */
.widget-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Die ORIGINAL .widget-body haengt jetzt hier drin: gleiche Optik,
   nur groesser. Kein eigenes Aussehen definieren! */
.widget-modal-body > .widget-body.is-in-modal {
    flex: 1;
    min-height: 0;
    overflow: hidden;      /* Scrollen uebernimmt die Liste im Widget */
    display: flex;
    flex-direction: column;
    padding: 0;            /* kein Padding -> Inhalt fuellt exakt aus */
}

/* Widgets rechnen ihre Hoehe fix aus der Kachel (z.B. todo.js:
   height:${widgetHeight}px und die Liste height:${listHeight}px).
   Im Modal muessen diese Inline-Hoehen weichen, sonst bleibt unten
   Leerraum. Nur Hoehen ueberschreiben - Optik bleibt unveraendert. */
.widget-modal-body > .widget-body.is-in-modal > div {
    height: 100% !important;
    max-height: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

/* Scroll-Liste im Widget (todo/notes/logs) dehnt sich statt fixer Hoehe */
.widget-modal-body > .widget-body.is-in-modal [id$="List"],
.widget-modal-body > .widget-body.is-in-modal [id$="Liste"],
.widget-modal-body > .widget-body.is-in-modal .widget-scroll-area {
    height: auto !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

/* Hintergrund nicht scrollen, solange das Modal offen ist */
body.widget-modal-offen {
    overflow: hidden;
}

/* ================================================================
   HEADER-REFRESH-ICON
   ================================================================
/* Das .page-header h1 nutzt background-clip:text + text-fill-color:transparent
   fuer den Gradient-Titel. Das Refresh-Icon (<i class="fas">) erbt
   text-fill-color:transparent -> es wird unsichtbar. Explizit
   zuruecksetzen, damit die normale Icon-Farbe greift. */
.page-header h1 span .fa-sync-alt,
.page-header h1 span:hover .fa-sync-alt {
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
}

/* Hover-Farbe des Icons (unabhaengig vom Titel-Gradient) */
.page-header h1 span[title] {
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-body);
  transition: background 0.2s ease;
  flex: 1;
  padding: 24px 32px 40px;
  overflow-y: auto;
  max-width: 95%;
  width: 100%;
  margin: 0 auto;
  max-width: 98%;
  padding: 20px 24px 32px;
  max-width: 100%;
  padding: 16px !important;
  padding: 12px !important;
}
