
:root {
    --primary: #003E53;
    --secondary: #0894C5;
    --accent: #F96F25;
    --primary-light: rgba(0, 62, 83, 0.1);
    --secondary-light: rgba(8, 148, 197, 0.1);
    --accent-light: rgba(249, 111, 37, 0.1);
    --background: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-light: #64748b;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 0.8rem;
}

/* Navigation Icon Buttons */
.nav-icon-btn,
.mobile-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(248, 250, 252, 0.8);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

/* Mobile icon adjustments (smaller size for mobile screens) */
.mobile-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.nav-icon-btn:hover,
.mobile-icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 62, 83, 0.3);
}

.nav-icon-btn:focus,
.mobile-icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Badge Styles */
.notification-badge,
.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse-badge 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.message-badge {
    background: linear-gradient(135deg, #2ed573, #1dd1a1);
    box-shadow: 0 2px 8px rgba(46, 213, 115, 0.4);
}

/* Mobile badge adjustments */
@media (max-width: 768px) {
    .mobile-icon-btn .notification-badge,
    .mobile-icon-btn .message-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -4px;
        right: -4px;
    }
}

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

/* Dropdown Styles */
.notification-dropdown,
.message-dropdown {
    width: 380px;
    max-width: 90vw;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 0.5rem;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    z-index: 1055; /* Higher than offcanvas */
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .notification-dropdown,
    .message-dropdown {
        width: 300px;
        margin-top: 0.25rem;
    }
}

/* Dropdown Headers */
.notification-header,
.message-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header h6,
.message-header h6 {
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.notification-header .badge,
.message-header .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

/* List Containers */
.notification-list,
.message-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-list::-webkit-scrollbar,
.message-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track,
.message-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.notification-list::-webkit-scrollbar-thumb,
.message-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.notification-item:hover {
    background: var(--primary-light);
    color: var(--text);
    transform: translateX(3px);
    border-left-color: var(--primary);
}

.notification-item.unread {
    background: rgba(8, 148, 197, 0.05);
    border-left-color: var(--secondary);
}

.notification-item.unread::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.2); }
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.875rem;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.notification-text {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--text);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Message Items */
.message-item {
    display: flex;
    align-items: flex-start;
    padding: 0.875rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.message-item:hover {
    background: var(--secondary-light);
    color: var(--text);
    transform: translateX(3px);
    border-left-color: var(--secondary);
}

.message-item.unread {
    background: rgba(46, 213, 115, 0.05);
    border-left-color: #2ed573;
}

.message-item.unread::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: #2ed573;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.message-avatar {
    width: 40px;
    height: 40px;
    margin-right: 0.875rem;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--border);
}

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

.message-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.message-sender {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.message-text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Footers */
.notification-footer,
.message-footer {
    padding: 0.75rem 1.25rem;
    background: var(--background);
    border-top: 1px solid var(--border);
    text-align: center;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

/* Profile dropdown without arrow - highly specific selectors */
a#userDropdown.dropdown-toggle::after,
a#userDropdown.dropdown-toggle::before {
    display: none !important;
    content: none !important;
}

/* Remove all dropdown arrows from navbar */
.navbar .dropdown-toggle::after,
.navbar .dropdown-toggle::before {
    display: none !important;
    content: none !important;
}

/* Remove border from profile dropdown */
#userDropdown {
    border: none !important;
}

/* Notification and message buttons should not have arrows either */
.nav-icon-btn::after,
.nav-icon-btn::before,
.mobile-icon-btn::after,
.mobile-icon-btn::before {
    display: none !important;
    content: none !important;
}

/* Ensure sidebar has proper z-index */
.offcanvas {
    z-index: 1060;
}

/* Fade Out Animation */
@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-item,
    .message-item {
        padding: 0.75rem 1rem;
    }

    .notification-avatar,
    .message-avatar {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }

    .notification-text,
    .message-sender {
        font-size: 0.8rem;
    }

    .notification-time,
    .message-time {
        font-size: 0.7rem;
    }
}

