.incident-card {
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    padding: 0;
    background-color: #fff;
    overflow: hidden;
}

.incident-header {
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 15px;
}

.incident-header:hover {
    background-color: #f8f9fa;
}

.incident-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 18px;
}

.incident-body {
    padding: 10px 15px;
}

.incident-description {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.incident-time {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0;
}

.no-incident-description {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.show-all-btn {
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    padding: 5px;
    text-align: center;
    background-color: #fff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-all-btn:hover {
    background-color: #f8f9fa;
}

.show-all-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.date-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.date-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Date Navigation Styling */
.date-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.date-nav-btn {
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #6c757d;
    width: 37px;
    height: 37px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    vertical-align: middle;
}

.date-nav-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.date-nav-btn:active {
    transform: scale(0.95);
}

.date-range-text {
    color: #495057;
    font-weight: 500;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin: 0 10px;
    white-space: nowrap;
}

.filter-container {
    position: relative;
}

.filter-button {
    background-color: #ffffff;
    border: 1px solid #adb5bd;
    color: black;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-button.show {
    background-color: #0d6efd;
    color: white;
}

.filter-button .chevron-icon {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.filter-button .chevron-icon.expanded {
    transform: rotate(90deg);
}

/* Custom Dropdown Styling */
.filter-dropdown-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    
    /* Opacity Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.filter-dropdown-custom.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Parent Items */
.filter-item-parent {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    background-color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-item-parent:hover {
    background-color: #e9ecef;
}

.filter-item-parent .chevron-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    color: #6c757d;
}

.filter-item-parent .chevron-icon.expanded {
    transform: rotate(90deg);
}

/* Children Container */
.filter-children {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.filter-children.show {
    opacity: 1;
    max-height: 100%;
}

/* Child Items */
.filter-item-child {
    padding: 10px 20px 10px 50px;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    background-color: #fff;
    transition: background-color 0.2s ease;
    position: relative;
}

.filter-item-child:hover {
    background-color: #f8f9fa;
}

.filter-item-child::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e9ecef;
}

/* Single Items */
.filter-item-single {
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    background-color: #fff;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.filter-item-single:hover {
    background-color: #f8f9fa;
}

.filter-item-single:last-child {
    border-bottom: none;
}

/* Checkbox & Labels */
.filter-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.filter-item, .filter-label {
    cursor: pointer;
}

.filter-label {
    color: #495057;
    font-weight: 500;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .date-navigation {
        justify-content: space-between;
    }
    
    #filterDropdown {
        width: 100%;
        font-size: 14px;
    }

    .date-range-text {
        font-size: 14px;
        margin: 0 2px;
    }
    
    .date-nav-btn {
        width: 30px;
        height: 30px;
    }

    .filter-dropdown-custom {
        min-width: 300px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .filter-dropdown-custom.show {
        transform: translateX(-50%) translateY(0);
    }

    .filter-label {
        font-size: 14px;
    }
}