
.realtime-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.realtime-toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transform: translateX(450px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #7c3aed;
    max-width: 100%;
}

.realtime-toast--show {
    transform: translateX(0);
}

.realtime-toast:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.realtime-toast__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #6ee7b7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.realtime-toast__icon svg {
    width: 20px;
    height: 20px;
}

.realtime-toast--new_offer {
    border-left-color: #3b82f6;
}

.realtime-toast--new_offer .realtime-toast__icon {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.realtime-toast--offer_accepted {
    border-left-color: #10b981;
}

.realtime-toast--offer_accepted .realtime-toast__icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.realtime-toast--new_message {
    border-left-color: #34d399;
}

.realtime-toast--new_message .realtime-toast__icon {
    background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
}

.realtime-toast--payment_received {
    border-left-color: #10b981;
}

.realtime-toast--payment_received .realtime-toast__icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.realtime-toast--job_completed {
    border-left-color: #06b6d4;
}

.realtime-toast--job_completed .realtime-toast__icon {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
}

.realtime-toast__content {
    flex: 1;
    min-width: 0;
}

.realtime-toast__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.realtime-toast__message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.realtime-toast__close {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}

.realtime-toast__close:hover {
    background: #f3f4f6;
    color: #111827;
}

.realtime-toast__close svg {
    width: 16px;
    height: 16px;
}

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

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

.notification-center {
    position: relative;
}

.notification-center__trigger {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.notification-center__trigger:hover {
    background: #f3f4f6;
    color: #111827;
}

.notification-center__trigger svg {
    width: 20px;
    height: 20px;
}

.notification-center__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    border: 1px solid #e5e7eb;
}

.notification-center__dropdown.active {
    display: flex;
}

.notification-center__header {
    padding: 20px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff !important;
}

.notification-center__title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.notification-center__mark-all {
    font-size: 13px;
    color: #7c3aed;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.notification-center__mark-all:hover {
    background: rgba(124, 58, 237, 0.1);
}

.notification-center__list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    background: #ffffff !important;
}

.notification-center__item {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-center__item:hover {
    background: #f9fafb;
}

.notification-center__item.unread {
    background: rgba(124, 58, 237, 0.05);
}

.notification-center__item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #6ee7b7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-center__item-icon svg {
    width: 18px;
    height: 18px;
}

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

.notification-center__item-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.notification-center__item-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-center__item-time {
    font-size: 12px;
    color: #9ca3af;
}

.notification-center__empty {
    padding: 60px 20px;
    background: #ffffff !important;
    text-align: center;
    color: #9ca3af;
}

.notification-center__empty svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.notification-center__empty-text {
    font-size: 14px;
}

.user-presence {
    position: relative;
    display: inline-block;
}

.user-presence__indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: #9ca3af;
}

.user-presence__indicator.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.user-presence__indicator.away {
    background: #10b981;
}

.user-presence__indicator.offline {
    background: #9ca3af;
}

@media (max-width: 768px) {
    .realtime-toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .notification-center__dropdown {
        width: calc(100vw - 40px);
        max-width: 380px;
    }
}
