/* ================================================================
   NOTIFICATION BELL COMPONENT
   ================================================================ */

/* Container */
.notification-bell-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Trigger (desktop - matches help icon style) */
.notification-bell-trigger {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    position: relative;
    text-decoration: none;
    padding: 4px;
    transition: color 0.2s;
}
.notification-bell-trigger:hover {
    color: #fff;
}

/* Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background-color: #dc3545;
    border-radius: 10px;
}

/* ================================================================
   DROPDOWN PANEL
   ================================================================ */

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 420px;
    max-height: 520px;
    background: var(--mv-bg-card, #fff);
    border: 1px solid var(--mv-border-color, var(--mv-border-color));
    border-radius: 8px;
    box-shadow: var(--mv-shadow-lg, 0 4px 12px rgba(0,0,0,0.15));
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--mv-border-color, var(--mv-border-color));
    flex-shrink: 0;
}

.notification-dropdown-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mv-text-primary, #212529);
}

.notification-see-all {
    font-size: 0.8rem;
    color: #0d6efd;
    text-decoration: none;
}
.notification-see-all:hover {
    text-decoration: underline;
}

.notification-dropdown-body {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

.notification-dropdown-footer {
    padding: 8px 14px;
    border-top: 1px solid var(--mv-border-color, var(--mv-border-color));
    text-align: center;
    flex-shrink: 0;
}

.notification-dropdown-footer a {
    font-size: 0.8rem;
    color: #0d6efd;
    text-decoration: none;
}
.notification-dropdown-footer a:hover {
    text-decoration: underline;
}

/* ================================================================
   DROPDOWN ITEM OVERRIDES
   Items use shared classes from notifications.css (notif-icon-wrapper,
   notif-content, notif-meta, etc.). These overrides make them compact
   for the dropdown context.
   ================================================================ */

.notification-dropdown-body .notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--mv-border-light, #e9ecef);
    flex-wrap: wrap;
    transition: background 0.15s;
}

.notification-dropdown-body .notification-item:last-child {
    border-bottom: none;
}

.notification-dropdown-body .notification-item:hover {
    background: var(--mv-bg-hover, #e9ecef);
}

/* Compact icon */
.notification-dropdown-body .notif-icon-wrapper {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

/* Compact thumbnail */
.notification-dropdown-body .notif-thumbnail {
    width: 40px;
    height: 40px;
}

/* Content takes remaining space */
.notification-dropdown-body .notif-content {
    flex: 1;
    min-width: 0;
}

.notification-dropdown-body .notif-title {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-bottom: 1px;
}

.notification-dropdown-body .notif-message {
    font-size: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row: wraps to full width below content */
.notification-dropdown-body .notif-meta {
    width: 100%;
    justify-content: flex-end;
    padding-left: 38px;
    gap: 6px;
}

.notification-dropdown-body .notif-time {
    font-size: 0.7rem;
}

/* Title link in dropdown */
.notification-dropdown-body .notif-title-link {
    color: var(--mv-text-link, #0d6efd);
    text-decoration: none;
}
.notification-dropdown-body .notif-title-link:hover {
    text-decoration: underline;
}

/* Section divider */
.notification-section-divider {
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mv-text-muted, #6c757d);
    background: var(--mv-bg-surface, #f8f9fa);
    border-bottom: 1px solid var(--mv-border-light, #e9ecef);
}

/* Empty state */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: var(--mv-text-muted, #6c757d);
}
.notification-empty i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.notification-empty span {
    font-size: 0.85rem;
}

/* ================================================================
   MOBILE BELL
   ================================================================ */

.mobile-bell-btn {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
    padding: 6px;
}
.mobile-bell-btn:hover {
    color: #fff;
}

.mobile-notification-badge {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    color: #fff;
    background-color: #dc3545;
    border-radius: 8px;
}

/* Mobile dropdown - full width */
.mobile-top-header .notification-dropdown {
    position: fixed;
    top: 56px;
    right: 8px;
    left: 8px;
    width: auto;
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

[data-bs-theme="dark"] .notification-dropdown {
    background: var(--mv-bg-card);
    border-color: var(--mv-border-color);
    box-shadow: var(--mv-shadow-lg);
}

[data-bs-theme="dark"] .notification-dropdown-header {
    border-bottom-color: var(--mv-border-color);
}

[data-bs-theme="dark"] .notification-dropdown-title {
    color: var(--mv-text-primary);
}

[data-bs-theme="dark"] .notification-see-all,
[data-bs-theme="dark"] .notification-dropdown-footer a {
    color: var(--mv-text-link);
}

[data-bs-theme="dark"] .notification-dropdown-footer {
    border-top-color: var(--mv-border-color);
}

[data-bs-theme="dark"] .notification-dropdown-body .notification-item {
    border-bottom-color: var(--mv-border-light);
}

[data-bs-theme="dark"] .notification-dropdown-body .notification-item:hover {
    background: var(--mv-bg-hover);
}

[data-bs-theme="dark"] .notification-section-divider {
    background: var(--mv-bg-surface);
    border-bottom-color: var(--mv-border-light);
    color: var(--mv-text-muted);
}

[data-bs-theme="dark"] .notification-empty {
    color: var(--mv-text-muted);
}

[data-bs-theme="dark"] .notification-dropdown-body .notif-title {
    color: var(--mv-text-primary);
}

[data-bs-theme="dark"] .notification-dropdown-body .notif-message {
    color: var(--mv-text-secondary);
}

[data-bs-theme="dark"] .notification-dropdown-body .notif-time {
    color: var(--mv-text-muted);
}

[data-bs-theme="dark"] .notification-dropdown-body .notif-title-link {
    color: var(--mv-text-link);
}
