/* 
 * Global Notifications Styles - Glassmorphism Theme
 * Matches the dark theme used across products, articles, and about pages
 */

:root {
    /* Primary Colors */
    --notification-primary: #00813C;
    --notification-secondary: #00A650;
    --notification-accent: #00C853;
    --notification-gold: #FFD700;

    /* Dark Theme Base */
    --notification-bg-dark: #0a1628;
    --notification-glass: rgba(255, 255, 255, 0.08);
    --notification-glass-border: rgba(255, 255, 255, 0.12);
    --notification-text-primary: #ffffff;
    --notification-text-secondary: rgba(255, 255, 255, 0.7);
    --notification-text-muted: rgba(255, 255, 255, 0.5);

    /* Shadows & Effects */
    --notification-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    --notification-glow: 0 0 30px rgba(0, 200, 83, 0.2);

    /* Type Colors */
    --notification-success: #00C853;
    --notification-warning: #FFD700;
    --notification-error: #ff4757;
    --notification-info: #2196F3;
}

/* ========================================
   NOTIFICATION BELL & WRAPPER
   ======================================== */

/* ========================================
   NOTIFICATION BELL & WRAPPER
   (Commented out to use inline header styles like Admin Dashboard)
   ======================================== */

/*.notifications-wrapper {
    position: relative;
}

.notifications-toggle {
    background: transparent;
    border: none;
    color: var(--notification-text-primary);
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.notifications-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.notifications-toggle:active {
    transform: scale(0.95);
}

.notifications-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--notification-accent), var(--notification-secondary));
    color: white;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
    animation: badge-pulse 2s infinite;
    border: 2px solid var(--notification-bg-dark);
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 200, 83, 0);
    }
}*/

/* ========================================
   NOTIFICATIONS DROPDOWN MENU
   ======================================== */

/*.notifications-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    width: min(400px, calc(100vw - 40px));
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--notification-glass-border);
    border-radius: 20px;
    box-shadow: var(--notification-shadow);
    display: none;
    z-index: 9999;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    animation: menu-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-menu.show,
.notifications-menu.dropdown-menu.show {
    display: block !important;
}

@keyframes menu-slide {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}*/

/* ========================================
   NOTIFICATION HEADER
   ======================================== */

/*.notification-header {
    background: linear-gradient(135deg, var(--notification-primary), var(--notification-accent));
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 19px 19px 0 0;
}

.notification-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-header .clear-all {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-header .clear-all:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}*/

/* ========================================
   NOTIFICATION LIST
   ======================================== */

/*.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--notification-glass-border);
    color: var(--notification-text-primary);
    text-decoration: none;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--notification-accent), var(--notification-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--notification-text-primary);
}

.notification-item:hover::before {
    opacity: 1;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(0, 200, 83, 0.15);
    color: var(--notification-success);
}

.notification-icon.warning {
    background: rgba(255, 215, 0, 0.15);
    color: var(--notification-warning);
}

.notification-icon.error {
    background: rgba(255, 71, 87, 0.15);
    color: var(--notification-error);
}

.notification-icon.info {
    background: rgba(33, 150, 243, 0.15);
    color: var(--notification-info);
}

.notification-icon.default {
    background: rgba(0, 200, 83, 0.15);
    color: var(--notification-accent);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--notification-text-primary);
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.notification-time,
.timestamp {
    font-size: 0.8rem;
    color: var(--notification-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}*/

/* ========================================
   EMPTY STATE
   ======================================== */

/*.no-notifications {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--notification-text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-notifications i {
    font-size: 3rem;
    opacity: 0.3;
    color: var(--notification-accent);
}

.no-notifications span {
    font-size: 0.95rem;
}*/

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    max-width: min(400px, calc(100vw - 3rem));
    pointer-events: none;
}

.toast {
    background: var(--notification-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--notification-glass-border);
    border-radius: 16px;
    width: 100%;
    pointer-events: auto;
    animation: toast-slide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: var(--notification-shadow);
}

@keyframes toast-slide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-header {
    background: linear-gradient(135deg, var(--notification-primary), var(--notification-accent));
    color: white;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.toast-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.toast-header .btn-close:hover {
    opacity: 1;
}

.toast-body {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--notification-text-primary);
}

/* Toast Types */
.toast.success .toast-header {
    background: linear-gradient(135deg, #00813C, #00C853);
}

.toast.warning .toast-header {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.toast.error .toast-header {
    background: linear-gradient(135deg, #DC2626, #EF4444);
}

.toast.info .toast-header {
    background: linear-gradient(135deg, #0284C7, #38BDF8);
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

.notifications-list::-webkit-scrollbar,
.notifications-menu::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track,
.notifications-menu::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb,
.notifications-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 83, 0.3);
    border-radius: 6px;
}

.notifications-list::-webkit-scrollbar-thumb:hover,
.notifications-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 200, 83, 0.5);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .notifications-menu {
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 80px);
        border-radius: 16px;
    }

    .notification-item {
        padding: 0.875rem 1rem;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* ========================================
   UNREAD INDICATOR
   ======================================== */

.notification-item.unread::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--notification-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
}

/* ========================================
   VIEW ALL LINK
   ======================================== */

.notification-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--notification-glass-border);
}

.view-all-link {
    color: var(--notification-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: white;
}

/* ========================================
   CLEAR ALL BUTTON (Footer Style)
   ======================================== */

#clear-all-notifications,
#clearNotifications {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.2));
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b7a;
    text-align: center;
    font-weight: 600;
    border-radius: 0 0 19px 19px;
    transition: all 0.3s ease;
}

#clear-all-notifications:hover,
#clearNotifications:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.3));
    color: #ff8a95;
}