/*Toast Messages */

.toast-notification {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;

    background-color: #ff3b30;
    color: #fff;
    border-radius: 0 0 12px 12px;

    display: flex;
    align-items: center;
    gap: 10px;                 /* spacing instead of space-between */

    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3);
    z-index: 9999;

    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}


/* Visible */
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Success variant */
.toast-success {
    background-color: #34c759;
    box-shadow: 0 4px 10px rgba(52, 199, 89, 0.3);
}

/* Message */
.toast-message {
    flex: 1 1 auto;        /* message grows */
    min-width: 0;          /* VERY important for wrapping */
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}


/* Icon */
.toast-message .material-symbols-rounded {
    font-size: 20px;
    font-variation-settings: 'FILL' 1;
}

/* Small dismiss button */
.toast-dismiss {
    flex: 0 0 auto;        /* button NEVER grows */
    width: 24px;
    height: 24px;

    background: none;
    border: none;
    color: #fff;
    cursor: pointer;

    font-size: 16px;
    line-height: 1;
    opacity: 0.75;

    display: flex;
    align-items: center;
    justify-content: center;
}


.toast-dismiss:hover {
    opacity: 1;
}

/* iPhone notch safe-area */
@supports (padding: env(safe-area-inset-top)) {
    .toast-notification {
        padding-top: calc(12px + env(safe-area-inset-top));
    }
}



