/* ===== Base container ===== */
.notifierContainer{
    z-index: 999999999999999;
    position: fixed;
    top: 16px;
    right: 16px;
    left: auto;
    width: 380px;
    max-width: calc(100vw - 32px);
    min-width: 300px;
    padding: 0;
    margin: 0;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #1e293b;
    opacity: 0;
    transform: translateX(20px);
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.notifierContainer.animate{
    opacity: 1;
    transform: translateX(0);
}

/* ===== Card structure ===== */
.notifier-card{
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}

.notifier-card-header{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 0 16px;
}

.notifier-card-icon{
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.notifier-card-title{
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    letter-spacing: 0.01em;
}

.notifier-card-body{
    padding: 10px 16px 14px 16px;
}

.notifier-card-body .notifierMessage{
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: #475569;
    word-break: break-word;
    text-align: left;
}

.notifier-card-footer{
    padding: 0 16px 14px 16px;
    display: flex;
    justify-content: flex-end;
}

.notifier-card-footer:empty,
.notifier-card-footer .notifierButtons:empty{
    display: none;
}

.notifier-card-footer .buttonsContainer{
    display: flex;
    gap: 8px;
    padding: 0;
}

/* ===== Close button ===== */
.notifierContainer .notifierCloseBtn{
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease, color 150ms ease;
}

.notifierContainer .notifierCloseBtn:hover{
    background: #f1f5f9;
    color: #475569;
}

/* ===== Per-type action buttons ===== */
.notifier-card-footer button{
    font-size: 12px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

/* ===== Error theme ===== */
.notifierContainer.error .notifier-card{
    border-left: 4px solid #DC2626;
}

.notifierContainer.error .notifier-card-title{
    color: #DC2626;
}

.notifierContainer.error .notifier-card-footer button:hover{
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

/* ===== Success theme ===== */
.notifierContainer.success .notifier-card{
    border-left: 4px solid #16a34a;
}

.notifierContainer.success .notifier-card-title{
    color: #16a34a;
}

.notifierContainer.success .notifier-card-footer button:hover{
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

/* ===== Info theme ===== */
.notifierContainer.information .notifier-card{
    border-left: 4px solid #2563eb;
}

.notifierContainer.information .notifier-card-title{
    color: #2563eb;
}

.notifierContainer.information .notifier-card-footer button:hover{
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ===== Warning theme ===== */
.notifierContainer.warning .notifier-card{
    border-left: 4px solid #d97706;
}

.notifierContainer.warning .notifier-card-title{
    color: #d97706;
}

.notifierContainer.warning .notifier-card-footer button:hover{
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}
