/* DealGram - Navbar Tab - Turquoise Theme */

.top-navbar-tab {
    position: fixed;
    top: 20px;
    right: 20px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 28px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.top-navbar-tab:hover {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark-mode .top-navbar-tab {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-tab-wrapper {
    height: 100%;
    padding: 0 8px;
    display: flex;
    align-items: center;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   NAV TAB ITEMS
   ============================================ */
.nav-tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary, #64748b);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 13px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-tab-item i,
.nav-tab-item svg {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.nav-tab-item:hover:not(.disabled):not(.active) {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(6, 182, 212, 0.05));
    color: #14b8a6;
}

.nav-tab-item:hover:not(.disabled):not(.active) i,
.nav-tab-item:hover:not(.disabled):not(.active) svg {
    transform: scale(1.1);
}

.dark-mode .nav-tab-item {
    color: var(--text-secondary, #94a3b8);
}

.dark-mode .nav-tab-item:hover:not(.disabled):not(.active) {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

/* Active state - Turquoise gradient */
.nav-tab-item.active {
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.nav-tab-item.active:hover {
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.45);
    transform: translateY(-1px);
}

.nav-tab-item.active i,
.nav-tab-item.active svg {
    color: white;
}

/* Disabled state */
.nav-tab-item.disabled {
    color: var(--text-tertiary, #94a3b8);
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-tab-item.disabled:hover {
    background: transparent;
    color: var(--text-tertiary, #94a3b8);
}

.nav-tab-item .lock-icon {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.7;
}

/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */
.notifications-dropdown-wrapper {
    position: relative;
}

.notifications-btn {
    position: relative;
}

.notifications-btn:hover:not(.active) {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(6, 182, 212, 0.05));
    color: #14b8a6;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: badge-pulse 2s infinite;
}

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

/* ============================================
   NOTIFICATIONS PANEL
   ============================================ */
.notifications-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    background: var(--bg-card, white);
    border-radius: 16px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
    display: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light, rgba(0, 0, 0, 0.06));
    overflow: hidden;
}

.dark-mode .notifications-panel {
    background: var(--bg-card, #1e293b);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.notifications-panel.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.05));
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.03), rgba(6, 182, 212, 0.01));
}

.dark-mode .notifications-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    background: rgba(20, 184, 166, 0.05);
}

.notifications-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notifications-header h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    border-radius: 50%;
}

.mark-all-read {
    background: transparent;
    border: none;
    color: #14b8a6;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mark-all-read:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: scale(1.05);
}

.dark-mode .mark-all-read {
    color: #2dd4bf;
}

/* ============================================
   NOTIFICATION ITEMS
   ============================================ */
.notifications-list {
    max-height: 380px;
    overflow-y: auto;
}

.notifications-list::-webkit-scrollbar {
    width: 5px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.dark-mode .notifications-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.notification-item {
    padding: 12px 18px;
    display: flex;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.03));
}

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

.notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.dark-mode .notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), rgba(6, 182, 212, 0.03));
    border-left: 3px solid #14b8a6;
}

.notification-item.unread:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(6, 182, 212, 0.05));
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notification-icon.info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(14, 165, 233, 0.08));
    color: #06b6d4;
}

.notification-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
    color: #10b981;
}

.notification-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.08));
    color: #f59e0b;
}

.notification-icon.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08));
    color: #ef4444;
}

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

.notification-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.notification-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.mark-read {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.notification-item:hover .mark-read {
    opacity: 1;
}

.mark-read:hover {
    background: rgba(20, 184, 166, 0.2);
    transform: scale(1.1);
}

/* ============================================
   NOTIFICATIONS FOOTER
   ============================================ */
.notifications-footer {
    padding: 12px;
    border-top: 1px solid var(--border-light, rgba(0, 0, 0, 0.05));
    text-align: center;
    background: var(--bg-secondary, #f8fafc);
}

.dark-mode .notifications-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.notifications-footer a {
    color: #14b8a6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notifications-footer a:hover {
    background: rgba(20, 184, 166, 0.1);
}

.notifications-footer a::after {
    content: '→';
    transition: transform 0.2s ease;
}

.notifications-footer a:hover::after {
    transform: translateX(3px);
}

.dark-mode .notifications-footer a {
    color: #2dd4bf;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.notifications-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-tertiary);
}

.notifications-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.4;
    color: #14b8a6;
}

.notifications-empty p {
    font-size: 13px;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .top-navbar-tab {
        right: 12px;
        top: 12px;
        height: 52px;
        border-radius: 26px;
    }
    
    .nav-tab-wrapper {
        padding: 0 6px;
    }
    
    .nav-tab-item {
        padding: 10px 12px;
    }
    
    .nav-tab-item span {
        display: none;
    }
    
    .nav-tab-item i,
    .nav-tab-item svg {
        font-size: 16px;
    }
    
    .notifications-panel {
        width: calc(100vw - 24px);
        right: -6px;
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .top-navbar-tab {
        right: 8px;
        top: 8px;
        height: 48px;
        border-radius: 24px;
    }
    
    .nav-tab-item {
        padding: 8px 10px;
    }
    
    .nav-items {
        gap: 2px;
    }
}