﻿/* Notification styling */
#notificationDropdown {
    position: absolute;
    top: 3.5rem;
    right: -112px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    z-index: 1050; /* Increased z-index to appear above chat UI */
    padding: 10px;
    border: 1px solid #eee;
}

/* Add this class for Tailwind compatibility */
.tw-hidden {
    display: none !important;
}

/* Scrollable notifications area */
#notificationScroll {
    max-height: 250px; /* Adjust based on desired scrollable area */
    overflow-y: auto;
}

/* Notification list styling */
.notification {
    /*  border-radius: 5px; */
    display: flex;
    align-items: flex-start;
    padding: 10px;
    position: relative;
}

/* Notification text and content styling */
.notification-element {
    font-size: 12px;
}

/* Container for the notification image */
.notification .image-container {
    position: relative;
}

/* Style for notification image */
.notification .notificationImage {
    max-width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #aaa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

/* Notification overlay based on type */
.notificationoverlay {
    position: absolute;
    bottom: -2px;
    right: 12px;
    width: 15px;
    height: 15px;
    max-width: 16px;
    max-height: 16px;
}

/* Style for the red bell icon with notification count */
.bell-icon {
    position: relative;
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1020; /* Add z-index to icons */
}

    .bell-icon i {
        color: #444;
        font-size: 16px;
    }

/* Style for the notification count inside the bell */
.bell-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 16px;
    height: 16px;
    padding: 2px;
    border: 1px solid #fff;
    border-radius: 10px;
    text-align: center;
    font-family: "Roboto", "Arial", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    z-index: 1021; /* Ensure badge is above the icon */
}

/* Specifically target cart count to ensure proper positioning */
#cartCount {
    top: -5px;
    right: -5px;
}

/* Button container for "Mark all as read" */
.mark-all-read-container {
    padding: 10px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* App header styling */
.app-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Container for top icons */
.top-icons {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap between icons */
    position: relative; /* Ensure proper positioning context */
    z-index: 1010; /* Add z-index to container */
}

/* Container for individual icons - crucial for dropdown positioning */
#notificationContainer, #messageContainer, #cartContainer {
    position: relative;
}

/* Popup menu styling */
#popupMenu {
    position: absolute;
    right: 0;
    z-index: 1050;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Make nav container relative for proper dropdown positioning */
nav {
    position: relative;
    z-index: 1000; /* Match highest z-index */
}

/* For mobile devices */
@media (max-width: 768px) {
    #notificationDropdown {
        width: calc(100vw - 20px);
        right: -108px;
        z-index: 950;
    }

    #notificationScroll {
        max-height: 60vh; /* More space on small screens */
    }

    #popupMenu {
        width: min(90vw, 300px);
        right: 0;
        z-index: 1050;
    }
}

/* For very small devices */
@media (max-width: 360px) {
    #notificationDropdown {
        z-index: 950;
    }
}

/* Thin scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 8px; /* Change to desired width */
    height: 8px; /* Change for horizontal scrollbar */
}

::-webkit-scrollbar-thumb {
    background-color: darkgray; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded edges */
}

::-webkit-scrollbar-track {
    background: lightgray; /* Color of the track */
    border-radius: 10px; /* Rounded edges */
}
