/* Notification System Styles */

/* Notification Counter */
.notification-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
}

/* Notification Status Dot */
.notification-status-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

/* Notification Dropdown */
.notification-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Notification Items */
.notification-item {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #f0f8ff;
    border-left: 3px solid #007bff;
    padding-left: 12px;
}

.notification-avatar {
    flex-shrink: 0;
}

.notification-avatar .avatar {
    width: 32px;
    height: 32px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-avatar .avatar i {
    color: #6c757d;
    font-size: 16px;
}

.notification-content h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

.notification-content p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-content small {
    font-size: 11px;
    color: #adb5bd;
}

/* Unread Dot */
.notification-unread-dot {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Notification Status Icons */
.notification-status-icons {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notification-status-icons .ti {
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-status-icons .ti-eye {
    color: #007bff;
}

.notification-status-icons .ti-eye:hover {
    color: #0056b3;
    transform: scale(1.1);
}

.notification-status-icons .ti-check {
    color: #28a745;
}

.notification-status-icons .ti-check:hover {
    color: #1e7e34;
    transform: scale(1.1);
}

/* Notification Popup */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.notification-popup-content {
    padding: 0;
}

.notification-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.notification-popup-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.notification-popup-header .btn-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-popup-header .btn-close:hover {
    color: #dc3545;
}

.notification-popup-body {
    padding: 16px;
}

.notification-popup-body p {
    margin: 0;
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
}

/* Animation Keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-popup {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .notification-dropdown {
        width: calc(100vw - 40px) !important;
        left: 20px !important;
        right: 20px !important;
    }
}

/* Scrollbar Styling */
.notification-dropdown::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading State */
.notification-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.notification-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Empty State */
.notification-empty {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

/* Button Styles */
.notification-dropdown .btn {
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 16px;
}

.notification-dropdown .btn-primary {
    background: #007bff;
    border-color: #007bff;
}

.notification-dropdown .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.notification-dropdown .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Additional styles for better notification display */
.notification-item {
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.notification-item:hover {
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-color: #e3f2fd;
}

.notification-item.unread:hover {
    background-color: #bbdefb;
    border-color: #bbdefb;
}

/* Fix for notification counter positioning */
.notification_counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
    z-index: 10;
}

/* Fix for notification status dot positioning */
.notification_status-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
    z-index: 10;
}
