.notifications-container {
    position: relative;
}

.notification-button {
    transition: transform 0.2s ease;
}

.notification-button:focus {
    outline: none;
    box-shadow: none;
}

.notification-icon {
    font-size: 1.25rem;
    color: var(--bs-secondary);
    transition: color 0.2s ease;
}

.notification-button:hover .notification-icon {
    color: var(--bs-primary);
}

.notification-badge {
    font-size: 0.7rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%) !important;
}

.notifications-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: var(--bs-body-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    z-index: 1050;
    display: none;
}

@media (max-width: 576px) {
    .notifications-dropdown {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .notifications-list {
        height: calc(100vh - 120px); /* Account for header and footer */
        overflow-y: auto;
    }
}

.notifications-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bs-body-bg);
    z-index: 1;
}

.notification-item {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: var(--bs-secondary-bg);
}

.notification-icon {
    color: var(--bs-primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: var(--bs-secondary-text);
    font-size: 0.875rem;
}

.notification-time {
    color: var(--bs-tertiary-text);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.notification-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    margin-top: 6px;
}

.notifications-footer {
    padding: 0.75rem;
    text-align: center;
    border-top: 1px solid var(--bs-border-color);
    position: sticky;
    bottom: 0;
    background: var(--bs-body-bg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .notifications-dropdown {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
