/* Стили для всплывающих уведомлений по задачам. */

.topbar-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.task-notifications-toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 24px));
    pointer-events: none;
}

.task-notification-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    padding-right: 44px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(17, 24, 39, 0.96);
    color: #f8fafc;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
    animation: task-notification-toast-in 180ms ease-out;
}

.task-notification-toast:hover,
.task-notification-toast:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.task-notification-toast__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.task-notification-toast__body:hover,
.task-notification-toast__body:focus-visible {
    outline: none;
}

.task-notification-toast__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
}

.task-notification-toast__message {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.9);
    word-break: break-word;
}

.task-notification-toast__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: rgba(248, 250, 252, 0.72);
}

.task-notification-toast__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: rgba(248, 250, 252, 0.8);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.task-notification-toast__close:hover,
.task-notification-toast__close:focus-visible {
    color: #ffffff;
    outline: none;
}

.task-notification-toast__link-hint {
    font-weight: 700;
    color: #93c5fd;
}

.task-notification-toast--success {
    border-color: rgba(34, 197, 94, 0.2);
}

.task-notification-toast--warning {
    border-color: rgba(245, 158, 11, 0.2);
}

.task-notification-toast--neutral {
    border-color: rgba(148, 163, 184, 0.2);
}

.task-notification-toast--urgent {
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow: 0 18px 36px rgba(127, 29, 29, 0.22);
}

.task-notification-toast--urgent .task-notification-toast__title {
    color: #fecaca;
}

.task-notification-toast--urgent .task-notification-toast__link-hint {
    color: #fca5a5;
}

.task-notification-toast--subtle {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.92);
}

.task-notification-toast--subtle .task-notification-toast__title {
    color: #e2e8f0;
}

.task-notification-toast--subtle .task-notification-toast__message,
.task-notification-toast--subtle .task-notification-toast__meta {
    color: rgba(226, 232, 240, 0.84);
}

@keyframes task-notification-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .task-notifications-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .task-notification-toast {
        padding: 13px 14px;
        padding-right: 40px;
        border-radius: 14px;
    }
}
