@import url('common.css');

.notification-img {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.notification-img svg {
    width: 100%;
    height: 100%;
    display: block;
}

.notification-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.notification-icon {
    display: flex;
    margin-right: 8px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    fill: var(--icon-color);
}

/* notifications.css */
#notifications-panel {
    position: absolute;
    bottom: 280px;
    left: 270px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 990;
    background: none;
}

.notification {
    background: #323232;
    color: #fff;
    min-height: 16px;
    padding: 6px 12px 10px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* If you change FADE_OUT_DURATION in JS, update here too! */
    font-size: var(--font-size-normal);
    width: 100%;
    pointer-events: auto;
    white-space: pre-line;
    position: relative;
}

.notification-message {
    white-space: pre-line;
    word-break: break-word;
    margin-left: 8px;
}

.notification-progressbar {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--2-color);
    opacity: 0.7;
    transition: width 3s linear;
    border-radius: 0 0 6px 6px;
    pointer-events: none;
}

.notification-tip {
    background: #00aeff;
    color: #fff;
    border-color: rgb(0, 132, 255);
}

.notification-info {
    background: var(--0-color);
    color: #fff;
}

.notification-success {
    background: #43a047;
    color: #fff;
}

.notification-warning {
    background: #ffa000;
    color: #fff;
}

.notification-error {
    background: #9e1e1c;
    color: #fff;
}

.notification.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}