/* Notification Bell Container */
.notification-bell-container {
    position: relative;
    display: inline-block;
}

/* Notification Bell Button */
.notification-bell-button {
    position: relative;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.notification-bell-button:hover {
    color: #0d6efd;
}

.notification-bell-button:focus {
    outline: none;
}

/* Notification Badge (Number) */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    transform: translate(25%, -25%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Red Dot Indicator */
.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 70px;
    left: 190px;
    width: 380px;
    max-height: calc(100vh - 80px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Header */
.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.notification-panel-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.btn-link-sm {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.btn-link-sm:hover {
    text-decoration: underline;
}

/* Panel Body */
.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-loading,
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.notification-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.notification-icon i {
    font-size: 1.1rem;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 0.9rem;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Unread Dot on Item */
.notification-unread-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 50%;
    margin-left: 0.5rem;
    margin-top: 0.5rem;
}

/* Panel Footer */
.notification-panel-footer {
    border-top: 1px solid #e9ecef;
    padding: 0.75rem;
    text-align: center;
}

.btn-view-all {
    display: block;
    width: 100%;
    padding: 0.5rem;
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

.btn-view-all:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .notification-panel {
        position: fixed;
        top: 60px !important;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
    }

    .notification-icon i {
        font-size: 1rem;
    }

    .notification-item {
        padding: 0.875rem 1rem;
    }

    .notification-message {
        font-size: 0.85rem;
    }

    .notification-time {
        font-size: 0.75rem;
    }
}

/* Scrollbar Styling */
.notification-panel-body::-webkit-scrollbar {
    width: 6px;
}

.notification-panel-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-panel-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notification-panel-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
