@font-face {
    font-family: 'RaviBold';
    src: url('../fonts/Ravi__bold.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/Ravi__bold.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/Ravi__bold.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('../fonts/Ravi__bold.woff') format('woff'),
        /* Modern Browsers */
        url('../fonts/Ravi__bold.ttf') format('truetype');
    /* Legacy iOS */
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'RaviNormal';
    src: url('../fonts/Ravi.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/Ravi.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('../fonts/Ravi.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('../fonts/Ravi.woff') format('woff'),
        /* Modern Browsers */
        url('../fonts/Ravi.ttf') format('truetype');
    /* Legacy iOS */
    font-weight: 700;
    font-style: bold;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'RaviNormal', Tahoma, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}
button, input, textarea, select, span,p, div {
    font-family: 'RaviNormal', Tahoma, Arial, sans-serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wizard-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wizard-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2rem;
    font-family: RaviBold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.step-indicator.active {
    color: #4CAF50;
    font-weight: bold;
}

.step-indicator .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: #4CAF50;
    color: white;
}

.step-indicator.completed .step-number {
    background: #2196F3;
    color: white;
}

.wizard-content {
    display: flex;
    gap: 30px;
    min-height: 500px;
}

.form-section {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.preview-section {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #f8f9fa;
}

.upload-area.dragover {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.upload-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.upload-text {
    color: #666;
    font-size: 1.1rem;
}

.upload-requirements {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

.uploaded-logo {
    max-width: 250px;
    max-height: 250px;
    border-radius: 5px;
    margin-top: 15px;
}

/* Crop Modal */
.crop-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.crop-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
}

.crop-header {
    text-align: center;
    margin-bottom: 20px;
}

.crop-canvas-container {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.crop-canvas {
    border: 1px solid #ddd;
    max-width: 100%;
    cursor: crosshair;
    width: 100%;
}

.crop-overlay {
    position: absolute;
    border: 2px dashed #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    pointer-events: none;
    /* Make sure this is initially set to none */
    border-radius: 50%;
    /* Ensure it's a circle */
}

.crop-overlay .resize-handle {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: se-resize;
    border: 2px solid white;
    pointer-events: all;
    /* Make handle clickable */
}

 .crop-modal {
        display: none; /* توسط جاوااسکریپت به 'flex' تغییر می‌کند تا نمایش داده شود */
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        /* جدید: مرکز کردن محتوا به صورت عمودی و افقی */
        display: flex; 
        justify-content: center; /* مرکز کردن افقی */
        align-items: center; /* مرکز کردن عمودی */
        /* اضافه کردن کمی فاصله از لبه‌های صفحه در دستگاه‌های کوچک */
        padding: 10px; 
        box-sizing: border-box; /* اطمینان از اینکه padding در عرض و ارتفاع کلی عنصر لحاظ شود */
    }

    .crop-container {
        background: white;
        padding: 20px; /* کاهش padding از 30px به 20px */
        border-radius: 10px;
        max-width: 600px;
        width: 90%; 
        max-height: 95vh; /* افزایش حداکثر ارتفاع به 95% از ارتفاع Viewport */
        overflow-y: auto; /* فعال کردن اسکرول عمودی در صورت سرریز محتوا */
        display: flex; 
        flex-direction: column; /* چیدن آیتم‌ها به صورت عمودی */
        box-sizing: border-box; 
    }

    .crop-header {
        text-align: center;
        margin-bottom: 15px; /* کاهش margin از 20px به 15px */
        flex-shrink: 0; /* جلوگیری از کوچک شدن Header */
    }

    .crop-header h3 {
        margin-bottom: 5px; /* کاهش margin پیش‌فرض h3 */
        font-size: 1.5rem; /* اندازه فونت را کمی تنظیم کنید */
    }
    .crop-header p {
        font-size: 0.9em;
        color: #666;
    }

    .crop-canvas-container {
        position: relative;
        margin: 10px 0; /* کاهش margin از 20px به 10px */
        flex-grow: 1; /* اجازه می‌دهد این کانتینر فضای موجود را اشغال کند */
        min-height: 250px; /* حداقل ارتفاع برای فضای کراپ (مهم برای موبایل) */
        
        /* جدید: مرکز کردن تصویر Cropper.js در داخل کانتینر */
        display: flex; 
        justify-content: center;
        align-items: center;
        border: 1px solid #eee; /* یک حاشیه ظریف برای جداسازی بصری */
        border-radius: 4px;
        overflow: hidden; /* اطمینان از اینکه محتوا از کانتینر بیرون نمی‌زند */
    }

    /* استایل‌های مخصوص برای Cropper.js */
    .crop-canvas-container img {
        display: block; /* مهم برای Cropper.js */
        max-width: 100%; /* اطمینان از اینکه تصویر از کانتینر بیرون نمی‌زند */
        max-height: 100%; /* اطمینان از اینکه تصویر از کانتینر بیرون نمی‌زند */
        /* Cropper.js خودش تصویر را در ساختار خود تنظیم می‌کند */
    }

    .crop-controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px; /* کاهش margin از 20px به 15px */
        flex-shrink: 0; /* جلوگیری از کوچک شدن کنترل‌ها */
    }

    /* استایل‌های پایه برای دکمه‌ها (اگر قبلاً تعریف نشده‌اند) */
    .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
        transition: background-color 0.3s ease;
    }
    .btn-primary {
        background-color: #007bff; /* رنگ آبی مثال */
        color: white;
    }
    .btn-primary:hover {
        background-color: #0056b3;
    }
    .btn-secondary {
        background-color: #6c757d; /* رنگ خاکستری مثال */
        color: white;
    }
    .btn-secondary:hover {
        background-color: #545b62;
    }





.crop-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.crop-preview {
    width: 150px;
    height: 150px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.crop-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


 .crop-modal {
     display: none;
     /* توسط جاوااسکریپت به 'flex' تغییر می‌کند تا نمایش داده شود */
     position: fixed;
     z-index: 1000;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.8);
     /* جدید: مرکز کردن محتوا به صورت عمودی و افقی */
     display: flex;
     justify-content: center;
     /* مرکز کردن افقی */
     align-items: start;
     /* مرکز کردن عمودی */
     /* اضافه کردن کمی فاصله از لبه‌های صفحه در دستگاه‌های کوچک */
     padding: 10px;
     box-sizing: border-box;
     /* اطمینان از اینکه padding در عرض و ارتفاع کلی عنصر لحاظ شود */
 }

 .crop-container {
     background: white;
     padding: 20px;
     /* کاهش padding از 30px به 20px */
     border-radius: 10px;
     max-width: 600px;
     width: 90%;
     max-height: 95vh;
     /* افزایش حداکثر ارتفاع به 95% از ارتفاع Viewport */
     overflow-y: auto;
     /* فعال کردن اسکرول عمودی در صورت سرریز محتوا */
     /* margin: 0 auto; - این خط حذف می‌شود، چون center کردن توسط flex در .crop-modal انجام می‌شود */

     /* جدید: تبدیل به فلکس کانتینر برای مدیریت چیدمان داخلی */
     display: flex;
     flex-direction: column;
     /* چیدن آیتم‌ها به صورت عمودی */
     box-sizing: border-box;
 }

 .crop-header {
     text-align: center;
     margin-bottom: 15px;
     /* کاهش margin از 20px به 15px */
     flex-shrink: 0;
     /* جلوگیری از کوچک شدن Header */
 }

 .crop-header h3 {
     margin-bottom: 5px;
     /* کاهش margin پیش‌فرض h3 */
     font-size: 1.5rem;
     /* اندازه فونت را کمی تنظیم کنید */
 }

 .crop-header p {
     font-size: 0.9em;
     color: #666;
 }

 .crop-canvas-container {
     position: relative;
     margin: 10px 0;
     /* کاهش margin از 20px به 10px */
     flex-grow: 1;
     /* اجازه می‌دهد این کانتینر فضای موجود را اشغال کند */
     min-height: 250px;
     /* حداقل ارتفاع برای فضای کراپ (مهم برای موبایل) */

     /* جدید: مرکز کردن تصویر Cropper.js در داخل کانتینر */
     display: flex;
     justify-content: center;
     align-items: center;
     border: 1px solid #eee;
     /* یک حاشیه ظریف برای جداسازی بصری */
     border-radius: 4px;
     overflow: hidden;
     /* اطمینان از اینکه محتوا از کانتینر بیرون نمی‌زند */
 }

 /* استایل‌های مخصوص برای Cropper.js */
 .crop-canvas-container img {
     display: block;
     /* مهم برای Cropper.js */
     max-width: 100%;
     /* اطمینان از اینکه تصویر از کانتینر بیرون نمی‌زند */
     max-height: 100%;
     /* اطمینان از اینکه تصویر از کانتینر بیرون نمی‌زند */
     /* Cropper.js خودش تصویر را در ساختار خود تنظیم می‌کند */
 }

 .crop-controls {
     display: flex;
     justify-content: center;
     gap: 15px;
     margin-top: 15px;
     /* کاهش margin از 20px به 15px */
     flex-shrink: 0;
     /* جلوگیری از کوچک شدن کنترل‌ها */
 }

 /* استایل‌های پایه برای دکمه‌ها (اگر قبلاً تعریف نشده‌اند) */
 .btn {
     padding: 10px 20px;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     font-size: 1rem;
     transition: background-color 0.3s ease;
 }

 .btn-primary {
     background-color: #007bff;
     /* رنگ آبی مثال */
     color: white;
 }

 .btn-primary:hover {
     background-color: #0056b3;
 }

 .btn-secondary {
     background-color: #6c757d;
     /* رنگ خاکستری مثال */
     color: white;
 }

 .btn-secondary:hover {
     background-color: #545b62;
 }

.preview-title {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.book-preview {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0;
    text-align: center;
    min-height: 400px;
    position: relative;
    width: 650px;
    /* Example: twice the width of a single cover + spine */
    height: 450px;
    /* Same height as your existing cover */
    margin: 0 auto;
}

.book-covers-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    
    /* For absolute positioning of elements */
}

.book-front-half,
.book-back-half {
    position: relative;
    height: 100%;
    width: 52%;
    /* Each half takes 50% of the container width */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    box-sizing: border-box;
    /* Include padding in width/height */
}

.book-front-half {
    left: 0%;
    background-size: cover;
    background-position: left center;

}

.book-back-half {
    background-size: cover;
    background-position: right center;
    width: 48%;
    right: 0%;
}

.book-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 103px;
    left: 48%;
    width: 50%;
    transform: translateX(-50%);
    font-family: RaviBold;
    color: rgb(6, 1, 141);
    line-height: 2;
    max-width: 50%;
    max-height: 40px;
}

.book-title-side {
    left: 72%;
    transform: rotate(270deg);
    -webkit-transform: rotate(270deg);
    top: 330px;
    color: #000;
    font-size: 12px;
    font-weight: 400;
    height: auto;
    width: 160px;
    text-align: right;
}

.book-logo {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    top: 125px;
    left: 20%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #000;
}

.book-logo img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    top: 1px;
    position: relative;
}

.book-manager {
    text-align: center;
    font-size: 16px;
    position: absolute;
    top: 400px;
    left: 45%;
    transform: translateX(-50%);
    color: #333;
    font-weight: 900;
    font-family: RaviBold;
    /* text-shadow: -1px -1px 0 #fff,
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            1px 1px 0 #fff; */
    -webkit-text-stroke: 1px white;
    text-stroke: 1px white;
}

.book-intro {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: justify;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    position: absolute;
    bottom: 20px;
    /* Adjusted to bottom of front cover */
    left: 55%;
    width: 40%;
    transform: translateX(-50%);
}

.back-intro {
    font-size: 12px;
    line-height: 1.6;
    text-align: justify;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 79%;
    position: absolute;
    top: 260px;
    text-align: center;
    right: 14%;
}

.back-manager {
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 10px;
    line-height: 1.6;
    width: 80%;
    position: absolute;
    top: 22%;
    right: 12%;
    text-align: justify;
    height: 250px;
    padding: 5px;
    color: #fff;
}


.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}
#nextBtn.btn-primary{
    background: #CD365F;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.final-actions {
    text-align: center;
    margin-top: 30px;
    position: relative;
}

.btn-success {
    background: #28a745;
    color: white;
    font-size: 1.2rem;
    padding: 15px 40px;
}
#showPreviewBtn.btn-success , #confirmPreviewBtn.btn-success{
  font-size: 1rem;
  padding: 12px 20px;
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 999;
}
.btn-success:hover {
    background: #218838;
}

.cover-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.cover-option {
    width: 47%;
    /* عرض مناسب برای نمایش کاور */
    border: 3px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    /* برای زمانی که تصویر بارگذاری نشده */
}

.cover-option:hover {
    border-color: #007bff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.cover-option.selected {
    border-color: #28a745;
    /* رنگ سبز برای انتخاب شده */
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.5);
    /* حاشیه برجسته سبز */
    transform: translateY(-2px);
}

.cover-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* تصویر را بدون برش و با حفظ نسبت پر می‌کند */
    border-radius: 5px;
    /* کمی گرد کردن لبه‌های تصویر */
}

.cover-option .checkmark {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: none;
    /* پیش‌فرض مخفی */
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    /* اجازه می‌دهد کلیک از روی آن عبور کند */
}

.cover-option.selected .checkmark {
    display: flex;
    /* نمایش علامت تیک وقتی انتخاب شده است */
}

.cover-option.selected .checkmark::before {
    content: '✓';
/* کاراکتر تیک */
}
.book-preview {
    overflow: auto;
    height: 420px;
}

.wizard-title {
    font-size: 1.2rem;           
}

.book-covers-container {
    width: 1500px;
    height: 1035px;
    position: relative;
    transform-origin: top left;
}


.book-title {
    font-size: 32px;
    top: 25%;
    left: 49%;
    width: 50%;
    max-height: 120px;
    max-width: 60%;
    line-height: 1.5;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#customization3 .book-title {
    top: 18%;
    max-height: 65px;
    width: 64%;
    max-width: 63%;
    left: 48%;
}
.book-title-side {
    left: 66.8%;
    transform: rotate(270deg);
    -webkit-transform: rotate(270deg);
    top: 60%;
    color: #000;
    font-size: 17px;
    font-weight: 400;
    height: auto;
    width: 450px;
    text-align: right;
    max-width: 100%;
    white-space: nowrap;
}
#customization3 .book-title-side {
    left: 67%;
    transform: rotate(270deg);
    -webkit-transform: rotate(270deg);
    top: 70%;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    height: auto;
    width: 450px;
    text-align: right;
    max-width: 100%;
}
.book-logo {
    width: 76px;
    height: 76px;
    top: 27.9%;
    left: 15%;
    transform: none;
}

.book-manager {
    font-size: 25px;
    bottom: 5%;
    left: 45%;
    font-weight: 900;
    top: auto;
    background: #a9bdce63;
    padding: 0 10px;
    border-radius: 5px;
}
#customization3 .book-manager {
  -webkit-text-stroke: 0;
  color: #fff;
}
.back-manager {
    font-size: 22px;
}

.back-intro {
    font-size: 30px;
    top: auto;
    bottom: 37%;
    color: #fff;
    width: 70%;
    right: 18%;
}


.full-screen-modal {
    display: none;
    /* پیش‌فرض: مخفی */
    position: fixed;
    z-index: 1000;
    /* مطمئن شوید که روی بقیه عناصر قرار می‌گیرد */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* پس‌زمینه نیمه‌شفاف تیره */
    display: flex;
    /* برای مرکز کردن محتوا */
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* کمی padding برای کناره‌ها */
    box-sizing: border-box;
}

.full-screen-modal .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 1500px;
    /* عرض مدال */
    max-width: 1600px;
    /* حداکثر عرض برای تصویر 1500 پیکسلی + padding */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 1050px;
    /* حداکثر ارتفاع مدال */
    overflow: hidden;
    position: relative;
    /* برای کنترل سرریز محتوا */
}
.btnActions {
    position: relative;
    left: 50px;
}
.btnActions .button {
    margin-left: 10px;
}
.full-screen-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.full-screen-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

.full-screen-modal .close-modal-btn {
    color: #aaa;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    left: 20px;
}

.full-screen-modal .close-modal-btn:hover,
.full-screen-modal .close-modal-btn:focus {
    color: #cc2c39;
    text-decoration: none;
    cursor: pointer;
}

.full-screen-modal .modal-body {
    flex-grow: 1;
    /* اجازه می‌دهد تا محتوا فضای موجود را پر کند */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    /* اگر تصویر بزرگتر از مدال بود، اسکرول ایجاد شود */
}

.full-screen-modal .modal-body img {
    max-width: 100%;
    /* مطمئن شوید که تصویر از عرض مدال تجاوز نمی‌کند */
    max-height: 100%;
    /* مطمئن شوید که تصویر از ارتفاع مدال تجاوز نمی‌کند */
    height: auto;
    /* حفظ نسبت تصویر */
    display: block;
    /* حذف فضای اضافه زیر تصویر */
    border: 1px solid #ddd;
    /* برای برجسته کردن تصویر */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.full-screen-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.full-screen-modal .button {
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    font-family: RaviNormal;
}

.full-screen-modal .confirm-button {
    background-color: #28a745;
    /* سبز */
    color: white;
}

.full-screen-modal .confirm-button:hover {
    background-color: #218838;
}

.full-screen-modal .cancel-button {
    background-color: #6c757d;
    /* خاکستری */
    color: white;
}

.full-screen-modal .cancel-button:hover {
    background-color: #5a6268;
}
#previewLogo {
    /* ... استایل‌های دیگر ... */
    border-radius: 50%;
    /* برای نمایش دایره‌ای */
    overflow: hidden;
    /* برای برش قسمت‌های اضافی تصویر */
    display: flex;
    /* اگر می‌خواهید محتوای داخلی را هم مرکز کنید */
    align-items: center;
    justify-content: center;
}

#previewLogo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    /* برای اینکه تصویر تمام فضای دایره‌ای را بپوشاند */
}



@media (max-width: 768px) {
    .wizard-content {
        flex-direction: column;
    }
    .btnActions {
        left: 0;
    }
    .full-screen-modal .modal-header h3 {
        
        display: none;
    }
    .final-actions {
        text-align: center;
        margin-top: 0;
        position: fixed;
        left: 0px;
        z-index: 999;
        bottom: 10px;
    }
    .wizard-header {
        padding: 10px;
        margin-bottom: 5px;
    }
    .progress-bar {
        width: 96%;
        position: relative;
        top: 24px;
        right: 12px;
    }
    .step-indicators {
        margin-bottom: 0;
        position: relative;
        bottom: 15px;
    }
    .crop-header h3 {
        display: none;
    }
    .preview-title{
        display: none;
    }
    .crop-container {
        width: 95%;
        padding: 15px;
        max-height: 98vh;
    }
    .crop-canvas-container {
        min-height: 200px;
    }

    .crop-controls {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .wizard-title{display: none;}
    .book-preview {
        width: 100%;
    }
    .navigation {
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 9;
        max-width: 100%;
        background: #fff;
        right: 0;
        padding: 8px;
    }
    #showPreviewBtn.btn-success {           
        font-size: 1rem;
        padding: 12px 20px;
        position: relative;
        bottom: 10px;
        left: 10px;
        z-index: 999;
    }
    #confirmPreviewBtn.btn-success{
        position: relative;
        background: #CD365F;
    
    }
    .wizard-title{
        font-size: 1.2rem;;
    }
    .book-covers-container {
        width: 1500px;
        height: 1035px;
        position: relative;
        transform: scale(0.4);
    }
    .step-indicator span {
        display: none;
    }
    .form-section {
        padding: 10px;
        position: relative;
    }.step h2{
        display: none;
    }
    .full-screen-modal .modal-content{
        margin-top: 0;
    }
    .full-screen-modal .button{
        font-size: 12px;
    }
    .full-screen-modal .modal-content{
            padding: 5px;
    }
    .cover-option{
        width: 45%;
    } 
    button, a {
        font-family: RaviBold;
    }
    .preview-section {
        position: relative;
        bottom: 24px;
    }
    #bookShow {
        transform: scale(calc(100vw / 1500));
    }
    /* .book-title {
        font-size: 35px;
        top: 24%;
        left: 48%;
        width: 50%;
        max-height: 40px;
    } */
    .book-title-side {
        left: 85%;
        transform: rotate(270deg);
        -webkit-transform: rotate(270deg);
        top: 65%;
        font-size: 24px;
        font-weight: 400;
        height: auto;
        width: 160px;
        text-align: right;
    }
            
    .book-logo {
        width: 76px;
        height: 76px;
        top: 27.9%;
        left: 15%;
        transform: none;
    }
    .book-manager {
        font-size: 25px;
        bottom: 5%;
        left: 45%;
        font-weight: 900;
        top: auto;
    }
    .back-manager{
        font-size: 25px;
    }
    .back-intro {
        font-size: 30px;
        top: auto;
        bottom: 37%;
    }
    .full-screen-modal .modal-header {
        border-bottom: 0;
    }
    .full-screen-modal .close-modal-btn {
        left: 10px;
        top: -4px;
        line-height: 1;
    }

}