/* CONTAINER */
.ios-toast-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%, -50%);
    z-index: 999999;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* POSITIONS */
.ios-toast-container.top {
    top: 20px;
}

.ios-toast-container.center {
    top: 50%;
    transform: translate(-50%, -50%);
}

.ios-toast-container.bottom {
    bottom: 20px;
}

.ios-modal .modal-dialog {
    max-width: 420px;
}

.ios-modal.modal-md .modal-dialog {
    max-width: 520px;
}

.ios-modal.modal-lg .modal-dialog {
    max-width: 700px;
}

.ios-modal.modal-xl .modal-dialog {
    max-width: 900px;
}

.toast-sm .toast-box{
    width:420px;
}

.toast-md .toast-box{
    width:520px;
}

.toast-lg .toast-box{
    width:700px;
}

.toast-xl .toast-box{
    width:900px;
}

/* TOAST */
/* .ios-toast {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 240px;
    max-width: 320px;

    padding: 12px 16px;

    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.3);

    font-size: 14px;
    font-weight: 500;
    color: #000;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    opacity: 0;
    transform: translateY(-20px) scale(0.9);

    transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
    position: relative;
 
    cursor: grab;
    user-select: none;

} */

.ios-toast {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; 
    gap: 12px;

    min-width: 280px;   /* increased */
    max-width: 360px;   /* increased */
    min-height: 60px;   /* ADD THIS */

    padding: 14px 18px; /* slightly bigger */

    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.35);

    font-size: 15px;
    font-weight: 500;
    color: #000;

    box-shadow: 0 12px 35px rgba(0,0,0,0.18);

    opacity: 0;
    transform: translateY(-20px) scale(0.92);

    transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
    position: relative;

    cursor: grab;
    user-select: none;
}

/* SHOW */
.ios-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ICON */
.ios-toast-icon {
    font-size: 18px;
    align-items: center;
    justify-content: center;
    text-align: center; 
}

/* TEXT */
.ios-toast-text {
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
    text-align: center; 
}

/* PROGRESS BAR */
.ios-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.ios-toast-progress::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: #4f46e5;
    animation: toast-progress linear forwards;
}

/* ANIMATION */
@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* TYPES */
.ios-toast.success {
    border-left: 4px solid #22c55e;
}

.ios-toast.error {
    border-left: 4px solid #ef4444;
}

/* DEFAULT (TOP) */
.ios-toast.top {
    transform: translateY(-20px) scale(0.95);
}
.ios-toast.top.show {
    transform: translateY(0) scale(1);
}

/* CENTER (ZOOM) */
.ios-toast.center {
    transform: scale(0.7);
}
.ios-toast.center.show {
    transform: scale(1);
}

/* BOTTOM (SLIDE UP) */
.ios-toast.bottom {
    transform: translateY(20px) scale(0.95);
}
.ios-toast.bottom.show {
    transform: translateY(0) scale(1);
}

.toast-confirm {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.2);

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.toast-box {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);

    padding: 20px;
    border-radius: 20px;
    width: 300px;
    text-align: center;
}

.toast-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.toast-btn {
    flex: 1;
    margin: 5px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
}

.toast-cancel {
    background: #eee;
}

.toast-ok {
    background: rgba(2, 55, 112, 0.8);
    color: #fff;
}



.toast-delete {
    background: #ef4444;
    color: #fff;
}

/* overlay */
.toast-confirm {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* box */
.toast-box {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* title */
.toast-box h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

/* message */
.toast-box p {
    font-size: 13px;
    color: #666;
}

/* actions */
.toast-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* base button */
.toast-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

/* left cancel button */
.toast-cancel {
    background: #f3f4f6;
    color: #333;
}

/* delete (danger) */
.toast-danger {
    background: #ef4444;
    color: #fff;
}

/* neutral action (cancel invoice) */
.toast-neutral {
    background: #6b7280; /* grey */
    color: #fff;
}

.ios-toast-text:empty::before {
    content: "Notification";
    opacity: 0.6;
}