/* Kompakter Log Viewer */
.log-viewer-compact {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* Kompakter Header - Eine Zeile */
.log-compact-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-left h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-left h2 i {
    font-size: 22px;
}

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

.header-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.header-stat i {
    font-size: 14px;
}

/* Kompakte Filter Controls - Eine Zeile */
.log-compact-controls {
    background: white;
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.compact-select {
    height: 36px;
    padding: 0 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.compact-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.compact-search {
    height: 36px;
    padding: 0 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    flex: 1;
    max-width: 400px;
    transition: all 0.2s;
}

.compact-search:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Kompakte Buttons */
.compact-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.compact-btn {
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.compact-btn i {
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
    padding: 0 12px;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 0 12px;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

/* Quick Filter Buttons */
.compact-quick-filters {
    display: flex;
    gap: 6px;
    padding-left: 12px;
    border-left: 2px solid #e9ecef;
}

.quick-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.quick-btn i {
    font-size: 16px;
}

.error-btn {
    color: #dc3545;
    border-color: #f8d7da;
}

.error-btn:hover {
    background: #f8d7da;
    border-color: #dc3545;
}

.warning-btn {
    color: #ffc107;
    border-color: #fff3cd;
}

.warning-btn:hover {
    background: #fff3cd;
    border-color: #ffc107;
}

.info-btn {
    color: #17a2b8;
    border-color: #d1ecf1;
}

.info-btn:hover {
    background: #d1ecf1;
    border-color: #17a2b8;
}

/* Kompakte Warning */
.compact-warning {
    background: #fff3cd;
    border-bottom: 2px solid #ffc107;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}

.compact-warning i {
    font-size: 16px;
}

/* Kompakte Log Table */
.log-compact-table {
    flex: 1;
    overflow: auto;
    background: white;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.compact-table thead {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.compact-table th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.compact-table td {
    padding: 8px 15px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

/* Column Widths - Volle Breite nutzen */
.col-time {
    width: 180px;
    min-width: 180px;
}

.col-level {
    width: 110px;
    min-width: 110px;
}

.col-logger {
    width: 200px;
    min-width: 200px;
}

.col-msg {
    width: auto;
}

/* Kompakte Rows */
.compact-row {
    transition: all 0.1s;
}

.compact-row:hover {
    background: #f8f9fa;
}

.compact-row:nth-child(even) {
    background: #fcfdfd;
}

.compact-row:nth-child(even):hover {
    background: #f8f9fa;
}

/* Row Colors */
.log-error,
.log-critical {
    background: #fff5f5 !important;
    border-left: 3px solid #dc3545;
}

.log-warning {
    background: #fffef5 !important;
    border-left: 3px solid #ffc107;
}

.log-debug {
    background: #f8f9fa !important;
    border-left: 3px solid #6c757d;
}

/* Kompakte Zellen */
.compact-time {
    font-family: 'SF Mono', 'Monaco', monospace;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.compact-level {
    padding: 4px 0 !important;
}

.compact-level span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-error,
.badge-critical {
    background: #f8d7da;
    color: #721c24;
}

.badge-debug {
    background: #e2e3e5;
    color: #383d41;
}

.badge-unknown {
    background: #e9ecef;
    color: #6c757d;
}

.compact-logger {
    font-family: 'SF Mono', 'Monaco', monospace;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
}

.compact-msg {
    color: #212529;
    line-height: 1.5;
    word-break: break-word;
}

/* No Logs */
.no-logs {
    text-align: center;
    padding: 60px 20px;
    color: #adb5bd;
}

.no-logs i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 15px;
}

.no-logs p {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    margin: 0;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s;
    font-size: 13px;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scrollbar */
.log-compact-table::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.log-compact-table::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.log-compact-table::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 5px;
}

.log-compact-table::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Responsive */
@media (max-width: 1200px) {
    .compact-search {
        max-width: 250px;
    }

    .header-stat {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    .log-compact-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .compact-select,
    .compact-search {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .compact-buttons {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .compact-quick-filters {
        flex: 1 1 100%;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid #e9ecef;
        padding-top: 8px;
    }

    .header-right {
        flex-wrap: wrap;
        gap: 8px;
    }

    .col-logger {
        display: none;
    }
}

+