/* Notification Styles — Corporate Internal Tool Design */
.alert-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    padding: 0;
    border-radius: 8px;
    z-index: 10000;
    width: auto;
    max-width: calc(100vw - 48px);
    font-family: 'Calibri', 'Roboto', sans-serif;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Alert Inner Container */
.alert-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

/* Alert Icon */
.alert-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alert Content */
.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.alert-message {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #2C333A;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Close Button */
.alert-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    color: #94a3b8;
    margin: 0 -2px 0 0;
}

.alert-close:hover {
    color: #475569;
    background-color: #f1f5f9;
}

/* Progress Bar */
.alert-progress {
    height: 2px;
    width: 100%;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.alert-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: progressShrink linear forwards;
}

@keyframes progressShrink {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* ── Success ── */

.alert-notification.alert-success .alert-icon {
    color: #10b981;
}

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

/* ── Warning ── */

.alert-notification.alert-warning .alert-icon {
    color: #f59e0b;
}

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

/* ── Error ── */

.alert-notification.alert-error .alert-icon {
    color: #dc3545;
}

.alert-notification.alert-error .alert-progress-bar {
    background: #dc3545;
}

/* ── Info ── */

.alert-notification.alert-info .alert-icon {
    color: #4a90e2;
}

.alert-notification.alert-info .alert-progress-bar {
    background: #4a90e2;
}
