/* =====================================================
   ObfuscatorJS Framework v2.4
   utilities.css
   Utility System
   Safe Production Update

   IMPORTANT:
   - Existing class names preserved
   - No existing utility removed
   - Compatible with old/new variable naming
   - Safe for existing HTML
   - Responsive
   - Accessibility friendly
===================================================== */


/* =====================================================
   DISPLAY
===================================================== */

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}


/* =====================================================
   FLEX ALIGNMENT
===================================================== */

.flex-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

.align-start {
    align-items: flex-start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.align-stretch {
    align-items: stretch;
}


/* =====================================================
   TEXT ALIGNMENT
===================================================== */

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

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

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


/* =====================================================
   TEXT COLORS
   Safe variable fallback system
===================================================== */

.text-primary {
    color: var(--primary, var(--primary-color));
}

.text-secondary {
    color: var(--secondary, var(--secondary-color));
}

.text-success {
    color: var(--success, var(--success-color));
}

.text-warning {
    color: var(--warning, var(--warning-color));
}

.text-danger {
    color: var(--danger, var(--danger-color));
}

.text-info {
    color: var(--info, var(--info-color));
}

.text-light {
    color: var(--text-light, var(--text-light-color));
}

.text-muted {
    color: var(--text-muted, var(--text-muted-color));
}

.text-white {
    color: var(--white, #ffffff);
}


/* =====================================================
   FONT WEIGHT
===================================================== */

.fw-light {
    font-weight: var(--font-light);
}

.fw-normal {
    font-weight: var(--font-normal);
}

.fw-medium {
    font-weight: var(--font-medium);
}

.fw-semibold {
    font-weight: var(--font-semibold);
}

.fw-bold {
    font-weight: var(--font-bold);
}


/* =====================================================
   FONT SIZE
===================================================== */

.fs-xs {
    font-size: var(--font-size-xs);
}

.fs-sm {
    font-size: var(--font-size-sm);
}

.fs-md {
    font-size: var(--font-size-md);
}

.fs-lg {
    font-size: var(--font-size-lg);
}

.fs-xl {
    font-size: var(--font-size-xl);
}


/* =====================================================
   WIDTH
===================================================== */

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-100 {
    width: 100%;
}


/* =====================================================
   HEIGHT
===================================================== */

.h-25 {
    height: 25%;
}

.h-50 {
    height: 50%;
}

.h-75 {
    height: 75%;
}

.h-100 {
    height: 100%;
}


/* =====================================================
   MARGIN TOP
===================================================== */

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-5 {
    margin-top: var(--space-5);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-7 {
    margin-top: var(--space-7);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-9 {
    margin-top: var(--space-9);
}


/* =====================================================
   MARGIN BOTTOM
===================================================== */

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-5 {
    margin-bottom: var(--space-5);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-7 {
    margin-bottom: var(--space-7);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-9 {
    margin-bottom: var(--space-9);
}


/* =====================================================
   MARGIN AUTO
===================================================== */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}


/* =====================================================
   PADDING
===================================================== */

.p-1 {
    padding: var(--space-1);
}

.p-2 {
    padding: var(--space-2);
}

.p-3 {
    padding: var(--space-3);
}

.p-4 {
    padding: var(--space-4);
}

.p-5 {
    padding: var(--space-5);
}

.p-6 {
    padding: var(--space-6);
}

.p-7 {
    padding: var(--space-7);
}

.p-8 {
    padding: var(--space-8);
}

.p-9 {
    padding: var(--space-9);
}


/* =====================================================
   PADDING X
===================================================== */

.px-1 {
    padding-left: var(--space-1);
    padding-right: var(--space-1);
}

.px-2 {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
}

.px-3 {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.px-4 {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.px-5 {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}

.px-6 {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.px-7 {
    padding-left: var(--space-7);
    padding-right: var(--space-7);
}

.px-8 {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}


/* =====================================================
   PADDING Y
===================================================== */

.py-1 {
    padding-top: var(--space-1);
    padding-bottom: var(--space-1);
}

.py-2 {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

.py-3 {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}

.py-4 {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.py-5 {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}

.py-6 {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.py-7 {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}


/* =====================================================
   BORDER RADIUS
===================================================== */

.radius-sm {
    border-radius: var(--radius-sm);
}

.radius {
    border-radius: var(--radius);
}

.radius-md {
    border-radius: var(--radius-md);
}

.radius-lg {
    border-radius: var(--radius-lg);
}

.radius-xl {
    border-radius: var(--radius-xl);
}

.round {
    border-radius: var(--radius-round);
}


/* =====================================================
   SHADOW
===================================================== */

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-none {
    box-shadow: none;
}


/* =====================================================
   OVERFLOW
===================================================== */

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}


/* =====================================================
   POSITION
===================================================== */

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.position-fixed {
    position: fixed;
}

.position-sticky {
    position: sticky;
}


/* =====================================================
   CURSOR
===================================================== */

.pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

.cursor-not-allowed {
    cursor: not-allowed;
}


/* =====================================================
   USER SELECT
===================================================== */

.select-none {
    user-select: none;
}

.select-text {
    user-select: text;
}

.select-all {
    user-select: all;
}


/* =====================================================
   VISIBILITY
===================================================== */

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

.hidden {
    display: none !important;
}


/* =====================================================
   OPACITY
===================================================== */

.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: .5;
}

.opacity-75 {
    opacity: .75;
}

.opacity-100 {
    opacity: 1;
}


/* =====================================================
   TEXT TRANSFORMATION
===================================================== */

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}


/* =====================================================
   TEXT WRAP
===================================================== */

.text-nowrap {
    white-space: nowrap;
}

.text-wrap {
    white-space: normal;
}


/*
 * Safe text breaking.
 *
 * "anywhere" is more reliable for:
 * - long URLs
 * - hashes
 * - generated strings
 * - usernames
 * - technical values
 */

.text-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =====================================================
   VERTICAL ALIGNMENT
===================================================== */

.align-baseline {
    vertical-align: baseline;
}

.align-middle {
    vertical-align: middle;
}

.align-top {
    vertical-align: top;
}

.align-bottom {
    vertical-align: bottom;
}


/* =====================================================
   NO MARGIN
===================================================== */

.m-0 {
    margin: 0 !important;
}


/* =====================================================
   NO PADDING
===================================================== */

.p-0 {
    padding: 0 !important;
}


/* =====================================================
   NO BORDER
===================================================== */

.border-0 {
    border: 0 !important;
}


/* =====================================================
   BACKGROUND
   Safe variable fallback system
===================================================== */

.bg-primary {
    background: var(--primary, var(--primary-color));
}

.bg-secondary {
    background: var(--secondary, var(--secondary-color));
}

.bg-surface {
    background: var(--surface, var(--surface-color));
}

.bg-surface-2 {
    background: var(--surface-2, #f8fafc);
}

.bg-success {
    background: var(--success, var(--success-color));
}

.bg-warning {
    background: var(--warning, var(--warning-color));
}

.bg-danger {
    background: var(--danger, var(--danger-color));
}

.bg-info {
    background: var(--info, var(--info-color));
}


/* =====================================================
   RESPONSIVE VISIBILITY
===================================================== */

@media (max-width: 768px) {

    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }

}


@media (min-width: 769px) {

    .d-desktop-none {
        display: none !important;
    }

    .d-desktop-block {
        display: block !important;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .transition-none {
        transition: none !important;
    }

}


/* =====================================================
   END OF UTILITIES.CSS
===================================================== */