/* ============================================
   Aurora Design System — Theme CSS
   Ported from MUI Aurora v1.11.0
   DiversaApps Corporate
   ============================================ */

/* ——— Font Faces ——— */
@font-face {
    font-family: 'NotoSansArabic';
    src: url('/fonts/NotoSansArabic_ExtraCondensed-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSansCondensed';
    src: url('/fonts/OpenSans_Condensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ——— CSS Custom Properties (Light Theme - Default) ——— */
:root,
[data-aurora-color-scheme="light"] {
    /* Primary */
    --aurora-palette-primary-lighter: #C8FAD6;
    --aurora-palette-primary-light: #5BE49B;
    --aurora-palette-primary-main: #00A76F;
    --aurora-palette-primary-dark: #007867;
    --aurora-palette-primary-darker: #004B50;
    --aurora-palette-primary-contrastText: #FFFFFF;

    /* Secondary */
    --aurora-palette-secondary-lighter: #EFD6FF;
    --aurora-palette-secondary-light: #C684FF;
    --aurora-palette-secondary-main: #8E33FF;
    --aurora-palette-secondary-dark: #5119B7;
    --aurora-palette-secondary-darker: #27097A;
    --aurora-palette-secondary-contrastText: #FFFFFF;

    /* Info */
    --aurora-palette-info-lighter: #CAFDF5;
    --aurora-palette-info-light: #61F3F3;
    --aurora-palette-info-main: #00B8D9;
    --aurora-palette-info-dark: #006C9C;
    --aurora-palette-info-darker: #003768;
    --aurora-palette-info-contrastText: #FFFFFF;

    /* Success */
    --aurora-palette-success-lighter: #D3FCD2;
    --aurora-palette-success-light: #77ED8B;
    --aurora-palette-success-main: #22C55E;
    --aurora-palette-success-dark: #118D57;
    --aurora-palette-success-darker: #065E49;
    --aurora-palette-success-contrastText: #FFFFFF;

    /* Warning */
    --aurora-palette-warning-lighter: #FFF5CC;
    --aurora-palette-warning-light: #FFD666;
    --aurora-palette-warning-main: #FFAB00;
    --aurora-palette-warning-dark: #B76E00;
    --aurora-palette-warning-darker: #7A4100;
    --aurora-palette-warning-contrastText: #1C252E;

    /* Error */
    --aurora-palette-error-lighter: #FFE9D5;
    --aurora-palette-error-light: #FFAC82;
    --aurora-palette-error-main: #FF5630;
    --aurora-palette-error-dark: #B71D18;
    --aurora-palette-error-darker: #7A0916;
    --aurora-palette-error-contrastText: #FFFFFF;

    /* Greys */
    --aurora-palette-grey-100: #F9FAFB;
    --aurora-palette-grey-200: #F4F6F8;
    --aurora-palette-grey-300: #DFE3E8;
    --aurora-palette-grey-400: #C4CDD5;
    --aurora-palette-grey-500: #919EAB;
    --aurora-palette-grey-600: #637381;
    --aurora-palette-grey-700: #454F5B;
    --aurora-palette-grey-800: #1C252E;
    --aurora-palette-grey-900: #141A21;

    /* Text */
    --aurora-palette-text-primary: #1C252E;
    --aurora-palette-text-secondary: #637381;
    --aurora-palette-text-disabled: #919EAB;

    /* Background */
    --aurora-palette-background-default: #FFFFFF;
    --aurora-palette-background-paper: #FFFFFF;
    --aurora-palette-background-neutral: #F4F6F8;
    --aurora-palette-background-elevation1: #FFFFFF;
    --aurora-palette-background-elevation2: #F4F6F8;

    /* Action */
    --aurora-palette-action-hover: rgba(145, 158, 171, 0.08);
    --aurora-palette-action-selected: rgba(145, 158, 171, 0.16);
    --aurora-palette-action-disabled: rgba(145, 158, 171, 0.8);
    --aurora-palette-action-disabledBackground: rgba(145, 158, 171, 0.24);
    --aurora-palette-action-focus: rgba(145, 158, 171, 0.24);

    /* Divider */
    --aurora-palette-divider: rgba(145, 158, 171, 0.2);

    /* Common */
    --aurora-palette-common-black: #000000;
    --aurora-palette-common-white: #FFFFFF;

    /* Shadows */
    --aurora-shadow-card: 0px 12px 24px -4px rgba(145, 158, 171, 0.12);
    --aurora-shadow-dropdown: 0px 20px 40px -4px rgba(145, 158, 171, 0.24);
    --aurora-shadow-dialog: -40px 40px 80px -8px rgba(145, 158, 171, 0.24);
    --aurora-shadow-z1: 0px 1px 2px 0px rgba(145, 158, 171, 0.16);
    --aurora-shadow-z4: 0px 4px 8px 0px rgba(145, 158, 171, 0.16);
    --aurora-shadow-z8: 0px 8px 16px 0px rgba(145, 158, 171, 0.16);
    --aurora-shadow-z12: 0px 12px 24px -4px rgba(145, 158, 171, 0.16);
    --aurora-shadow-z16: 0px 16px 32px -4px rgba(145, 158, 171, 0.16);
    --aurora-shadow-z20: 0px 20px 40px -4px rgba(145, 158, 171, 0.16);
    --aurora-shadow-z24: 0px 24px 48px 0px rgba(145, 158, 171, 0.16);
    --aurora-shadow-primary: 0px 8px 16px 0px rgba(0, 167, 111, 0.24);
    --aurora-shadow-info: 0px 8px 16px 0px rgba(0, 184, 217, 0.24);
    --aurora-shadow-success: 0px 8px 16px 0px rgba(34, 197, 94, 0.24);
    --aurora-shadow-warning: 0px 8px 16px 0px rgba(255, 171, 0, 0.24);
    --aurora-shadow-error: 0px 8px 16px 0px rgba(255, 86, 48, 0.24);

    /* Borders */
    --aurora-shape-borderRadius: 12px;
    --aurora-shape-borderRadius-sm: 8px;
    --aurora-shape-borderRadius-lg: 16px;
    --aurora-shape-borderRadius-xl: 20px;

    /* Sidenav */
    --aurora-sidenav-width: 280px;
    --aurora-sidenav-collapsed-width: 88px;
    --aurora-sidenav-bg: #FFFFFF;
    --aurora-topnav-height: 64px;
}

/* ——— Dark Theme ——— */
[data-aurora-color-scheme="dark"] {
    --aurora-palette-primary-lighter: #004B50;
    --aurora-palette-primary-light: #007867;
    --aurora-palette-primary-main: #00A76F;
    --aurora-palette-primary-dark: #5BE49B;
    --aurora-palette-primary-darker: #C8FAD6;
    --aurora-palette-primary-contrastText: #1C252E;

    --aurora-palette-secondary-lighter: #27097A;
    --aurora-palette-secondary-light: #5119B7;
    --aurora-palette-secondary-main: #8E33FF;
    --aurora-palette-secondary-dark: #C684FF;
    --aurora-palette-secondary-darker: #EFD6FF;

    --aurora-palette-text-primary: #FFFFFF;
    --aurora-palette-text-secondary: rgba(255, 255, 255, 0.7);
    --aurora-palette-text-disabled: rgba(255, 255, 255, 0.5);

    --aurora-palette-background-default: #141A21;
    --aurora-palette-background-paper: #1C252E;
    --aurora-palette-background-neutral: #28323D;
    --aurora-palette-background-elevation1: #1C252E;
    --aurora-palette-background-elevation2: #28323D;

    --aurora-palette-action-hover: rgba(255, 255, 255, 0.08);
    --aurora-palette-action-selected: rgba(255, 255, 255, 0.16);
    --aurora-palette-action-disabled: rgba(255, 255, 255, 0.48);
    --aurora-palette-action-disabledBackground: rgba(255, 255, 255, 0.24);

    --aurora-palette-divider: rgba(255, 255, 255, 0.12);

    --aurora-palette-grey-100: #1C252E;
    --aurora-palette-grey-200: #28323D;
    --aurora-palette-grey-300: #384551;
    --aurora-palette-grey-400: #556370;
    --aurora-palette-grey-500: #6E7B89;
    --aurora-palette-grey-600: #8A949E;
    --aurora-palette-grey-700: #B0B8BF;
    --aurora-palette-grey-800: #DFE3E8;
    --aurora-palette-grey-900: #F9FAFB;

    --aurora-shadow-card: 0px 12px 24px -4px rgba(0, 0, 0, 0.4);
    --aurora-shadow-dropdown: 0px 20px 40px -4px rgba(0, 0, 0, 0.4);
    --aurora-shadow-dialog: -40px 40px 80px -8px rgba(0, 0, 0, 0.4);
    --aurora-shadow-z1: 0px 1px 2px 0px rgba(0, 0, 0, 0.4);
    --aurora-shadow-z4: 0px 4px 8px 0px rgba(0, 0, 0, 0.4);
    --aurora-shadow-z8: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
    --aurora-shadow-z12: 0px 12px 24px -4px rgba(0, 0, 0, 0.4);
    --aurora-shadow-z16: 0px 16px 32px -4px rgba(0, 0, 0, 0.4);
    --aurora-shadow-z20: 0px 20px 40px -4px rgba(0, 0, 0, 0.4);
    --aurora-shadow-z24: 0px 24px 48px 0px rgba(0, 0, 0, 0.4);

    --aurora-sidenav-bg: #1C252E;
}

/* ——— Reset & Base ——— */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--aurora-palette-text-primary);
    background-color: var(--aurora-palette-background-default);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    color: var(--aurora-palette-primary-main);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--aurora-palette-primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ——— Typography ——— */
.font-ar { font-family: 'NotoSansArabic', 'Plus Jakarta Sans', sans-serif; direction: rtl; }
.font-en-alt { font-family: 'OpenSansCondensed', 'Plus Jakarta Sans', sans-serif; }
.font-en { font-family: 'Plus Jakarta Sans', sans-serif; }

h1, .h1 { font-weight: 700; font-size: 3rem; line-height: 1.5; }
h2, .h2 { font-weight: 700; font-size: 2.625rem; line-height: 1.5; }
h3, .h3 { font-weight: 700; font-size: 2rem; line-height: 1.5; }
h4, .h4 { font-weight: 700; font-size: 1.75rem; line-height: 1.5; }
h5, .h5 { font-weight: 700; font-size: 1.5rem; line-height: 1.5; }
h6, .h6 { font-weight: 700; font-size: 1.3125rem; line-height: 1.4; }

.subtitle1 { font-weight: 400; font-size: 1rem; line-height: 1.3; }
.subtitle2 { font-weight: 500; font-size: 0.875rem; line-height: 1.3; }
.body1 { font-weight: 400; font-size: 1rem; line-height: 1.6; }
.body2 { font-weight: 400; font-size: 0.875rem; line-height: 1.6; }
.caption { font-weight: 400; font-size: 0.75rem; line-height: 1.2; }
.overline { font-weight: 400; font-size: 0.75rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 1.1px; }

.text-primary { color: var(--aurora-palette-text-primary) !important; }
.text-secondary { color: var(--aurora-palette-text-secondary) !important; }
.text-disabled { color: var(--aurora-palette-text-disabled) !important; }

/* Font weights */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 22px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.714;
    text-transform: capitalize;
    border: none;
    border-radius: var(--aurora-shape-borderRadius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    outline: none;
}

.btn-contained {
    background-color: var(--aurora-palette-primary-main);
    color: var(--aurora-palette-primary-contrastText);
    box-shadow: var(--aurora-shadow-primary);
}
.btn-contained:hover {
    background-color: var(--aurora-palette-primary-dark);
    box-shadow: none;
    text-decoration: none;
    color: var(--aurora-palette-primary-contrastText);
}

.btn-outlined {
    background-color: transparent;
    color: var(--aurora-palette-primary-main);
    border: 1px solid var(--aurora-palette-primary-main);
}
.btn-outlined:hover {
    background-color: rgba(0, 167, 111, 0.08);
    text-decoration: none;
}

.btn-soft {
    background-color: rgba(145, 158, 171, 0.08);
    color: var(--aurora-palette-text-primary);
}
.btn-soft:hover {
    background-color: rgba(145, 158, 171, 0.16);
    text-decoration: none;
    color: var(--aurora-palette-text-primary);
}

.btn-text {
    background: transparent;
    color: var(--aurora-palette-primary-main);
    padding: 6px 8px;
}
.btn-text:hover {
    background-color: rgba(0, 167, 111, 0.08);
    text-decoration: none;
}

.btn-lg { padding: 11px 28px; font-size: 0.9375rem; }
.btn-sm { padding: 4px 12px; font-size: 0.8125rem; }

.btn-icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* Color variants */
.btn-secondary { --aurora-palette-primary-main: var(--aurora-palette-secondary-main); --aurora-palette-primary-dark: var(--aurora-palette-secondary-dark); --aurora-palette-primary-contrastText: var(--aurora-palette-secondary-contrastText); }
.btn-info { --aurora-palette-primary-main: var(--aurora-palette-info-main); --aurora-palette-primary-dark: var(--aurora-palette-info-dark); }
.btn-success { --aurora-palette-primary-main: var(--aurora-palette-success-main); --aurora-palette-primary-dark: var(--aurora-palette-success-dark); }
.btn-warning { --aurora-palette-primary-main: var(--aurora-palette-warning-main); --aurora-palette-primary-dark: var(--aurora-palette-warning-dark); }
.btn-error { --aurora-palette-primary-main: var(--aurora-palette-error-main); --aurora-palette-primary-dark: var(--aurora-palette-error-dark); }

/* ——— Cards ——— */
.card {
    background-color: var(--aurora-palette-background-paper);
    border-radius: var(--aurora-shape-borderRadius);
    box-shadow: var(--aurora-shadow-card);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    position: relative;
}
.card:hover {
    box-shadow: var(--aurora-shadow-z16);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}
.card-body {
    padding: 24px;
}
.card-footer {
    padding: 0 24px 24px;
}

/* ——— Chips ——— */
.chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 16px;
    transition: all 0.2s ease;
}
.chip-filled {
    background-color: var(--aurora-palette-primary-main);
    color: var(--aurora-palette-primary-contrastText);
}
.chip-soft {
    background-color: rgba(0, 167, 111, 0.16);
    color: var(--aurora-palette-primary-dark);
}
.chip-outlined {
    background: transparent;
    border: 1px solid var(--aurora-palette-primary-main);
    color: var(--aurora-palette-primary-main);
}
.chip-sm { height: 24px; font-size: 0.75rem; padding: 0 8px; }

/* ——— Avatars ——— */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.875rem;
    background-color: var(--aurora-palette-primary-lighter);
    color: var(--aurora-palette-primary-dark);
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.25rem; }

.avatar-group {
    display: flex;
    flex-direction: row-reverse;
}
.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid var(--aurora-palette-background-paper);
}

/* ——— Badges ——— */
.badge {
    position: relative;
    display: inline-flex;
}
.badge-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--aurora-palette-error-main);
    border: 2px solid var(--aurora-palette-background-paper);
}
.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: var(--aurora-palette-error-main);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ——— Alerts ——— */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--aurora-shape-borderRadius-sm);
    font-size: 0.875rem;
    line-height: 1.6;
}
.alert-info { background-color: rgba(0, 184, 217, 0.08); color: var(--aurora-palette-info-dark); }
.alert-success { background-color: rgba(34, 197, 94, 0.08); color: var(--aurora-palette-success-dark); }
.alert-warning { background-color: rgba(255, 171, 0, 0.08); color: var(--aurora-palette-warning-dark); }
.alert-error { background-color: rgba(255, 86, 48, 0.08); color: var(--aurora-palette-error-dark); }

/* ——— Tables ——— */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--aurora-shape-borderRadius);
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
thead th {
    background-color: var(--aurora-palette-background-neutral);
    color: var(--aurora-palette-text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--aurora-palette-divider);
    white-space: nowrap;
}
tbody td {
    padding: 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--aurora-palette-divider);
    color: var(--aurora-palette-text-primary);
}
tbody tr:hover {
    background-color: var(--aurora-palette-action-hover);
}

/* ——— Progress ——— */
.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(145, 158, 171, 0.16);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    background-color: var(--aurora-palette-primary-main);
    transition: width 0.6s ease;
}

/* ——— Tabs ——— */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--aurora-palette-divider);
    gap: 0;
}
.tab {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--aurora-palette-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: inherit;
}
.tab:hover { color: var(--aurora-palette-text-primary); }
.tab.active {
    color: var(--aurora-palette-primary-main);
    border-bottom-color: var(--aurora-palette-primary-main);
}

/* ——— Input Fields ——— */
.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--aurora-palette-text-primary);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--aurora-palette-text-primary);
    background-color: transparent;
    border: 1px solid var(--aurora-palette-grey-400);
    border-radius: var(--aurora-shape-borderRadius-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:hover {
    border-color: var(--aurora-palette-text-primary);
}
.form-input:focus {
    border-color: var(--aurora-palette-primary-main);
    box-shadow: 0 0 0 2px rgba(0, 167, 111, 0.2);
}
.form-input::placeholder {
    color: var(--aurora-palette-text-disabled);
}
.form-helper {
    font-size: 0.75rem;
    color: var(--aurora-palette-text-secondary);
    margin-top: 4px;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23637381' d='M6 8.825a.5.5 0 01-.354-.146L2.146 5.18a.5.5 0 11.708-.708L6 7.618l3.146-3.147a.5.5 0 11.708.707L6.354 8.68a.5.5 0 01-.354.146z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ——— Divider ——— */
.divider {
    border: none;
    border-top: 1px solid var(--aurora-palette-divider);
    margin: 24px 0;
}

/* ——— Tooltips ——— */
.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: var(--aurora-palette-grey-800);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.tooltip:hover::after { opacity: 1; }

/* ——— Switch Toggle ——— */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute;
    inset: 0;
    background-color: var(--aurora-palette-grey-400);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: var(--aurora-shadow-z1);
}
.switch input:checked + .switch-slider {
    background-color: var(--aurora-palette-primary-main);
}
.switch input:checked + .switch-slider::before {
    transform: translateX(16px);
}

/* ——— Scrollbar ——— */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background-color: var(--aurora-palette-grey-400);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--aurora-palette-grey-500);
}

/* ——— Utility Classes ——— */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-grid { display: grid !important; }

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.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; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 4px; }  .mt-2 { margin-top: 8px; }  .mt-3 { margin-top: 12px; }  .mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }  .mt-6 { margin-top: 24px; }  .mt-8 { margin-top: 32px; }  .mt-10 { margin-top: 40px; }
.mb-1 { margin-bottom: 4px; }  .mb-2 { margin-bottom: 8px; }  .mb-3 { margin-bottom: 12px; }  .mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }  .mb-6 { margin-bottom: 24px; }  .mb-8 { margin-bottom: 32px; }  .mb-10 { margin-bottom: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.p-0 { padding: 0; }
.p-2 { padding: 8px; }  .p-3 { padding: 12px; }  .p-4 { padding: 16px; }
.p-5 { padding: 20px; }  .p-6 { padding: 24px; }  .p-8 { padding: 32px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.min-h-screen { min-height: 100vh; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.rounded { border-radius: var(--aurora-shape-borderRadius); }
.rounded-sm { border-radius: var(--aurora-shape-borderRadius-sm); }
.rounded-lg { border-radius: var(--aurora-shape-borderRadius-lg); }
.rounded-xl { border-radius: var(--aurora-shape-borderRadius-xl); }
.rounded-full { border-radius: 50%; }

.shadow-card { box-shadow: var(--aurora-shadow-card); }
.shadow-z1 { box-shadow: var(--aurora-shadow-z1); }
.shadow-z8 { box-shadow: var(--aurora-shadow-z8); }
.shadow-z16 { box-shadow: var(--aurora-shadow-z16); }
.shadow-z20 { box-shadow: var(--aurora-shadow-z20); }
.shadow-none { box-shadow: none; }

.bg-paper { background-color: var(--aurora-palette-background-paper); }
.bg-default { background-color: var(--aurora-palette-background-default); }
.bg-neutral { background-color: var(--aurora-palette-background-neutral); }
.bg-primary-lighter { background-color: var(--aurora-palette-primary-lighter); }
.bg-primary-main { background-color: var(--aurora-palette-primary-main); }

.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-lg { max-width: 1400px; }
.container-fluid { max-width: 100%; }

/* ——— Responsive Breakpoints ——— */
@media (max-width: 599.95px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
    h5, .h5 { font-size: 1.125rem; }
    .container { padding: 0 16px; }
}
@media (min-width: 600px) and (max-width: 899.95px) {
    h1, .h1 { font-size: 2.5rem; }
    h2, .h2 { font-size: 2rem; }
}
@media (min-width: 900px) { .d-md-flex { display: flex !important; } .d-md-none { display: none !important; } .d-md-block { display: block !important; } }
@media (min-width: 1200px) { .d-lg-flex { display: flex !important; } .d-lg-none { display: none !important; } .d-lg-block { display: block !important; } }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 899.95px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599.95px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Selection */
::selection {
    background-color: var(--aurora-palette-primary-lighter);
    color: var(--aurora-palette-primary-darker);
}
