/**
 * PACS Simulatie - Aangepaste CSS
 * 
 * Pad: /css/style.css
 * Dit bestand bevat custom styling voor de PACS simulatie
 */

/* Donkere thema basisstijlen */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    background-color: #121212;
    color: #e0e0e0;
}

/* Sidebar stijlen */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #1e1e1e !important;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 48px);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #a0a0a0;
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(0, 123, 255, 0.5);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #999;
}

.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Hoofdinhoud stijlen */
.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

[role="main"] {
    padding-top: 48px;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

/* Dropdown menu stijlen - Nieuwe fix */
.dropdown-menu {
    position: absolute !important;
    z-index: 1030;        /* Hogere z-index om over inhoud te zweven */
    transform: none !important;
    top: 100% !important; /* Zorgt dat de dropdown direct onder de knop verschijnt */
    margin-top: 0.125rem !important; /* Klein beetje ruimte tussen knop en dropdown */
    background-color: #2a2a2a;
    border: 1px solid #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: #e0e0e0;
}

.dropdown-item:hover {
    background-color: #333;
    color: #fff;
}

/* Zorg ervoor dat de dropdown-toggle button niet van positie verandert */
.dropdown-toggle {
    position: relative;
}

/* Voorkom dat de header groter wordt bij dropdown activatie */
header, .navbar {
    overflow: visible;
    position: relative;
}

/* Zorg dat main content niet beïnvloed wordt door dropdown */
[role="main"] {
    position: relative;
    z-index: 1; /* Lager dan dropdown menu */
}

/* Tabelstijlen */
.table {
    color: #e0e0e0;
}

.table-dark {
    background-color: #1e1e1e;
}

.table-dark th,
.table-dark td,
.table-dark thead th {
    border-color: #333;
}

.table-dark.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* Card stijlen */
.card {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

.card-header {
    background-color: #252525;
    border-bottom: 1px solid #333;
}

/* Form stijlen */
.form-control {
    background-color: #333;
    border-color: #444;
    color: #fff;
}

.form-control:focus {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modal stijlen */
.modal-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.modal-header {
    border-bottom: 1px solid #444;
}

.modal-footer {
    border-top: 1px solid #444;
}

/* Badge stijlen */
.badge {
    font-weight: 500;
}

/* DICOM Viewer stijlen */
.dicom-viewer {
    background-color: #000;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    overflow: hidden;
    max-height: 600px;
}

.dicom-image {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
}

.dicom-controls {
    margin-top: 10px;
}

.bg-black {
    background-color: #000 !important;
}

/* Modaliteit badge kleuren */
.modality-icons .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.6em;
}

/* Responsief design aanpassingen */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        padding-top: 3.5rem;
        overflow-y: auto;
        background-color: #1e1e1e;
        max-width: 80%;
    }
    
    .navbar-brand {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    [role="main"] {
        padding-top: 56px;
    }
    
    /* Zorg voor correcte dropdown werking op mobiel */
    .dropdown-menu {
        position: absolute !important;
        max-width: 90%;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #222;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Paginering stijlen */
.pagination .page-link {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    background-color: #2a2a2a;
    border-color: #444;
    color: #666;
}