﻿
@media screen and (min-width: 200px) {
    .dialogbox {
        width: 330px;
    }
}

@media screen and (min-width: 400px) {
    .dialogbox {
        width: 380px;
        left:0px;
    }
}
@media screen and (min-width: 800px) {
    .dialogbox {
        width: 500px;
        left: 600px;
        
    }
}

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) scale(0.95);
    background: #fff;
    border-radius: 14px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    opacity: 0;
    transition: 0.25s;
    z-index: 9999;
    font-family: sans-serif;
    overflow: hidden;
}

    .confirm-modal.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

.confirm-header {
    padding: 14px 18px;
    background: #3fa0b0;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.confirm-body {
    padding: 24px 20px 16px;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

/* 🔥 خط جداکننده */
.confirm-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0 20px;
}

/* 🔥 دکمه‌ها پایین و وسط */
.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 18px 20px 22px;
}

    /* 🔥 دکمه بزرگ‌تر */
    .confirm-actions button {
        min-width: 110px;
        padding: 10px 0;
        font-size: 15px;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        border: none;
        transition: 0.2s;
    }

.confirm-yes {
    background: #28a745;
    color: #fff;
}

    .confirm-yes:hover {
        background: #218838;
    }

.confirm-no {
    background: #6c757d;
    color: #fff;
}

    .confirm-no:hover {
        background: #5a6268;
    }

.confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2147483646;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

    .confirm-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(360px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    z-index: 2147483647;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
    direction: rtl;
    font-family: Tahoma, sans-serif;
}

    .confirm-modal.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

.confirm-header {
    padding: 14px 18px;
    background: #59A3F2;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.confirm-body {
    padding: 22px 18px;
    color: #333;
    font-size: 14px;
    line-height: 1.9;
    text-align: right;
}

.confirm-divider {
    height: 1px;
    background: #e6e6e6;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #f8fbff;
}

.confirm-yes,
.confirm-no {
    min-width: 90px;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.confirm-yes {
    background: #59A3F2;
    color: #fff;
}

.confirm-no {
    background: #e9ecef;
    color: #333;
}

.confirm-yes:hover {
    background: #3f92ea;
}

.confirm-no:hover {
    background: #dfe3e7;
}


