/* ==========================================================================
   Utility Classes - ITCSS Layer 7
   ========================================================================== */

/* Display utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.inline { display: inline !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.inline-grid { display: inline-grid !important; }

/* Position utilities */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.static { position: static !important; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }
.overflow-visible { overflow: visible !important; }

/* Text utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

.text-xs { font-size: var(--font-size-xs) !important; }
.text-sm { font-size: var(--font-size-sm) !important; }
.text-base { font-size: var(--font-size-base) !important; }
.text-lg { font-size: var(--font-size-lg) !important; }
.text-xl { font-size: var(--font-size-xl) !important; }
.text-2xl { font-size: var(--font-size-2xl) !important; }
.text-3xl { font-size: var(--font-size-3xl) !important; }
.text-4xl { font-size: var(--font-size-4xl) !important; }

.font-light { font-weight: var(--font-weight-light) !important; }
.font-normal { font-weight: var(--font-weight-normal) !important; }
.font-medium { font-weight: var(--font-weight-medium) !important; }
.font-semibold { font-weight: var(--font-weight-semibold) !important; }
.font-bold { font-weight: var(--font-weight-bold) !important; }

.leading-tight { line-height: var(--line-height-tight) !important; }
.leading-normal { line-height: var(--line-height-normal) !important; }
.leading-loose { line-height: var(--line-height-loose) !important; }

/* Color utilities */
.text-primary { color: var(--sys-color-text-primary) !important; }
.text-secondary { color: var(--sys-color-text-secondary) !important; }
.text-subtle { color: var(--sys-color-text-subtle) !important; }
.text-inverted { color: var(--sys-color-text-inverted) !important; }

.bg-surface { background-color: var(--sys-color-background-surface) !important; }
.bg-page { background-color: var(--sys-color-background-page) !important; }
.bg-elevated { background-color: var(--sys-color-background-elevated) !important; }
.bg-inverted { background-color: var(--sys-color-background-inverted) !important; }

/* Border utilities */
.border { border: var(--border-width-md) solid var(--sys-color-border-default) !important; }
.border-subtle { border: var(--border-width-md) solid var(--sys-color-border-subtle) !important; }
.border-t { border-top: var(--border-width-md) solid var(--sys-color-border-default) !important; }
.border-b { border-bottom: var(--border-width-md) solid var(--sys-color-border-default) !important; }
.border-l { border-left: var(--border-width-md) solid var(--sys-color-border-default) !important; }
.border-r { border-right: var(--border-width-md) solid var(--sys-color-border-default) !important; }
.border-none { border: none !important; }

.rounded-none { border-radius: var(--border-radius-none) !important; }
.rounded-xs { border-radius: var(--border-radius-xs) !important; }
.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-full { border-radius: var(--border-radius-full) !important; }

/* Shadow utilities */
.shadow-none { box-shadow: none !important; }
.shadow-xs { box-shadow: var(--shadow-xs) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Width and Height utilities */
.w-auto { width: auto !important; }
.w-full { width: 100% !important; }
.w-screen { width: 100vw !important; }
.w-fit { width: fit-content !important; }

.h-auto { height: auto !important; }
.h-full { height: 100% !important; }
.h-screen { height: 100vh !important; }
.h-fit { height: fit-content !important; }

/* Opacity utilities */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: var(--opacity-hover) !important; }
.opacity-disabled { opacity: var(--opacity-disabled) !important; }
.opacity-100 { opacity: var(--opacity-full) !important; }

/* Z-index utilities */
.z-base { z-index: var(--z-index-base) !important; }
.z-dropdown { z-index: var(--z-index-dropdown) !important; }
.z-sticky { z-index: var(--z-index-sticky) !important; }
.z-fixed { z-index: var(--z-index-fixed) !important; }
.z-overlay { z-index: var(--z-index-overlay) !important; }
.z-modal { z-index: var(--z-index-modal) !important; }

/* Cursor utilities */
.cursor-auto { cursor: auto !important; }
.cursor-default { cursor: default !important; }
.cursor-pointer { cursor: pointer !important; }
.cursor-wait { cursor: wait !important; }
.cursor-text { cursor: text !important; }
.cursor-move { cursor: move !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* User select utilities */
.select-none { user-select: none !important; }
.select-text { user-select: text !important; }
.select-all { user-select: all !important; }
.select-auto { user-select: auto !important; }

/* Pointer events utilities */
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

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

.not-sr-only {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile\:hidden { display: none !important; }
    .mobile\:block { display: block !important; }
    .mobile\:flex { display: flex !important; }
    .mobile\:text-center { text-align: center !important; }
    .mobile\:text-sm { font-size: var(--font-size-sm) !important; }
}

@media (min-width: 769px) {
    .desktop\:hidden { display: none !important; }
    .desktop\:block { display: block !important; }
    .desktop\:flex { display: flex !important; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block !important; }
    .lg\:flex { display: flex !important; }
    .lg\:grid { display: grid !important; }
    .lg\:text-lg { font-size: var(--font-size-lg) !important; }
}