﻿/* =====================================================
   Tailwind-style Spacing Utilities (Margin & Padding)
   Compatible with Bootstrap 3 / legacy projects
   Scale based on rem
   ===================================================== */

/* SCALE
   0    = 0
   0.5  = 0.125rem (2px)
   1    = 0.25rem  (4px)
   2    = 0.5rem   (8px)
   3    = 0.75rem  (12px)
   4    = 1rem     (16px)
   6    = 1.5rem   (24px)
   8    = 2rem     (32px)
   10   = 2.5rem   (40px)
   12   = 3rem     (48px)
   16   = 4rem     (64px)
*/

/* ======================
   MARGIN – ALL SIDES
   ====================== */
.m-0 {
    margin: 0 !important;
}

.m-0_5 {
    margin: 0.125rem !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 0.75rem !important;
}

.m-4 {
    margin: 1rem !important;
}

.m-6 {
    margin: 1.5rem !important;
}

.m-8 {
    margin: 2rem !important;
}

.m-10 {
    margin: 2.5rem !important;
}

.m-12 {
    margin: 3rem !important;
}

.m-16 {
    margin: 4rem !important;
}

/* ======================
   MARGIN – TOP
   ====================== */
.mt-0 {
    margin-top: 0 !important;
}

.mt-0_5 {
    margin-top: 0.125rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 0.75rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mt-6 {
    margin-top: 1.5rem !important;
}

.mt-8 {
    margin-top: 2rem !important;
}

.mt-10 {
    margin-top: 2.5rem !important;
}

.mt-12 {
    margin-top: 3rem !important;
}

.mt-16 {
    margin-top: 4rem !important;
}

/* ======================
   MARGIN – RIGHT
   ====================== */
.mr-0 {
    margin-right: 0 !important;
}

.mr-0_5 {
    margin-right: 0.125rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mr-3 {
    margin-right: 0.75rem !important;
}

.mr-4 {
    margin-right: 1rem !important;
}

.mr-6 {
    margin-right: 1.5rem !important;
}

.mr-8 {
    margin-right: 2rem !important;
}

.mr-10 {
    margin-right: 2.5rem !important;
}

.mr-12 {
    margin-right: 3rem !important;
}

.mr-16 {
    margin-right: 4rem !important;
}

/* ======================
   MARGIN – BOTTOM
   ====================== */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-0_5 {
    margin-bottom: 0.125rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

.mb-12 {
    margin-bottom: 3rem !important;
}

.mb-16 {
    margin-bottom: 4rem !important;
}

/* ======================
   MARGIN – LEFT
   ====================== */
.ml-0 {
    margin-left: 0 !important;
}

.ml-0_5 {
    margin-left: 0.125rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-3 {
    margin-left: 0.75rem !important;
}

.ml-4 {
    margin-left: 1rem !important;
}

.ml-6 {
    margin-left: 1.5rem !important;
}

.ml-8 {
    margin-left: 2rem !important;
}

.ml-10 {
    margin-left: 2.5rem !important;
}

.ml-12 {
    margin-left: 3rem !important;
}

.ml-16 {
    margin-left: 4rem !important;
}

/* ======================
   MARGIN – AXES
   ====================== */
.mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mx-1 {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
}

.mx-2 {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
}

.mx-4 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

.mx-8 {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-8 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* ======================
   PADDING – ALL SIDES
   ====================== */
.p-0 {
    padding: 0 !important;
}

.p-0_5 {
    padding: 0.125rem !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 0.75rem !important;
}

.p-4 {
    padding: 1rem !important;
}

.p-6 {
    padding: 1.5rem !important;
}

.p-8 {
    padding: 2rem !important;
}

.p-10 {
    padding: 2.5rem !important;
}

.p-12 {
    padding: 3rem !important;
}

.p-16 {
    padding: 4rem !important;
}

/* ======================
   PADDING – SIDES & AXES
   ====================== */
.pt-4 {
    padding-top: 1rem !important;
}

.pr-4 {
    padding-right: 1rem !important;
}

.pb-4 {
    padding-bottom: 1rem !important;
}

.pl-4 {
    padding-left: 1rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
