/* Alert system */


    /* CONTAINER */
.apple-alerts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TOAST */
.apple-toast {
    width: 320px;
    border-radius: 14px;
    padding: 12px 14px;

    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.15);

    transform: translateY(-20px) scale(0.95);
    opacity: 0;

    animation: appleIn 0.45s cubic-bezier(.2,.8,.2,1) forwards;
}

/* ENTRY */
@keyframes appleIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* EXIT */
.apple-toast.hide {
    animation: appleOut 0.35s ease forwards;
}

@keyframes appleOut {
    to {
        transform: translateY(-15px) scale(0.95);
        opacity: 0;
    }
}

/* INNER */
.apple-toast-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ICON */
.apple-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TEXT */
.apple-text strong {
    font-size: 13px;
    letter-spacing: 0.5px;
}

.apple-text p {
    font-size: 12px;
    color: #555;
    margin: 2px 0 0;
}

/* CLOSE */
.apple-close {
    margin-left: auto;
    border: none;
    background: none;
    font-size: 16px;
    opacity: 0.5;
    cursor: pointer;
}

.apple-close:hover {
    opacity: 1;
}

/* COLORS */
.apple-success .apple-icon { background:#2ecc71; color:#fff; }
.apple-error .apple-icon { background:#e74c3c; color:#fff; }
.apple-warning .apple-icon { background:#f39c12; color:#fff; }
.apple-info .apple-icon { background:#3498db; color:#fff; }

/* PROGRESS */
.apple-progress {
    height: 2px;
    margin-top: 10px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
}

.apple-progress::after {
    content: '';
    display: block;
    height: 100%;
    background: #cba35c;
    width: 100%;
}

@keyframes progressAnim {
    from { width: 100%; }
    to { width: 0; }
}

.progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: #cba35c;
}