.sqr-wrapper {
    max-width: 950px;
    margin: 40px auto;
    padding: 30px;
    background: #fdf6e3;
    border-radius: 15px;
    direction: rtl;
    text-align: right;
    font-family: Tahoma;
}

.sqr-title {
    text-align: center;
    margin-bottom: 20px;
    line-height: 2;
    font-size: 18px;
    font-weight: bold;
}

.sqr-counter {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.sqr-full {
    text-align: center;
    font-size: 18px;
    color: red;
    padding: 20px;
    background: #ffe2e2;
    border-radius: 10px;
    font-weight: bold;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 6px;
    max-height: 450px;
    overflow-y: scroll;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-box {
    text-align: center;
    padding: 6px 0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    position: relative;
}

.available {
    background: #e0f7e9;
    color: #0a7c35;
}
.available:hover {
    background: #b2f0c9;
}

.booked {
    background: #f8d7da;
    color: #842029;
    cursor: default;
}
.page-name {
    font-size: 10px;
    display: block;
    margin-top: 2px;
    color: #600;
}

.selected {
    background: #1e73be !important;
    color: white !important;
}

.sqr-wrapper input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.sqr-wrapper button {
    padding: 12px;
    background: #1e73be;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

.sqr-success {
    color: green;
    margin-top: 15px;
    text-align: center;
}

.sqr-error {
    color: red;
    margin-top: 15px;
    text-align: center;
}

/* نوار پیشرفت */
.sqr-progress {
    width: 100%;
    height: 18px;
    background: #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
}

.sqr-progress-bar {
    height: 100%;
    background: #1e73be;
    border-radius: 10px;
    transition: width 0.3s ease;
}
