/**
 * Notification Dropdown CSS
 */

/* Notification Bell */
.notification-wrapper {
    position: relative;
}

.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-bell.has-notifications {
    color: var(--accent-color, #D97757) !important;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Notification Dropdown */
#notificationDropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color, #FFFFFF);
    border: 1px solid var(--border-color, #E6E4DD);
    border-radius: 8px;
    min-width: 320px;
    max-width: 360px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    margin-top: 8px;
    display: none;
    padding: 8px;
    max-height: 480px;
    overflow: hidden;
}

.notification-header {
    padding: 0.5rem 1rem;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary, #191919);
}

.notification-header button {
    background: none;
    border: none;
    color: var(--text-secondary, #5F5F5F);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

.notification-header button:hover {
    color: var(--text-primary, #191919);
}

#notificationList {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

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

.notification-item.unread {
    background: rgba(217, 119, 87, 0.05);
}

.notification-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    background: #f0f0f0;
}

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

.notification-item .text {
    font-size: 0.9rem;
    color: var(--text-primary, #191919);
    line-height: 1.4;
}

.notification-item .time {
    font-size: 0.75rem;
    color: var(--text-secondary, #5F5F5F);
    margin-top: 4px;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #5F5F5F);
}

.notification-empty i {
    font-size: 32px;
    opacity: 0.3;
    margin-bottom: 8px;
}

/* Notification Page Styles */
.notification-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.notification-tabs {
    display: flex;
    gap: 8px;
}

.notification-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color, #E6E4DD);
    border-radius: 20px;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary, #5F5F5F);
    transition: all 0.2s;
}

.notification-tab:hover {
    background: #f8f9fa;
}

.notification-tab.active {
    background: var(--text-primary, #191919);
    color: white;
    border-color: var(--text-primary, #191919);
}

.notification-page-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color, #E6E4DD);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.notification-page-item:hover {
    border-color: var(--accent-color, #D97757);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notification-page-item.unread {
    background: rgba(217, 119, 87, 0.03);
    border-color: var(--accent-color, #D97757);
}

.notification-page-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    background: #f0f0f0;
}

.notification-page-item .content {
    flex: 1;
}

.notification-page-item .content .text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary, #191919);
}

.notification-page-item .content .time {
    font-size: 13px;
    color: var(--text-secondary, #5F5F5F);
    margin-top: 4px;
}

.notification-page-item .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color, #D97757);
    border-radius: 50%;
    position: absolute;
    top: 16px;
    right: 16px;
}

