/* Bootstrap-first stylingr */

/* Only custom styling that extends Bootstrap */

/* Dashboard sidebar mobile responsive */
@media (max-width: 767.98px) {
    #sidebarNav {
        transform: translateX(-100%);
        z-index: 1050;
        transition: transform 0.3s ease-in-out;
    }
    
    #sidebarNav.show {
        transform: translateX(0);
    }
    
    #sidebarOverlay {
        z-index: 1040;
    }
    
    #sidebarOverlay.show {
        display: block !important;
    }
    
    /* Ensure main content doesn't get hidden behind sidebar */
    main {
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) {
    #sidebarNav {
        transform: translateX(0) !important;
        position: static !important;
    }
    
    #sidebarOverlay {
        display: none !important;
    }
}

/* Log container - Console-like dark theme */
.log-container {
    background-color: #1e1e1e;
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Log entries */
.log-entry {
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}

.log-entry:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Log levels - Using semantic colors */
.log-entry.error {
    color: #f8d7da;
    border-left: 3px solid #dc3545;
}

.log-entry.warning {
    color: #fff3cd;
    border-left: 3px solid #ffc107;
}

.log-entry.info {
    color: #d1ecf1;
    border-left: 3px solid #0dcaf0;
}

.log-entry.debug {
    color: #d3d3d4;
    border-left: 3px solid #6c757d;
}

/* Timestamp styling */
.log-timestamp {
    color: #6c757d;
    font-weight: 600;
}

/* Log message */
.log-message {
    margin-left: 0.5rem;
}

/* Stats badges - Enhance Bootstrap badges */
.stat-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Pointer cursor for navigation links without href */
.nav-link[data-target] {
    cursor: pointer;
}

/* Sortable table headers */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Sort indicators */
.sort-asc::after {
    content: " ▲";
    color: #0d6efd;
}

.sort-desc::after {
    content: " ▼";
    color: #0d6efd;
}

/* Openbare Snapshots: scroll box, max 10 rijen */
.openbare-snapshots-scroll {
    max-height: 25rem;
    overflow-y: auto;
}

