﻿.vista-glass-modal {
    direction: rtl;
    background: linear-gradient(145deg,#e6eef8,#cfdff0);
    border: 1px solid #9cb3cc;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    overflow: hidden;
    backdrop-filter: blur(5px);
    animation: fadeInVistaScale .4s ease-in-out
}

.vista-modal-header {
    background: linear-gradient(to left,#3a6ea5,#6ea1d4);
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.vista-close-btn {
    background: none;
    border: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer
}

.vista-modal-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px
}

.vista-icon {
    font-size: 40px;
    color: #f0ad4e;
    flex-shrink: 0
}

.vista-message {
    font-size: 14px;
    color: #333;
    line-height: 2.1;
    text-align: justify;
    padding-inline: 2px;
    word-spacing: 1px
}

.vista-highlight {
    color: #1b6ec2;
    font-weight: 700
}

.vista-modal-footer {
    display: flex;
    justify-content: center;
    padding: 15px;
    background: #f4f7fb
}

.vista-confirm-btn {
    background: linear-gradient(to bottom,#fff,#d4dce3);
    border: 1px solid #8ba6c1;
    border-radius: 6px;
    padding: 6px 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #fff;
    transition: background .3s ease
}

    .vista-confirm-btn:hover {
        background: linear-gradient(to bottom,#f1f1f1,#c1c9d2)
    }

.vista-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px)
}

.vista-error-modal {
    direction: rtl;
    max-width: 95%;
    width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    overflow: hidden;
    animation: fadeInVistaY .4s ease-in-out;
    border: 1px solid #c0392b
}

.vista-error-box {
    overflow: hidden;
    background: #fff;
    color: #000
}

.vista-error-header {
    background: linear-gradient(to left,#b71c1c,#e53935);
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.vista-error-close {
    background: none;
    border: 0;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: color .3s ease
}

    .vista-error-close:hover {
        color: #ffb3b3
    }

.vista-error-body {
    padding: 20px;
    font-size: clamp(12px,2vw,16px);
    color: #a94442;
    line-height: 1.8;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: #fff
}

.vista-error-footer {
    padding: 12px;
    background: #fcebea;
    border-top: 1px solid #f5c6cb;
    text-align: center
}

.vista-error-btn {
    background: linear-gradient(to bottom,#ffebeb,#f8d7da);
    border: 1px solid #c0392b;
    color: #8a1f1f;
    border-radius: 6px;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(192,57,43,.3);
    transition: all .3s ease
}

    .vista-error-btn:hover {
        background: linear-gradient(to bottom,#f8d7da,#f1b0b7);
        color: #6e1414;
        box-shadow: 0 4px 10px rgba(192,57,43,.4)
    }

    .vista-error-btn:active {
        background: linear-gradient(to bottom,#f1b0b7,#f8d7da);
        transform: translateY(1px);
        box-shadow: inset 1px 1px 2px rgba(0,0,0,.2)
    }

@keyframes fadeInVistaScale {
    from {
        transform: scale(.95);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

@keyframes fadeInVistaY {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}
