/* Toast notification system (admin dashboard) */
.notification-container {
    position: fixed;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.notification-container.top-right {
    top: 20px;
    right: 16px;
    align-items: flex-end;
}

.notification-container.top-left {
    top: 20px;
    left: 16px;
    align-items: flex-start;
}

.notification-container.bottom-right {
    bottom: 20px;
    right: 16px;
    align-items: flex-end;
}

.notification-container.bottom-left {
    bottom: 20px;
    left: 16px;
    align-items: flex-start;
}

.notification-container.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #18181b;
    border: 1px solid #3f3f46;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    color: #f4f4f5;
    font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-width: 280px;
    max-width: 420px;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.notification-animated {
    animation: notification-slide-in 0.3s ease forwards;
}

@keyframes notification-slide-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.notification-hide {
    opacity: 0;
    transform: translateX(24px);
}

.notification-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

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

.notification-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notification-message {
    font-size: 13px;
    color: #d4d4d8;
    word-wrap: break-word;
}

.notification-message strong {
    color: #fafafa;
    font-weight: 600;
}

.notification-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 2px;
    font-size: 18px;
    line-height: 1;
    margin: -2px -4px 0 0;
}

.notification-close:hover {
    color: #fafafa;
}

.notification-success {
    border-color: rgba(16, 185, 129, 0.45);
}

.notification-success .notification-icon {
    color: #34d399;
}

.notification-success .notification-title {
    color: #34d399;
}

.notification-error {
    border-color: rgba(239, 68, 68, 0.45);
}

.notification-error .notification-icon {
    color: #f87171;
}

.notification-error .notification-title {
    color: #f87171;
}

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

.notification-warning .notification-icon {
    color: #fbbf24;
}

.notification-warning .notification-title {
    color: #fbbf24;
}

.notification-info {
    border-color: rgba(59, 130, 246, 0.45);
}

.notification-info .notification-icon {
    color: #60a5fa;
}

.notification-info .notification-title {
    color: #60a5fa;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.notification {
    position: relative;
    overflow: hidden;
}

.notification-progress-inner {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
}

.notification-success .notification-progress-inner {
    background: #10b981;
}

.notification-error .notification-progress-inner {
    background: #ef4444;
}

.notification-warning .notification-progress-inner {
    background: #f59e0b;
}

.notification-info .notification-progress-inner {
    background: #3b82f6;
}

.notification-progress-active {
    animation: notification-progress linear forwards;
}

@keyframes notification-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 480px) {
    .notification-container {
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        transform: none;
    }

    .notification-container.top-center {
        left: 16px;
        right: 16px;
        transform: none;
    }

    .notification {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}
