/* ========================================
   Notifications Styles
   ======================================== */

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: auto;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.bell-icon {
    font-size: 1.3rem;
    transition: transform 0.2s;
}

.notification-bell:hover .bell-icon {
    transform: scale(1.1);
}

.bell-label {
    font-size: 0.7rem;
    color: var(--text3);
    margin-right: 0.2rem;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 360px;
    max-height: 500px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 9999;
    overflow: hidden;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.notification-panel-header .btn-link {
    background: none;
    border: none;
    color: var(--green);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.notification-panel-header .btn-link:hover {
    text-decoration: underline;
}

.notification-panel-body {
    max-height: 400px;
    overflow-y: auto;
}

/* Notification Item */
.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--bg2);
}

.notification-item.unread {
    background: rgba(16, 185, 129, 0.05);
    border-right: 3px solid var(--green);
}

.notification-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.notification-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.notification-item-message {
    font-size: 0.8rem;
    color: var(--text2);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-time {
    font-size: 0.7rem;
    color: var(--text3);
}

/* Empty State */
.notification-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text3);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .notification-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }
}
