body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Hide sidebar */
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease-in-out;
        width: 280px !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        left: 0 !important; /* Show sidebar */
    }
}

.nav-link {
    color: #333;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background-color: #e9ecef;
    color: #0d6efd;
}

.main-content {
    /* padding: 20px; Removed to allow navbar to be full width */
}

/* Hide toggle arrow for notifications if desired */
.dropdown-toggle-no-arrow::after {
    display: none !important;
}

/* Print Styles */
@media print {
    /* Hide non-printable elements */
    .sidebar, .navbar, .btn, .no-print, .modal-footer, .btn-close {
        display: none !important;
    }
    
    /* Reset layout for print */
    .main-content, .container-fluid, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: white !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }

    /* Table styling for print */
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    .table th, .table td {
        border: 1px solid #ddd !important;
        color: #000 !important;
    }
    
    /* Badges should have borders/colors readable in print */
    .badge {
        border: 1px solid #000;
        color: #000 !important;
        background: transparent !important;
    }

    /* Modal Printing Logic */
    /* When modal is open, Bootstrap adds .modal-open to body */
    body.modal-open {
        visibility: hidden;
    }
    
    body.modal-open .modal {
        visibility: visible;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: visible !important;
        display: block !important; /* Ensure it's displayed */
        background: white;
    }
    
    body.modal-open .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: 100%;
        position: static;
    }
    
    body.modal-open .modal-content {
        border: none;
        box-shadow: none;
    }
    
    body.modal-open .modal-body {
        padding: 0;
    }

    /* Ensure link hrefs are not printed if not needed, or styled appropriately */
    a {
        text-decoration: none !important;
        color: #000 !important;
    }
}
