/* ============================================
   Notification System Styles
   ============================================ */

/* Notification Wrapper */
.notification-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--neutral-light, #f5f5f5);
    color: var(--primary-dark, #1a1a1a);
    transition: all 0.3s ease;
    text-decoration: none;
}

.notification-bell:hover {
    background-color: var(--primary-main, #007bff);
    color: white;
    transform: scale(1.1);
}

.notification-bell i {
    font-size: 18px;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 380px;
    max-width: 420px;
    max-height: 500px;
    padding: 0;
    margin: 0;
    list-style: none;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
}

/* Notification Header */
.notification-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-main, #007bff) 0%, var(--primary-dark, #0056b3) 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header h6 {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.btn-mark-all-read {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-mark-all-read:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Notification List */
.notification-list {
    max-height: 380px;
    overflow-y: auto;
    background: white;
}

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

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

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

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

/* Notification Item */
.notification-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    list-style: none;
}

.notification-item.unread {
    background-color: #f8f9ff;
}

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

.notification-item a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

/* Notification Icon */
.notification-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-main, #007bff) 0%, var(--primary-dark, #0056b3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.notification-icon i {
    font-size: 18px;
}

/* Notification Details */
.notification-details {
    flex: 1;
    min-width: 0;
}

.notification-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

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

.notification-time {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mark as Read Button */
.btn-mark-read {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    background: #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.notification-item:hover .btn-mark-read {
    opacity: 1;
}

.btn-mark-read:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

/* Empty State */
.notification-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    list-style: none;
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

/* Notification Footer */
.notification-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
    list-style: none;
}

.view-all-link {
    color: var(--primary-main, #007bff);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--primary-dark, #0056b3);
    gap: 10px;
}
/* Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        min-width: 320px;
        max-width: calc(100vw - 40px);
    }
    
    .notification-content {
        gap: 8px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}