/* Notification Bell Component Styles */

.notification-bell-container {
    position: relative;
    display: inline-block;
}

.notification-bell-button {
    position: relative;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.notification-bell-button:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #dc3545;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 5px;
    border: 2px solid #343a40;
    box-sizing: border-box;
}

.notification-dropdown {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    width: 400px;
    max-height: 600px;
    display: none;
    flex-direction: column;
    z-index: 1050;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

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

.notification-dropdown.show {
    display: flex;
}

.notification-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    flex-shrink: 0;
}

.notification-dropdown-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: #24292f;
    line-height: 1.5;
}

.notification-dropdown-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #0969da;
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 500;
    border-radius: 4px;
}

.mark-all-read-btn:hover {
    color: #0860ca;
    background-color: #f6f8fa;
}

.mark-all-read-btn:active {
    background-color: #eaeef2;
}

.notification-list {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: 500px;
}

.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f6f8fa;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #d1d9e0;
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #afb8c1;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.notification-item:hover {
    background-color: #f6f8fa;
}

.notification-item.read {
    background-color: #ffffff;
}

.notification-item.read:hover {
    background-color: #f6f8fa;
}

.notification-unread-indicator {
    position: absolute;
    right: 12px;
    top: 16px;
    width: 8px;
    height: 8px;
    background-color: #0969da;
    border-radius: 50%;
    flex-shrink: 0;
    display: none;
}

.notification-item:not(.read) .notification-unread-indicator {
    display: block;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 500;
    font-size: 14px;
    color: #24292f;
    line-height: 1.5;
    margin: 0;
}

.notification-body {
    font-size: 13px;
    color: #656d76;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: #656d76;
}

.notification-type {
    font-weight: 500;
    color: #656d76;
}

.notification-time {
    color: #8b949e;
    margin-left: auto;
}

.notification-empty {
    padding: 48px 20px;
    text-align: center;
    color: #656d76;
}

.notification-empty i {
    font-size: 32px;
    color: #d1d9e0;
    margin-bottom: 12px;
    display: block;
}

.notification-empty-text {
    font-size: 14px;
    color: #656d76;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .notification-dropdown {
        width: calc(100vw - 32px);
        right: 16px;
        left: 16px;
        top: 70px;
    }
}
