﻿/* ========================================
   Display
======================================== */

.d-block {
    display: block;
}

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

.d-flex {
    display: flex;
}

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

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}

/* ========================================
   Flex
======================================== */

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

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

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

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

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

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

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

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

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* ========================================
   Width / spacing
======================================== */

.w-auto {
    width: auto;
}

.w-100 {
    width: 100%;
}

.max-w-sm {
    max-width: 480px;
}

.max-w-md {
    max-width: 720px;
}

.max-w-lg {
    max-width: 960px;
}

.m-0 {
    margin: 0;
}

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

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

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

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.5rem;
}

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

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

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

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.5rem;
}

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

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

.p-0 {
    padding: 0;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.5rem;
}

/* ========================================
   Text
======================================== */

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

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

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

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

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

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

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

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

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

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

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

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

.fw-bold {
    font-weight: 700;
}

.fs-sm {
    font-size: 0.85rem;
}

.fs-base {
    font-size: 1rem;
}

.fs-lg {
    font-size: 1.1rem;
}

.fs-xl {
    font-size: 1.25rem;
}

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

/* ========================================
   Borders / surfaces
======================================== */

.border {
    border: 1px solid var(--border);
}

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

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

.surface {
    background: var(--surface);
}

.surface-alt {
    background: var(--surface-alt);
}

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

/* ========================================
   Visibility helpers
======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Responsive helpers
======================================== */

@media (max-width: 768px) {
    .mobile-d-none {
        display: none;
    }

    .mobile-w-100 {
        width: 100%;
    }

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

/* ========================================
    Charts
=========================================*/

.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

    .chart-container.chart-container-sm {
        height: 260px;
    }