/* ============================================================================
   RSL Helper Classes
   ============================================================================
   Utility classes for layout, spacing, typography, and common styling needs.

   Usage:
   <div class="rsl-center">Centered content</div>
   <p class="rsl-mt-3 rsl-mb-2">Spaced paragraph</p>
   <span class="rsl-success">Success text</span>
   ============================================================================ */

/* ──────────────────────────────────────────────
   Flexbox Alignment
   ────────────────────────────────────────────── */

.rsl-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsl-center-vertical {
    display: flex;
    align-items: center;
}

/* ──────────────────────────────────────────────
   Text Alignment
   ────────────────────────────────────────────── */

.rsl-left {
    text-align: left;
}

.rsl-right {
    text-align: right;
}

/* ──────────────────────────────────────────────
   Well / Container Box
   ────────────────────────────────────────────── */

.rsl-well {
    padding: 1rem;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 0.25rem;
}

/* ──────────────────────────────────────────────
   Typography - Font Weight
   ────────────────────────────────────────────── */

.rsl-bold {
    font-weight: bold;
}

.rsl-light {
    font-weight: 300;
}

.rsl-underline {
    text-decoration: underline;
}

.rsl-italic {
    font-style: italic;
}

/* ──────────────────────────────────────────────
   Typography - Font Size
   ────────────────────────────────────────────── */

.rsl-p-xs {
    font-size: 0.8rem;
}

.rsl-p-sm {
    font-size: 0.9rem;
}

.rsl-p-lg {
    font-size: 1.1rem;
}

.rsl-p-xl {
    font-size: 1.3rem;
}

/* ──────────────────────────────────────────────
   Spacing - Margin (0-4 scale)
   ────────────────────────────────────────────── */

/* Margin 0 */
.rsl-m-0 {
    margin: 0 !important;
}

.rsl-mt-0 {
    margin-top: 0 !important;
}

.rsl-mb-0 {
    margin-bottom: 0 !important;
}

.rsl-ml-0 {
    margin-left: 0 !important;
}

.rsl-mr-0 {
    margin-right: 0 !important;
}

/* Margin 1 (0.25rem) */
.rsl-m-1 {
    margin: 0.25rem !important;
}

.rsl-mt-1 {
    margin-top: 0.25rem !important;
}

.rsl-mb-1 {
    margin-bottom: 0.25rem !important;
}

.rsl-ml-1 {
    margin-left: 0.25rem !important;
}

.rsl-mr-1 {
    margin-right: 0.25rem !important;
}

/* Margin 2 (0.5rem) */
.rsl-m-2 {
    margin: 0.5rem !important;
}

.rsl-mt-2 {
    margin-top: 0.5rem !important;
}

.rsl-mb-2 {
    margin-bottom: 0.5rem !important;
}

.rsl-ml-2 {
    margin-left: 0.5rem !important;
}

.rsl-mr-2 {
    margin-right: 0.5rem !important;
}

/* Margin 3 (1rem) */
.rsl-m-3 {
    margin: 1rem !important;
}

.rsl-mt-3 {
    margin-top: 1rem !important;
}

.rsl-mb-3 {
    margin-bottom: 1rem !important;
}

.rsl-ml-3 {
    margin-left: 1rem !important;
}

.rsl-mr-3 {
    margin-right: 1rem !important;
}

/* Margin 4 (1.5rem) */
.rsl-m-4 {
    margin: 1.5rem !important;
}

.rsl-mt-4 {
    margin-top: 1.5rem !important;
}

.rsl-mb-4 {
    margin-bottom: 1.5rem !important;
}

.rsl-ml-4 {
    margin-left: 1.5rem !important;
}

.rsl-mr-4 {
    margin-right: 1.5rem !important;
}

/* ──────────────────────────────────────────────
   Spacing - Padding (0-4 scale)
   ────────────────────────────────────────────── */

/* Padding 0 */
.rsl-p-0 {
    padding: 0 !important;
}

.rsl-pt-0 {
    padding-top: 0 !important;
}

.rsl-pb-0 {
    padding-bottom: 0 !important;
}

.rsl-pl-0 {
    padding-left: 0 !important;
}

.rsl-pr-0 {
    padding-right: 0 !important;
}

/* Padding 1 (0.25rem) */
.rsl-p-1 {
    padding: 0.25rem !important;
}

.rsl-pt-1 {
    padding-top: 0.25rem !important;
}

.rsl-pb-1 {
    padding-bottom: 0.25rem !important;
}

.rsl-pl-1 {
    padding-left: 0.25rem !important;
}

.rsl-pr-1 {
    padding-right: 0.25rem !important;
}

/* Padding 2 (0.5rem) */
.rsl-p-2 {
    padding: 0.5rem !important;
}

.rsl-pt-2 {
    padding-top: 0.5rem !important;
}

.rsl-pb-2 {
    padding-bottom: 0.5rem !important;
}

.rsl-pl-2 {
    padding-left: 0.5rem !important;
}

.rsl-pr-2 {
    padding-right: 0.5rem !important;
}

/* Padding 3 (1rem) */
.rsl-p-3 {
    padding: 1rem !important;
}

.rsl-pt-3 {
    padding-top: 1rem !important;
}

.rsl-pb-3 {
    padding-bottom: 1rem !important;
}

.rsl-pl-3 {
    padding-left: 1rem !important;
}

.rsl-pr-3 {
    padding-right: 1rem !important;
}

/* Padding 4 (1.5rem) */
.rsl-p-4 {
    padding: 1.5rem !important;
}

.rsl-pt-4 {
    padding-top: 1.5rem !important;
}

.rsl-pb-4 {
    padding-bottom: 1.5rem !important;
}

.rsl-pl-4 {
    padding-left: 1.5rem !important;
}

.rsl-pr-4 {
    padding-right: 1.5rem !important;
}

/* ──────────────────────────────────────────────
   Typography - Headings
   ────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #333;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

/* ──────────────────────────────────────────────
   Semantic Text Colors
   ────────────────────────────────────────────── */

.rsl-success {
    color: #28a745;
}

.rsl-info {
    color: #17a2b8;
}

.rsl-warning {
    color: #ffc107;
}

.rsl-danger {
    color: #dc3545;
}

/* ──────────────────────────────────────────────
   Semantic Background Colors
   ────────────────────────────────────────────── */

.rsl-bg-success {
    background-color: #28a745;
    color: #ffffff;
}

.rsl-bg-info {
    background-color: #17a2b8;
    color: #ffffff;
}

.rsl-bg-warning {
    background-color: #ffc107;
    color: #ffffff;
}

.rsl-bg-danger {
    background-color: #dc3545;
    color: #ffffff;
}

/* ──────────────────────────────────────────────
   Mobile Text Alignment
   ────────────────────────────────────────────── */

.rsl-mobile-left {
    text-align: left;
}

.rsl-mobile-center {
    text-align: center;
}

.rsl-mobile-right {
    text-align: right;
}

@media (min-width: 992px) {
    .rsl-mobile-left {
        text-align: inherit;
    }

    .rsl-mobile-center {
        text-align: inherit;
    }

    .rsl-mobile-right {
        text-align: inherit;
    }
}
