﻿.notification-panel {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

    .notification-bell:hover {
        background-color: #f8f9fa;
    }

    .notification-bell i {
        font-size: 20px;
        color: #6c757d;
    }

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-dropdown {
    position: fixed !important;
    top: 60px !important; 
    right: 20px !important;
    width: 350px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999 !important;
    max-height: 500px;
    overflow: hidden;
}

.navbar .notification-panel .notification-dropdown {
    z-index: 1060 !important;
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

    .notification-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

.mark-all-read {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

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

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

    .notification-item.unread {
        background-color: #f0f8ff;
        border-left: 3px solid #007bff;
    }

.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

    .notification-icon i {
        font-size: 14px;
        color: #6c757d;
    }

.notification-content {
    flex: 1;
}

.notification-subject {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #212529;
}

.notification-message {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #adb5bd;
}

.notification-unread-dot {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #007bff;
    border-radius: 50%;
}

.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

    .no-notifications i {
        font-size: 32px;
        margin-bottom: 12px;
        color: #dee2e6;
    }

.notification-footer {
    padding: 12px 16px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    background-color: #f8f9fa;
}

    .notification-footer .btn {
        width: 100%;
    }

@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
        right: -20px;
        z-index: 1060;
    }
}

.navbar.sticky-top .notification-dropdown,
.navbar.fixed-top .notification-dropdown {
    z-index: 1060 !important;
}
