/* ═══════════════════════════════
   NOTIFICATIONS DROPDOWN
═══════════════════════════════ */
.topbar-notif-dropdown {
    position: absolute;
    top: 60px;
    right: 24px;
    width: 340px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .topbar-notif-dropdown {
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.topbar-notif-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar-notif-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-notif-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.topbar-notif-header span {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(16,185,129,0.1);
    color: #10b981;
    padding: 4px 8px;
    border-radius: 12px;
}

.topbar-notif-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.topbar-notif-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    text-decoration: none;
}

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

.topbar-notif-item:hover {
    background: var(--bg-hover);
}

.topbar-notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.topbar-notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topbar-notif-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.topbar-notif-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.topbar-notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Notification Badge on Bell */
.study-topbar__icon-btn[aria-label="Notifications"] {
    position: relative;
}

.study-topbar__notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
}


/* ═══════════════════════════════
   SPOTLIGHT SEARCH MODAL
═══════════════════════════════ */
.topbar-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    padding-top: 15vh;
    padding-left: 1rem;
    padding-right: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.topbar-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.topbar-search-modal {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-surface);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-search-overlay.active .topbar-search-modal {
    transform: scale(1);
}

.topbar-search-input-wrap {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-glass);
    gap: 16px;
}

.topbar-search-input-wrap i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

#topbarSearchInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

#topbarSearchInput::placeholder {
    color: var(--text-muted);
}

.topbar-search-close {
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.topbar-search-close:hover {
    background: var(--border-glass);
}

.topbar-search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
}

.topbar-search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.topbar-search-result-item.active,
.topbar-search-result-item:hover {
    background: rgba(16, 185, 129, 0.1);
}

.topbar-search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
}

.topbar-search-result-item.active .topbar-search-result-icon,
.topbar-search-result-item:hover .topbar-search-result-icon {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.topbar-search-result-text {
    flex: 1;
}

.topbar-search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.topbar-search-result-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.3;
}

.topbar-search-result-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.topbar-search-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.topbar-search-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    opacity: 0.5;
}
