/* Security Notifications Dropdown Styles */

.security-dropdown {
    min-width: 320px;
    max-width: 400px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.security-dropdown .dropdown-header {
    background: linear-gradient(135deg, #10b981 0%, #aaaa00 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: 0;
    font-size: 0.9375rem;
}

.security-dropdown .dropdown-divider {
    margin: 0.25rem 0;
    border-color: #e2e8f0;
}

.security-dropdown .dropdown-item {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.security-dropdown .dropdown-item:hover {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    transform: translateX(3px);
}

.security-dropdown .dropdown-item:active {
    background: linear-gradient(to right, #e9ecef, #f8f9fa);
}

/* Badge styles in dropdown */
.security-dropdown .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

/* Security Icons */
.security-dropdown .dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

/* All Clear State */
.security-dropdown .dropdown-item.text-muted {
    pointer-events: none;
    cursor: default;
}

/* Navbar Badge Pulse Animation for Security Alerts */
.nav-link .badge.bg-danger {
    animation: pulse-security 2s infinite;
}

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

/* RTL Support */
[dir="rtl"] .security-dropdown .dropdown-item:hover {
    transform: translateX(-3px);
}

[dir="rtl"] .security-dropdown .dropdown-item i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .security-dropdown {
        min-width: 280px;
        max-width: 90vw;
    }

    .security-dropdown .dropdown-item {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .security-dropdown .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Enhanced Badge Styles */
.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%) !important;
}

.badge.bg-dark {
    background: linear-gradient(135deg, #212529 0%, #16181b 100%) !important;
}

/* Security icon with notification badge */
.nav-link.position-relative .badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.4rem;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Security Dashboard Link Highlight */
.security-dropdown .dropdown-item:last-child {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

.security-dropdown .dropdown-item:last-child:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* ============================================================================
   DARK MODE SUPPORT FOR SECURITY NOTIFICATIONS
   ============================================================================ */
[data-theme="dark"] .security-dropdown {
    background-color: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .security-dropdown .dropdown-divider {
    border-color: var(--border-color);
}

[data-theme="dark"] .security-dropdown .dropdown-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .security-dropdown .dropdown-item:hover {
    background: var(--navbar-link-hover-bg);
    color: var(--primary-light);
}

[data-theme="dark"] .security-dropdown .dropdown-item:active {
    background: var(--bg-card-hover);
}

[data-theme="dark"] .security-dropdown .dropdown-item:last-child {
    border-top-color: var(--border-color);
    color: var(--primary-light);
}

[data-theme="dark"] .security-dropdown .dropdown-item:last-child:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

[data-theme="dark"] .badge.bg-light {
    background: var(--bg-card) !important;
    color: var(--text-muted) !important;
}
