/* ============================================
   NOTIFICATION DROPDOWN - 2026 MODERN DESIGN
   ============================================ */

/* Dropdown Container Reset */
#notifDropdownWrapper .dropdown-menu {
    padding: 0 !important;
    overflow: hidden !important;
    min-width: 360px !important;
    max-width: 400px !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18) !important;
    background: #ffffff !important;
}

/* Reset all li elements inside */
#notifDropdownWrapper .dropdown-menu > li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border: none !important;
}

/* Header Wrapper */
#notifDropdownWrapper .notif-dropdown-header-wrapper {
    background: transparent !important;
}

#notifDropdownWrapper .notif-dropdown-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#notifDropdownWrapper .notif-dropdown-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
    background: none;
    padding: 0;
}

#notifDropdownWrapper .notif-dropdown-title i {
    color: #3b82f6;
}

#notifDropdownWrapper .notif-mark-all-btn {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3b82f6;
    background: none;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#notifDropdownWrapper .notif-mark-all-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* List Wrapper */
#notifDropdownWrapper .notif-list-wrapper {
    background: transparent !important;
}

#notifDropdownWrapper .notif-list-container {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    background: #ffffff;
}

#notifDropdownWrapper .notif-list-container::-webkit-scrollbar {
    width: 5px;
}

#notifDropdownWrapper .notif-list-container::-webkit-scrollbar-track {
    background: transparent;
}

#notifDropdownWrapper .notif-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Notification Item */
#notifDropdownWrapper .notif-item {
    display: flex !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    position: relative !important;
    background: #ffffff !important;
    color: inherit !important;
}

#notifDropdownWrapper .notif-item:last-child {
    border-bottom: none !important;
}

#notifDropdownWrapper .notif-item:hover {
    background: #f8fafc !important;
}

#notifDropdownWrapper .notif-item.unread {
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%) !important;
    border-left: 3px solid #3b82f6 !important;
}

#notifDropdownWrapper .notif-item.unread:hover {
    background: linear-gradient(90deg, #dbeafe 0%, #f1f5f9 100%) !important;
}

/* Notification Icon */
#notifDropdownWrapper .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

#notifDropdownWrapper .notif-icon.connections { background: #dbeafe; color: #2563eb; }
#notifDropdownWrapper .notif-icon.messages { background: #cffafe; color: #0891b2; }
#notifDropdownWrapper .notif-icon.tenders { background: #fef3c7; color: #d97706; }
#notifDropdownWrapper .notif-icon.purchases { background: #dcfce7; color: #16a34a; }
#notifDropdownWrapper .notif-icon.properties { background: #fee2e2; color: #dc2626; }
#notifDropdownWrapper .notif-icon.documents { background: #e0e7ff; color: #4f46e5; }
#notifDropdownWrapper .notif-icon.payments { background: #d1fae5; color: #059669; }
#notifDropdownWrapper .notif-icon.consultations { background: #f3e8ff; color: #9333ea; }
#notifDropdownWrapper .notif-icon.system { background: #f1f5f9; color: #64748b; }
#notifDropdownWrapper .notif-icon.other { background: #f1f5f9; color: #64748b; }

/* Notification Content */
#notifDropdownWrapper .notif-content {
    flex: 1;
    min-width: 0;
}

#notifDropdownWrapper .notif-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

#notifDropdownWrapper .notif-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    background: none;
    padding: 0;
}

#notifDropdownWrapper .notif-time {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

#notifDropdownWrapper .notif-message {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#notifDropdownWrapper .notif-unread-dot {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Empty State */
#notifDropdownWrapper .notif-empty {
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
}

#notifDropdownWrapper .notif-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

#notifDropdownWrapper .notif-empty-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 8px;
}

#notifDropdownWrapper .notif-empty-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none !important;
}

#notifDropdownWrapper .notif-empty-link:hover {
    color: #1d4ed8 !important;
}

/* Footer */
#notifDropdownWrapper .notif-footer-wrapper {
    background: transparent !important;
}

#notifDropdownWrapper .notif-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    text-align: center;
}

#notifDropdownWrapper .notif-footer-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    padding: 0;
    background: none !important;
}

#notifDropdownWrapper .notif-footer-link:hover {
    color: #1d4ed8 !important;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

html[data-theme='dark'] #notifDropdownWrapper .dropdown-menu {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-dropdown-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom-color: #475569;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-dropdown-title {
    color: #f1f5f9;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-list-container {
    background: #1e293b;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-item {
    border-bottom-color: #334155 !important;
    background: #1e293b !important;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-item:hover {
    background: #334155 !important;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-item.unread {
    background: linear-gradient(90deg, #1e3a5f 0%, #1e293b 100%) !important;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-title {
    color: #f1f5f9;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-message {
    color: #94a3b8;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-top-color: #475569;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-empty {
    background: #1e293b;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-empty-icon {
    background: #334155;
    color: #64748b;
}

html[data-theme='dark'] #notifDropdownWrapper .notif-empty-text {
    color: #94a3b8;
}
