/* Ultra Soft - Layout & Utility System (Bootstrap replacement) */

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin: 0 auto;
    padding: 0 20px;
}

/* Compensate for Fixed Header */
main#app-content {
    padding-top: 100px;
    /* Adjusted for taller logo */
}

/* ===== Flexbox ===== */
.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

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

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

.d-grid {
    display: grid !important;
}

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

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

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

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

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

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

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

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

.align-self-start {
    align-self: flex-start !important;
}

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

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

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

/* ===== Gap ===== */
.gap-1 {
    gap: 4px !important;
}

.gap-2 {
    gap: 8px !important;
}

.gap-3 {
    gap: 12px !important;
}

.gap-4 {
    gap: 20px !important;
}

.gap-5 {
    gap: 32px !important;
}

/* ===== Grid System (12-column) ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.row>[class*="col"] {
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.row.g-3 {
    margin-left: -6px;
    margin-right: -6px;
}

.row.g-3>[class*="col"] {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
}

.row.g-4 {
    margin-left: -12px;
    margin-right: -12px;
}

.row.g-4>[class*="col"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

.col-12 {
    width: 100%;
}

.col-6 {
    width: 50%;
}

.col-4 {
    width: 33.333%;
}

.col-3 {
    width: 25%;
}

.col-2 {
    width: 16.666%;
}

@media (min-width: 576px) {
    .col-sm-3 {
        width: 25%;
    }

    .col-sm-6 {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }

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

    .col-md-2 {
        width: 16.666%;
    }

    .col-md-4 {
        width: 33.333%;
    }

    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-2 {
        width: 16.666%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-4 {
        width: 33.333%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-8 {
        width: 66.666%;
    }
}

@media (min-width: 1200px) {
    .col-xl-3 {
        width: 25%;
    }

    .col-xl-4 {
        width: 33.333%;
    }

    .col-xl-9 {
        width: 75%;
    }
}

/* ===== Spacing ===== */
.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 4px !important;
}

.m-2 {
    margin: 8px !important;
}

.m-3 {
    margin: 12px !important;
}

.m-4 {
    margin: 24px !important;
}

.m-5 {
    margin: 48px !important;
}

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

.mt-1 {
    margin-top: 4px !important;
}

.mt-2 {
    margin-top: 8px !important;
}

.mt-3 {
    margin-top: 12px !important;
}

.mt-4 {
    margin-top: 24px !important;
}

.mt-5 {
    margin-top: 48px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-50 {
    margin-top: 50px !important;
}

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

.mb-1 {
    margin-bottom: 4px !important;
}

.mb-2 {
    margin-bottom: 8px !important;
}

.mb-3 {
    margin-bottom: 12px !important;
}

.mb-4 {
    margin-bottom: 24px !important;
}

.mb-5 {
    margin-bottom: 48px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.ml-1,
.ms-1 {
    margin-left: 4px !important;
}

.ml-2,
.ms-2 {
    margin-left: 8px !important;
}

.ml-3,
.ms-3 {
    margin-left: 12px !important;
}

.ml-auto,
.ms-auto {
    margin-left: auto !important;
}

.mr-1,
.me-1 {
    margin-right: 4px !important;
}

.mr-2,
.me-2 {
    margin-right: 8px !important;
}

.mr-3,
.me-3 {
    margin-right: 12px !important;
}

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

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

.p-1 {
    padding: 4px !important;
}

.p-2 {
    padding: 8px !important;
}

.p-3 {
    padding: 12px !important;
}

.p-4 {
    padding: 24px !important;
}

.p-5 {
    padding: 48px !important;
}

.pt-3 {
    padding-top: 12px !important;
}

.pt-4 {
    padding-top: 24px !important;
}

.pt-5 {
    padding-top: 48px !important;
}

.pb-2 {
    padding-bottom: 8px !important;
}

.pb-4 {
    padding-bottom: 24px !important;
}

.ps-2 {
    padding-left: 8px !important;
}

.ps-3 {
    padding-left: 12px !important;
}

.ps-4 {
    padding-left: 24px !important;
}

.ps-5 {
    padding-left: 32px !important;
}

.px-2 {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.px-3 {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.py-1 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.py-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.py-4 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.py-5 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}

/* ===== Text ===== */
.text-center {
    text-align: center !important;
}

.text-right,
.text-end {
    text-align: right !important;
}

.text-left,
.text-start {
    text-align: left !important;
}

.text-white {
    color: #ffffff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-primary {
    color: var(--accent-primary) !important;
}

.text-success {
    color: var(--accent-success) !important;
}

.text-warning {
    color: var(--accent-warning) !important;
}

.text-danger {
    color: var(--accent-danger) !important;
}

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

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.text-decoration-none {
    text-decoration: none !important;
}

.font-weight-bold,
.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.font-monospace {
    font-family: monospace !important;
}

.fs-12 {
    font-size: 12px !important;
}

.small {
    font-size: 0.875em !important;
}

.lead {
    font-size: 1.125rem !important;
}

.display-3 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.h1,
h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.h2,
h2 {
    font-size: 2rem;
    font-weight: 700;
}

.h3,
h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.h4,
h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.h5,
h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.h6,
h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Sizing ===== */
.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.min-width-0 {
    min-width: 0 !important;
}

/* ===== Position ===== */
.position-relative,
.pos-rel {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.position-sticky {
    position: sticky !important;
}

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

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

.start-0 {
    left: 0 !important;
}

.end-0 {
    right: 0 !important;
}

.translate-middle-y {
    transform: translateY(-50%) !important;
}

/* ===== Borders ===== */
.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-bottom-soft {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-right {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

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

.border-white {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-light {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-opacity-10 {
    --bs-border-opacity: 0.1;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.rounded {
    border-radius: 8px !important;
}

.rounded-3 {
    border-radius: 12px !important;
}

.rounded-4 {
    border-radius: 16px !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* ===== Overflow ===== */
.overflow-hidden {
    overflow: hidden !important;
}

.overflow-auto {
    overflow: auto !important;
}

/* ===== Background ===== */
.bg-dark {
    background: rgba(0, 0, 0, 0.3) !important;
}

.bg-primary {
    background: var(--accent-primary) !important;
}

.bg-danger {
    background: var(--accent-danger) !important;
}

.bg-success {
    background: var(--accent-success) !important;
}

.bg-opacity-75 {
    opacity: 0.75;
}

/* ===== Visibility ===== */
.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.z-1 {
    z-index: 1 !important;
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Shadow ===== */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* ===== Lists ===== */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== Cursor ===== */
.cursor-pointer {
    cursor: pointer !important;
}

/* ===== Links ===== */
a {
    color: inherit;
}

/* ===== Responsive Hide ===== */
@media (max-width: 575px) {

    .col-sm-3,
    .col-sm-6 {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .d-md-flex {
        display: none !important;
    }

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

    .col-md-4,
    .col-md-6 {
        width: 100%;
    }

    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8 {
        width: 100%;
    }

    .col-xl-3,
    .col-xl-4,
    .col-xl-9 {
        width: 100%;
    }

    .display-3 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }

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

/* ===== Form ===== */
.form-control {
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-primary);
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ===== Tracking ===== */
.tracking-wide {
    letter-spacing: 0.5px;
}

/* ===== Width utility ===== */
.width-100 {
    width: 100%;
}

/* ===== Transition hover helper ===== */
.transition-hover {
    transition: all 0.2s ease !important;
}

/* ===== Inset ===== */
.inset-0 {
    inset: 0;
}

/* ===== Flex-grow ===== */
.flex-grow-1 {
    flex-grow: 1 !important;
}