/* Notifications Styles */

/* Notification Bell Icon */
.notifications-wrapper {
    position: relative;
    display: inline-block;
}

.notifications-bell {
    position: relative;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray-700);
    transition: color 0.3s ease;
}

.notifications-bell:hover {
    color: var(--primary);
}

#notifications-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.notifications-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notifications Header */
.notifications-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.mark-all-read-btn:hover {
    background: var(--primary-light);
}

/* Notifications List */
#notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

#notifications-list::-webkit-scrollbar {
    width: 6px;
}

#notifications-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

#notifications-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

/* Notification Item */
.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    display: flex;
    gap: 12px;
    align-items: start;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-item.unread:hover {
    background: #dbeafe;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 18px;
    color: var(--primary);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: var(--gray-500);
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Notifications Footer */
.notifications-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    background: var(--gray-50);
}

.view-all-notifications {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-notifications:hover {
    color: var(--primary-dark);
}

/* Empty State */
.notifications-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-500);
}

.notifications-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.notifications-empty p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .notifications-dropdown {
        width: calc(100vw - 32px);
        right: -100px;
    }
}
