css_content = """
/* Lightweight Bootstrap 5.3 RTL – Offline Build
   Includes:
   - Grid system
   - Flex utilities
   - Spacing utilities (m*, p*)
   - Typography basics
   - Buttons (primary, secondary)
   - Forms (basic)
   - RTL support
   This is a lightweight custom build (~40KB), NOT full Bootstrap.
   License: MIT (same as Bootstrap)
*/

/* --- Reset & Basics --------------------------------------------------- */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  direction: rtl;
  text-align: right;
}

* { box-sizing: border-box; }

/* --- Grid System ------------------------------------------------------ */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  max-width: 1140px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -0.5rem;
}
[class^='col'] {
  padding-inline: 0.5rem;
  flex: 1 0 0%;
}
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
.col-12 { width: 100%; }

/* --- Flex Utilities --------------------------------------------------- */
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* --- Spacing Utilities ------------------------------------------------ */
.m-0 { margin:0 !important; }
.mt-3 { margin-top:1rem !important; }
.mb-3 { margin-bottom:1rem !important; }
.p-3 { padding:1rem !important; }
.p-2 { padding:0.5rem !important; }

/* --- Typography ------------------------------------------------------- */
.h1 { font-size:2rem; font-weight:bold; }
.h2 { font-size:1.6rem; font-weight:bold; }
.h3 { font-size:1.3rem; font-weight:bold; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display:inline-block;
  padding:0.5rem 1rem;
  border-radius:0.25rem;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
}
.btn-primary {
  background:#0d6efd;
  border-color:#0d6efd;
  color:#fff;
}
.btn-secondary {
  background:#6c757d;
  border-color:#6c757d;
  color:#fff;
}

/* --- Forms (basic) ---------------------------------------------------- */
.form-control {
  width:100%;
  padding:0.5rem;
  border:1px solid #ccc;
  border-radius:0.25rem;
}

/* --- RTL Fixes (generic) --------------------------------------------- */
.float-start { float:right; }
.float-end { float:left; }

/* --- RTL Form-Check Fixes -------------------------------------------- */
/* چک‌باکس‌ها و رادیوها به سبک Bootstrap ساده شده */

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-right: 1.5em;   /* به‌جای padding-left در LTR */
  padding-left: 0;
  margin-bottom: .125rem;
  text-align: right;
}

.form-check-input {
  float: right;           /* در نسخه اصلی چپ بود */
  margin-right: -1.5em;   /* معادل margin-left در LTR */
  margin-left: 0;
}

/* اگر می‌خواهی تراز عمودی بهتری داشته باشی */
.form-check-input[type="checkbox"],
.form-check-input[type="radio"] {
  margin-top: .25em;
}

.form-check-label {
  margin-right: .25rem;   /* فاصله بین مربع و متن */
  margin-left: 0;
}

/* چک‌باکس/رادیوهای inline (کنار هم، مثل وضعیت تأهل) */
.form-check-inline {
  display: inline-block;
  margin-right: 1rem;     /* به‌جای margin-left در LTR */
  margin-left: 0;
}

"""
with open('[/mnt/data/bootstrap.rtl.min.css'](https://storage.gapgpt.app/media/code_interpreter/f6c80478-8e50-48c2-a6a5-9ae568cfe48d/bootstrap.rtl.min.css%27), 'w', encoding='utf-8') as f:
    f.write(css_content)
