.dashboard-notifications {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}
.dashboard-notifications h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}
.dashboard-notifications .list-group-item {
    display: flex;
    flex-direction: row;
    gap: 15px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
}
.dashboard-notifications .badge {
    font-size: 0.9em;
    margin-right: 0.5em;
    padding: 0.4em 0.7em;
}
.dashboard-notifications .badge-danger {
    background: #e74c3c;
    color: #fff;
}
.dashboard-notifications .badge-warning {
    background: #f39c12;
    color: #fff;
}
.dashboard-notifications .badge-info {
    background: #3498db;
    color: #fff;
}
.dashboard-notifications .badge-new-assignment {
    background: #27ae60;
    color: #fff;
}
.dashboard-notifications .btn-primary {
    font-size: 0.95em;
    padding: 0.35em 0.9em;
    border-radius: 20px;
}
.dashboard-notifications .list-group-item:last-child {
    border-bottom: none;
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.dashboard-notifications .notification-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .dashboard-notifications {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .dashboard-notifications h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .dashboard-notifications .list-group-item {
        flex-direction: column;
        gap: 10px;
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    .dashboard-notifications .btn-primary {
        font-size: 0.85em;
        padding: 0.3em 0.7em;
    }
    .dashboard-notifications .list-group-item:last-child {
        flex-direction: column;
    }

}

/* ==== Floating Bell Dropdown (Dashboard) ==== */
.floating-bell {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
}
.floating-bell-button {
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    position: relative;
}
.floating-bell-button .count-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #dc3545 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 0.75rem !important;
    padding: 2px 6px !important;
    line-height: 1 !important;
    min-width: 20px !important;
    text-align: center !important;
    font-weight: bold !important;
    display: inline-block !important;
    z-index: 10 !important;
}
.bell-dropdown {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 360px;
    max-height: 440px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.bell-dropdown-header {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}
.bell-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bell-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f1f1;
}
.bell-item:last-child { border-bottom: none; }
.bell-item .badge { margin-right: 8px; }

.bell-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.bell-actions a,
.bell-actions form {
    display: inline-block;
    margin: 0;
}

.bell-action-view,
.bell-action-mark {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
}

.bell-action-view {
    background: #db3434;
    color: #fff;
}

.bell-action-view:hover {
    background: #b92929;
    color: #fff;
    text-decoration: none;
}

.bell-action-mark {
    background: #27ae60;
    color: #fff;
}

.bell-action-mark:hover {
    background: #229954;
}

/* Visible state controlled via aria-hidden */
.bell-dropdown[aria-hidden="false"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Generic badges for bell dropdown */
.badge { border-radius: 4px; padding: 3px 6px; font-size: .75rem; }
.badge-primary { background-color: #007bff; color: #fff; }
.badge-success { background-color: #28a745; color: #fff; }
.badge-info { background-color: #17a2b8; color: #fff; }
.badge-danger { background-color: #dc3545; color: #fff; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-new-assignment { background-color: #28a745; color: #fff; }

@media (max-width: 576px) {
    .bell-dropdown { width: calc(100vw - 32px); right: 16px; }
    .floating-bell { right: 16px; bottom: 16px; }
    
    .bell-actions {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    
    .bell-action-view,
    .bell-action-mark {
        width: 100%;
        text-align: center;
    }
}