/* ==========================================================================
   Mikara Global Standard Toast Notification System
   ========================================================================== */

#commonToastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 48px);
}

.common-toast {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(40px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.25s ease, max-height 0.25s ease;
    max-height: 200px;
    font-family: inherit;
}

.common-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.common-toast.hide {
    opacity: 0;
    transform: translateX(50px) scale(0.92);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: -12px;
    border-width: 0;
}

/* Icon */
.common-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.common-toast-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Content */
.common-toast-content {
    flex: 1;
    min-width: 0;
}

.common-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 3px;
}

.common-toast-message {
    font-size: 13.5px;
    line-height: 1.45;
    color: #475569;
    word-break: break-word;
}

.common-toast-message strong,
.common-toast-message b {
    font-weight: 600;
    color: #1e293b;
}

/* Close button */
.common-toast-close-btn {
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
    margin-top: -2px;
    margin-right: -4px;
}

.common-toast-close-btn:hover {
    color: #334155;
    background-color: #f1f5f9;
}

/* Toast Variants */
/* Success */
.common-toast.toast-success {
    border-left: 4px solid #10b981;
}
.common-toast.toast-success .common-toast-icon svg {
    stroke: #10b981;
}

/* Error / Danger */
.common-toast.toast-error,
.common-toast.toast-danger {
    border-left: 4px solid #ef4444;
}
.common-toast.toast-error .common-toast-icon svg,
.common-toast.toast-danger .common-toast-icon svg {
    stroke: #ef4444;
}

/* Warning */
.common-toast.toast-warning {
    border-left: 4px solid #f59e0b;
}
.common-toast.toast-warning .common-toast-icon svg {
    stroke: #f59e0b;
}

/* Info */
.common-toast.toast-info {
    border-left: 4px solid #3b82f6;
}
.common-toast.toast-info .common-toast-icon svg {
    stroke: #3b82f6;
}

/* Progress bar timer */
.common-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.06);
}

.common-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

.common-toast.toast-success .common-toast-progress-bar {
    background-color: #10b981;
}
.common-toast.toast-error .common-toast-progress-bar,
.common-toast.toast-danger .common-toast-progress-bar {
    background-color: #ef4444;
}
.common-toast.toast-warning .common-toast-progress-bar {
    background-color: #f59e0b;
}
.common-toast.toast-info .common-toast-progress-bar {
    background-color: #3b82f6;
}

@media (max-width: 576px) {
    #commonToastContainer {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}
