/**
 * Utility Classes - Helper classes for quick styling
 * Zuchtbuch 2025 - Functional CSS Utilities
 */

/* ===== DISPLAY ===== */
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }

/* ===== POSITION ===== */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* ===== TEXT ALIGNMENT ===== */
.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 TRANSFORM ===== */
.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-normal { text-transform: none !important; }

/* ===== FONT WEIGHT ===== */
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

/* ===== FONT SIZE ===== */
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }

/* ===== TEXT COLORS ===== */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-error { color: var(--color-error) !important; }
.text-info { color: var(--color-info) !important; }
.text-white { color: white !important; }

/* ===== BACKGROUND COLORS ===== */
.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-muted { background-color: var(--bg-muted) !important; }
.bg-success { background-color: var(--color-success-light) !important; }
.bg-warning { background-color: var(--color-warning-light) !important; }
.bg-error { background-color: var(--color-error-light) !important; }
.bg-info { background-color: var(--color-info-light) !important; }
.bg-white { background-color: white !important; }
.bg-transparent { background-color: transparent !important; }

/* ===== BORDERS ===== */
.border { border: 1px solid var(--border-primary) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--border-primary) !important; }
.border-bottom { border-bottom: 1px solid var(--border-primary) !important; }
.border-left { border-left: 1px solid var(--border-primary) !important; }
.border-right { border-right: 1px solid var(--border-primary) !important; }

.border-primary { border-color: var(--color-primary) !important; }
.border-secondary { border-color: var(--border-secondary) !important; }
.border-success { border-color: var(--color-success) !important; }
.border-warning { border-color: var(--color-warning) !important; }
.border-error { border-color: var(--color-error) !important; }

/* ===== BORDER RADIUS ===== */
.rounded-none { border-radius: 0 !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: 9999px !important; }

/* ===== SHADOWS ===== */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ===== WIDTH ===== */
.w-auto { width: auto !important; }
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-full { width: 100% !important; }

/* ===== HEIGHT ===== */
.h-auto { height: auto !important; }
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-full { height: 100% !important; }

/* ===== OVERFLOW ===== */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

/* ===== VISIBILITY ===== */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* ===== CURSOR ===== */
.cursor-auto { cursor: auto !important; }
.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }
.cursor-help { cursor: help !important; }

/* ===== USER SELECT ===== */
.select-none { user-select: none !important; }
.select-all { user-select: all !important; }
.select-auto { user-select: auto !important; }

/* ===== OPACITY ===== */
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* ===== TRANSITIONS ===== */
.transition-none { transition: none !important; }
.transition-all { transition: all 0.2s ease !important; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important; }

/* ===== Z-INDEX ===== */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

/* ===== SPECIAL 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;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.float-left { float: left !important; }
.float-right { float: right !important; }
.float-none { float: none !important; }

/* ===== PRINT UTILITIES ===== */
@media print {
    .d-print-none { display: none !important; }
    .d-print-block { display: block !important; }
    .d-print-inline { display: inline !important; }
    .d-print-inline-block { display: inline-block !important; }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
    .d-mobile-flex { display: flex !important; }
    
    .text-mobile-center { text-align: center !important; }
    .text-mobile-left { text-align: left !important; }
    
    .w-mobile-full { width: 100% !important; }
    .w-mobile-auto { width: auto !important; }
}

@media (min-width: 769px) {
    .d-desktop-none { display: none !important; }
    .d-desktop-block { display: block !important; }
    .d-desktop-flex { display: flex !important; }
}