/* Notification Bell Styles */
.notification-center {
    position: relative;
    display: inline-block;
}

.notification-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
  padding: 8px;
    display: flex;
    align-items: center;
  justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.notification-bell-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.notification-bell {
    font-size: 24px;
    color: #74788d;
    transition: color 0.3s ease;
}

.notification-bell.has-notifications {
    color: #ff9800 !important;
    animation: bellShake 0.5s ease-in-out;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-15deg); }
    20%, 40%, 60%, 80% { transform: rotate(15deg); }
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #f46a6a;
  color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
  border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
top: 100%;
    right: 0;
    margin-top: 8px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.notification-dropdown.show {
    display: flex;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
    opacity: 0;
 transform: translateY(-10px);
    }
    to {
        opacity: 1;
  transform: translateY(0);
    }
}

.notification-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #556ee6;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: color 0.2s ease;
}

.mark-all-read-btn:hover {
    color: #4a5fd0;
}

.notification-dropdown-body {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.no-notifications i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}

.no-notifications p {
    margin: 0;
    font-size: 14px;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #fff3e0;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
  top: 0;
    bottom: 0;
    width: 4px;
    background-color: #ff9800;
}

.notification-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff3cd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9800;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.notification-message {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 12px;
 font-size: 12px;
    color: #999;
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-severity {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-severity.critical {
    background-color: #dc3545;
    color: #ffffff;
}

.notification-severity.high {
    background-color: #fee;
    color: #c33;
}

.notification-severity.medium {
    background-color: #fff3cd;
    color: #856404;
}

.notification-severity.low {
    background-color: #d4edda;
    color: #155724;
}

.notification-dropdown-footer {
  padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.show-all-btn {
    background: #556ee6;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.show-all-btn:hover {
    background: #4a5fd4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85, 110, 230, 0.3);
}

.clear-all-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.clear-all-btn:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }
}
