/*
==================================================
🎨 MASTER STYLE.CSS - Complete Utility Framework
==================================================
Version: 2.0
Author: Your Name
Description: Comprehensive CSS utility library with 
             reset, typography, layout, components,
             responsive utilities & animations
==================================================
*/

/* ========================================
   🔄 CSS VARIABLES (Design Tokens)
   ======================================== */
   
/** {*/
/*    color: #000 !important;*/
/*}*/

/* Specifically for links which often have default blue colors */
/*a {*/
/*    color: #000 !important;*/
/*    text-decoration: none;*/
/*}   */
:root {
    /* ===== Colors ===== */
    --color-primary: #4361ee;
    --color-primary-dark: #3a56d4;
    --color-primary-light: #5a75f5;
    --color-secondary: #7209b7;
    --color-secondary-dark: #5f0799;
    --color-accent: #f72585;
    --color-success: #06d6a0;
    --color-warning: #ffd166;
    --color-danger: #ef476f;
    --color-info: #118ab2;
    
    /* ===== Neutral Colors ===== */
    --color-white: #ffffff;
    --color-offwhite: #f8f9fa;
    --color-light: #ffffff;
    --color-gray: #6c757d;
    --color-dark: #343a40;
    --color-black: #000000;
    
    /* ===== Background Colors ===== */
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-offwhite);
    --bg-dark: var(--color-dark);
    --bg-gradient-info: linear-gradient(135deg, var(--color-info), #00c4c2);
    --bg-gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --bg-gradient-success: linear-gradient(135deg, var(--color-success), #04aa8d);
    --bg-gradient-danger: linear-gradient(135deg, var(--color-danger), #d63353);
    --bg-gradient-warning: linear-gradient(135deg, var(--color-warning), #ff7c00);
    --bg-gradient-light: linear-gradient(135deg, var(--color-light), #ffffff);
    --bg-gradient-dark: linear-gradient(135deg, var(--color-dark), #000000);
    
    /* ===== Text Colors ===== */
    --text-primary: var(--color-dark);
    --text-secondary: var(--color-gray);
    --text-light: var(--color-light);
    --text-white: var(--color-white);
    --text-muted: #868e96;
    
    /* ===== Typography ===== */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Poppins', var(--font-family-base);
    --font-family-mono: 'Fira Code', 'Courier New', monospace;
    
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-none: 1;
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    --line-height-5:5px;
    --line-height-10:10px;
    --line-height-20:20px;
    --line-height-25:25px;
    --line-height-30:30px;
    --line-height-35:35px;
    --line-height-40:40px;
    --line-height-45:45px;
    --line-height-50:50px;
    
    /* ===== Spacing Scale (8px base) ===== */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* ===== Borders & Radius ===== */
    --border-width: 1px;
    --border-width-2: 2px;
    --border-width-4: 4px;
    --border-color: var(--color-light);
    --border-color-dark: var(--color-dark);
    
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* ===== Shadows ===== */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0,0,0,0.06);
    --shadow-none: none;
    
    /* ===== Transitions & Animations ===== */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== Z-Index Scale ===== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ===== Breakpoints ===== */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

/* ========================================
   🔄 CSS RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*html {*/
/*    font-size: 16px;*/
/*    scroll-behavior: smooth;*/
/*    -webkit-text-size-adjust: 100%;*/
/*    -ms-text-size-adjust: 100%;*/
/*}*/

/*body {*/
/*    font-family: var(--font-family-base);*/
/*    font-size: var(--font-size-base);*/
/*    font-weight: var(--font-weight-normal);*/
/*    line-height: var(--line-height-normal);*/
/*    color: var(--text-primary);*/
/*    background-color: var(--bg-primary);*/
/*    -webkit-font-smoothing: antialiased;*/
/*    -moz-osx-font-smoothing: grayscale;*/
/*    overflow-x: hidden;*/
/*}*/

/* ===== Box Sizing Helper ===== */
.box-border { box-sizing: border-box; }
.box-content { box-sizing: content-box; }

/* ===== Image Reset ===== */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===== Form Elements Reset ===== */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* ===== Links ===== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== Lists ===== */
ul, ol {
    list-style: none;
}

/* ===== Table Reset ===== */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: var(--space-3);
    text-align: left;
    border-bottom: var(--border-width) solid var(--border-color);
}

th {
    font-weight: var(--font-weight-semibold);
    background-color: var(--bg-secondary);
}

/* ========================================
   🎨 TYPOGRAPHY UTILITIES
   ======================================== */

/* ===== Font Family ===== */
.font-sans { font-family: var(--font-family-base); }
.font-serif { font-family: Georgia, 'Times New Roman', serif; }
.font-mono { font-family: var(--font-family-mono); }
.font-heading { font-family: var(--font-family-heading); }

/* ===== Font Size ===== */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: var(--font-size-5xl); }

/* ===== Font Weight ===== */
.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* ===== Line Height ===== */
.leading-none { line-height: var(--line-height-none); }
.leading-tight { line-height: var(--line-height-tight); }
.leading-snug { line-height: var(--line-height-snug); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }
.leading-loose { line-height: var(--line-height-loose); }

.lh-5 { line-height: var(--line-height-5); }
.lh-10 { line-height: var(--line-height-10); }
.lh-15 { line-height: var(--line-height-15); }
.lh-20 { line-height: var(--line-height-20); }
.lh-25 { line-height: var(--line-height-25); }
.lh-30 { line-height: var(--line-height-30); }
.lh-35 { line-height: var(--line-height-35); }
.lh-40 { line-height: var(--line-height-40); }
.lh-45 { line-height: var(--line-height-45); }
.lh-50 { line-height: var(--line-height-50); }


/* ===== Text Alignment ===== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* ===== Text Transform ===== */
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
.text-normal { text-transform: none; }

/* ===== Text Decoration ===== */
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }

/* ===== Text Color ===== */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-info { color: var(--color-info); }
.text-white { color: var(--text-white); }
.text-dark { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-gray { color: var(--color-gray); }

/* ===== Text Overflow & Wrapping ===== */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.break-words { word-wrap: break-word; }
.break-all { word-break: break-all; }
.whitespace-normal { white-space: normal; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* ===== Letter Spacing ===== */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }


/* ========================================
   📐 SPACING UTILITIES (Margin & Padding)
   ======================================== */

/* ===== Margin Utilities ===== */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-10 { margin: var(--space-10); }
.m-12 { margin: var(--space-12); }
.m-16 { margin: var(--space-16); }
.m-20 { margin: var(--space-20); }
.m-24 { margin: var(--space-24); }
.m-auto { margin: auto; }

/* Margin Top */
.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-auto { margin-top: auto; }

/* Margin Right */
.mr-0 { margin-right: var(--space-0); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-5 { margin-right: var(--space-5); }
.mr-6 { margin-right: var(--space-6); }
.mr-8 { margin-right: var(--space-8); }
.mr-10 { margin-right: var(--space-10); }
.mr-auto { margin-right: auto; }

/* Margin Bottom */
.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-auto { margin-bottom: auto; }

/* Margin Left */
.ml-0 { margin-left: var(--space-0); }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-5 { margin-left: var(--space-5); }
.ml-6 { margin-left: var(--space-6); }
.ml-8 { margin-left: var(--space-8); }
.ml-10 { margin-left: var(--space-10); }
.ml-auto { margin-left: auto; }

/* Margin X (Left & Right) */
.mx-0 { margin-left: var(--space-0); margin-right: var(--space-0); }
.mx-1 { margin-left: var(--space-1); margin-right: var(--space-1); }
.mx-2 { margin-left: var(--space-2); margin-right: var(--space-2); }
.mx-3 { margin-left: var(--space-3); margin-right: var(--space-3); }
.mx-4 { margin-left: var(--space-4); margin-right: var(--space-4); }
.mx-5 { margin-left: var(--space-5); margin-right: var(--space-5); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Margin Y (Top & Bottom) */
.my-0 { margin-top: var(--space-0); margin-bottom: var(--space-0); }
.my-1 { margin-top: var(--space-1); margin-bottom: var(--space-1); }
.my-2 { margin-top: var(--space-2); margin-bottom: var(--space-2); }
.my-3 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-5 { margin-top: var(--space-5); margin-bottom: var(--space-5); }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* ===== Padding Utilities ===== */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }

/* Padding Top */
.pt-0 { padding-top: var(--space-0); }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pt-10 { padding-top: var(--space-10); }

/* Padding Right */
.pr-0 { padding-right: var(--space-0); }
.pr-1 { padding-right: var(--space-1); }
.pr-2 { padding-right: var(--space-2); }
.pr-3 { padding-right: var(--space-3); }
.pr-4 { padding-right: var(--space-4); }
.pr-5 { padding-right: var(--space-5); }
.pr-6 { padding-right: var(--space-6); }
.pr-8 { padding-right: var(--space-8); }

/* Padding Bottom */
.pb-0 { padding-bottom: var(--space-0); }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

/* Padding Left */
.pl-0 { padding-left: var(--space-0); }
.pl-1 { padding-left: var(--space-1); }
.pl-2 { padding-left: var(--space-2); }
.pl-3 { padding-left: var(--space-3); }
.pl-4 { padding-left: var(--space-4); }
.pl-5 { padding-left: var(--space-5); }
.pl-6 { padding-left: var(--space-6); }
.pl-8 { padding-left: var(--space-8); }

/* Padding X (Left & Right) */
.px-0 { padding-left: var(--space-0); padding-right: var(--space-0); }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }

/* Padding Y (Top & Bottom) */
.py-0 { padding-top: var(--space-0); padding-bottom: var(--space-0); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }

/* ========================================
   🎨 COLOR & BACKGROUND UTILITIES
   ======================================== */

/* ===== Background Colors ===== */
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-danger { background-color: var(--color-danger); }
.bg-info { background-color: var(--color-info); }
.bg-white { background-color: var(--color-white); }
.bg-offwhite { background-color: var(--color-offwhite); }
.bg-light { background-color: var(--color-light); }
.bg-gray { background-color: var(--color-gray); }
.bg-dark { background-color: var(--color-dark); }
.bg-black { background-color: var(--color-black); }
.bg-transparent { background-color: transparent; }

/* ===== Gradient Backgrounds ===== */
.bg-gradient-light { background: var(--bg-gradient-light); }
.bg-gradient-primary { background: var(--bg-gradient-primary); }
.bg-gradient-info { background: var(--bg-gradient-info); }
.bg-gradient-success { background: var(--bg-gradient-success); }
.bg-gradient-warning { background: var(--bg-gradient-warning); }
.bg-gradient-danger { background: var(--bg-gradient-danger); }
.bg-gradient-dark { background: var(--bg-gradient-dark); }

/* ===== Background Image Utilities ===== */
.bg-cover { background-size: cover; }
.bg-contain { background-size: contain; }
.bg-center { background-position: center; }
.bg-top { background-position: top; }
.bg-bottom { background-position: bottom; }
.bg-left { background-position: left; }
.bg-right { background-position: right; }
.bg-no-repeat { background-repeat: no-repeat; }
.bg-repeat { background-repeat: repeat; }

/* ===== Opacity ===== */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }


/* ========================================
   📦 LAYOUT & DISPLAY UTILITIES
   ======================================== */

/* ===== Display ===== */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }
.d-table { display: table; }
.d-table-cell { display: table-cell; }

/* ===== Flexbox Utilities ===== */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-column-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.content-start { align-content: flex-start; }
.content-end { align-content: flex-end; }
.content-center { align-content: center; }
.content-between { align-content: space-between; }
.content-around { align-content: space-around; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

.flex-grow-0 { flex-grow: 0; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink-1 { flex-shrink: 1; }

.order-first { order: -1; }
.order-last { order: 999; }
.order-0 { order: 0; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }

/* ===== Grid Utilities ===== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.grid-rows-1 { grid-template-rows: repeat(1, minmax(0, 1fr)); }
.grid-rows-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.grid-rows-3 { grid-template-rows: repeat(3, minmax(0, 1fr)); }

.gap-0 { gap: var(--space-0); }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ===== Position ===== */
.position-static { position: static; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-50 { top: 50%; }
.left-50 { left: 50%; }
.translate-middle { transform: translate(-50%, -50%); }

/* ===== Width & Height ===== */
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.mw-100 { max-width: 100%; }

.wr-1 { width: 1rem; }
.wr-2 { width: 2rem; }
.wr-3 { width: 3rem; }
.wr-4 { width: 4rem; }
.wr-5 { width: 5rem; }
.wr-6 { width: 6rem; }
.wr-7 { width: 7rem; }
.wr-8 { width: 8rem; }
.wr-9 { width: 9rem; }
.wr-10 { width: 10rem; }
.wr-20 { width: 20rem; }
.wr-30 { width: 30rem; }
.wr-40 { width: 40rem; }
.wr-50 { width: 50rem; }
.wr-60 { width: 60rem; }


.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }
.mh-100 { max-height: 100%; }
.vh-100 { height: 100vh; }
.vw-100 { width: 100vw; }

/* ===== Overflow ===== */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* ===== Z-Index ===== */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-dropdown { z-index: var(--z-dropdown); }
.z-sticky { z-index: var(--z-sticky); }
.z-fixed { z-index: var(--z-fixed); }
.z-modal { z-index: var(--z-modal); }
.z-tooltip { z-index: var(--z-tooltip); }

/* ========================================
   🖼️ IMAGE & MEDIA UTILITIES
   ======================================== */

/* ===== Image Shapes ===== */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-rounded { border-radius: var(--radius); }
.img-circle { border-radius: var(--radius-full); }
.img-thumbnail {
    padding: var(--space-2);
    background-color: var(--bg-primary);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius);
}

/* ===== Image Effects ===== */
.img-hover-zoom {
    transition: transform var(--transition-base);
}
.img-hover-zoom:hover {
    transform: scale(1.05);
}

.img-grayscale {
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}
.img-grayscale:hover {
    filter: grayscale(0%);
}

.img-sepia {
    filter: sepia(100%);
    transition: filter var(--transition-base);
}
.img-sepia:hover {
    filter: sepia(0%);
}

.img-blur {
    filter: blur(4px);
    transition: filter var(--transition-base);
}
.img-blur:hover {
    filter: blur(0);
}

/* ===== Image Overlay ===== */
.img-overlay {
    position: relative;
    display: inline-block;
}

.img-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: inherit;
}

.img-overlay:hover::before {
    opacity: 1;
}

.img-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    transition: opacity var(--transition-base);
    text-align: center;
    padding: var(--space-4);
}

.img-overlay:hover .img-overlay-content {
    opacity: 1;
}

/* ===== Object Fit ===== */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-fill { object-fit: fill; }
.object-none { object-fit: none; }
.object-scale-down { object-fit: scale-down; }

/* ========================================
   🎨 BOX STYLING UTILITIES
   ======================================== */

/* ===== Border ===== */
/* ======= border access===========*/


.border { border: var(--border-width) solid var(--border-color); }
.border-0 { border: 0; }
.border-2 { border: var(--border-width-2) solid var(--border-color); }
.border-4 { border: var(--border-width-4) solid var(--border-color); }

.border-primary { border-color: var(--color-primary); }
.border-secondary { border-color: var(--color-secondary); }
.border-success { border-color: var(--color-success); }
.border-warning { border-color: var(--color-warning); }
.border-danger { border-color: var(--color-danger); }
.border-white { border-color: var(--color-white); }
.border-transparent { border-color: transparent; }

.border-top { border-top: var(--border-width) solid var(--border-color); }
.border-right { border-right: var(--border-width) solid var(--border-color); }
.border-bottom { border-bottom: var(--border-width) solid var(--border-color); }
.border-left { border-left: var(--border-width) solid var(--border-color); }

/* ===== Border Radius ===== */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-0 { border-radius: 0; }

.rounded-top { border-radius: var(--radius) var(--radius) 0 0; }
.rounded-right { border-radius: 0 var(--radius) var(--radius) 0; }
.rounded-bottom { border-radius: 0 0 var(--radius) var(--radius); }
.rounded-left { border-radius: var(--radius) 0 0 var(--radius); }

/* ===== Box Shadow ===== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-inner { box-shadow: var(--shadow-inner); }
.shadow-none { box-shadow: var(--shadow-none); }

/* ===== Shadow Hover Effects ===== */
.hover-shadow-sm:hover { box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-base); }
.hover-shadow:hover { box-shadow: var(--shadow); transition: box-shadow var(--transition-base); }
.hover-shadow-lg:hover { box-shadow: var(--shadow-lg); transition: box-shadow var(--transition-base); }
.hover-shadow-xl:hover { box-shadow: var(--shadow-xl); transition: box-shadow var(--transition-base); }

/* ===== Outline ===== */
.outline-none { outline: none; }
.outline-primary { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.outline-secondary { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* ========================================
   🔘 BUTTON & FORM UTILITIES
   ======================================== */

/* ===== Base Button Styles ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
    border: var(--border-width) solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.5);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Button Sizes ===== */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-xl);
    border-radius: var(--radius-xl);
}

/* ===== Button Variants ===== */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--text-white);
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
}

.btn-success {
    background-color: var(--color-success);
    color: var(--text-white);
    border-color: var(--color-success);
}
.btn-success:hover {
    background-color: #05c191;
    border-color: #05c191;
}

.btn-warning {
    background-color: var(--color-warning);
    color: var(--text-dark);
    border-color: var(--color-warning);
}
.btn-warning:hover {
    background-color: #ffc542;
    border-color: #ffc542;
}

.btn-danger {
    background-color: var(--color-danger);
    color: var(--text-white);
    border-color: var(--color-danger);
}
.btn-danger:hover {
    background-color: #d63353;
    border-color: #d63353;
}

.btn-info {
    background-color: var(--color-info);
    color: var(--text-white);
    border-color: var(--color-info);
}
.btn-info:hover {
    background-color: #0f7a99;
    border-color: #0f7a99;
}

.btn-light {
    background-color: var(--color-light);
    color: var(--text-dark);
    border-color: var(--color-light);
}
.btn-light:hover {
    background-color: #d3d9df;
    border-color: #d3d9df;
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--text-white);
    border-color: var(--color-dark);
}
.btn-dark:hover {
    background-color: #23272b;
    border-color: #23272b;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--text-white);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.btn-outline-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--text-white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-primary);
    border-color: transparent;
}
.btn-ghost:hover {
    background-color: var(--bg-secondary);
}

/* ===== Button Groups ===== */
.btn-group {
    display: inline-flex;
}
.btn-group .btn {
    border-radius: 0;
}
.btn-group .btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}
.btn-group .btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== Form Controls ===== */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-clip: padding-box;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.form-control:disabled {
    background-color: var(--bg-secondary);
    opacity: 1;
    cursor: not-allowed;
}

.form-control-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.form-control-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
}

/* ===== Form Layout ===== */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.form-text {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

/* ===== Form Validation States ===== */
.form-control.is-valid {
    border-color: var(--color-success);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2306d6a0' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef476f'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef476f' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.valid-feedback {
    display: none;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-success);
}
.is-valid ~ .valid-feedback { display: block; }

.invalid-feedback {
    display: none;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-danger);
}
.is-invalid ~ .invalid-feedback { display: block; }

/* ===== Checkbox & Radio ===== */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    vertical-align: top;
    background-color: var(--bg-primary);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-sm);
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

.form-check-label {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== Select ===== */
.form-select {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-8) var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 16px 12px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

/* ===== Textarea ===== */
textarea.form-control {
    min-height: calc(1.5em + 0.75rem + calc(var(--border-width) * 2));
    resize: vertical;
}

textarea.form-control-sm { min-height: calc(1.5em + 0.5rem + calc(var(--border-width) * 2)); }
textarea.form-control-lg { min-height: calc(1.5em + 1rem + calc(var(--border-width) * 2)); }

/* ========================================
   🧩 COMPONENT UTILITIES
   ======================================== */

/* ===== Card Component ===== */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    /*background-color: var(--bg-primary);*/
    background-clip: border-box;
    /*border: var(--border-width) solid var(--border-color);*/
    /*border-radius: var(--radius);*/
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--space-4) var(--space-5);
    background-color: var(--bg-secondary);
    /*border-bottom: var(--border-width) solid var(--border-color);*/
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-body {
    flex: 1 1 auto;
    padding: var(--space-5);
}

.card-title {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.card-text {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    background-color: var(--bg-secondary);
    border-top: var(--border-width) solid var(--border-color);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ===== Alert Component ===== */
.alert {
    position: relative;
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
    border: var(--border-width) solid transparent;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-primary {
    color: var(--color-primary-dark);
    background-color: rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.2);
}

.alert-success {
    color: #049a73;
    background-color: rgba(6, 214, 160, 0.1);
    border-color: rgba(6, 214, 160, 0.2);
}

.alert-warning {
    color: #b38f00;
    background-color: rgba(255, 209, 102, 0.15);
    border-color: rgba(255, 209, 102, 0.3);
}

.alert-danger {
    color: #c21e45;
    background-color: rgba(239, 71, 111, 0.1);
    border-color: rgba(239, 71, 111, 0.2);
}

.alert-dismissible {
    padding-right: var(--space-10);
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: var(--space-4);
    transform: translateY(-50%);
    padding: var(--space-2);
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* ===== Badge Component ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    color: var(--text-white);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-full);
}

.badge-primary { background-color: var(--color-primary); }
.badge-secondary { background-color: var(--color-secondary); }
.badge-success { background-color: var(--color-success); }
.badge-warning { background-color: var(--color-warning); color: var(--text-dark); }
.badge-danger { background-color: var(--color-danger); }
.badge-info { background-color: var(--color-info); }
.badge-light { background-color: var(--color-light); color: var(--text-dark); }
.badge-dark { background-color: var(--color-dark); }

/* ===== Modal Component ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal);
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal-backdrop);
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: var(--space-4);
    pointer-events: none;
}

.modal.active .modal-dialog {
    pointer-events: auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--bg-primary);
    background-clip: padding-box;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--space-5);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-4) var(--space-5);
    border-top: var(--border-width) solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: var(--space-3);
}

.modal-close {
    padding: var(--space-2);
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ===== Tooltip Component ===== */
.tooltip {
    position: absolute;
    z-index: var(--z-tooltip);
    display: block;
    margin: var(--space-2);
    font-family: var(--font-family-base);
    font-style: normal;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: var(--font-size-sm);
    word-wrap: break-word;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.tooltip.active {
    opacity: 1;
}

.tooltip-inner {
    max-width: 200px;
    padding: var(--space-2) var(--space-3);
    color: var(--text-white);
    text-align: center;
    background-color: var(--color-dark);
    border-radius: var(--radius-sm);
}

.tooltip-arrow {
    position: absolute;
    display: block;
    width: var(--space-2);
    height: var(--space-2);
}

.tooltip-arrow::before {
    position: absolute;
    content: "";
    border-color: transparent;
    border-style: solid;
}

/* Tooltip Positions */
.bs-tooltip-top .tooltip-arrow {
    bottom: calc(-1 * var(--space-2));
}
.bs-tooltip-top .tooltip-arrow::before {
    top: -1px;
    border-width: var(--space-2) var(--space-2) 0;
    border-top-color: var(--color-dark);
}

.bs-tooltip-end .tooltip-arrow {
    left: calc(-1 * var(--space-2));
}
.bs-tooltip-end .tooltip-arrow::before {
    right: -1px;
    border-width: var(--space-2) 0 var(--space-2) var(--space-2);
    border-right-color: var(--color-dark);
}

.bs-tooltip-bottom .tooltip-arrow {
    top: calc(-1 * var(--space-2));
}
.bs-tooltip-bottom .tooltip-arrow::before {
    bottom: -1px;
    border-width: 0 var(--space-2) var(--space-2);
    border-bottom-color: var(--color-dark);
}

.bs-tooltip-start .tooltip-arrow {
    right: calc(-1 * var(--space-2));
}
.bs-tooltip-start .tooltip-arrow::before {
    left: -1px;
    border-width: var(--space-2) var(--space-2) var(--space-2) 0;
    border-left-color: var(--color-dark);
}

/* ===== Loading Spinner ===== */
.spinner {
    display: inline-block;
    width: var(--space-6);
    height: var(--space-6);
    border: 3px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

.spinner-sm {
    width: var(--space-4);
    height: var(--space-4);
    border-width: 2px;
}

.spinner-lg {
    width: var(--space-8);
    height: var(--space-8);
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-border {
    display: inline-block;
    width: var(--space-6);
    height: var(--space-6);
    vertical-align: text-bottom;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

/* ===== Progress Bar ===== */
.progress {
    display: flex;
    height: var(--space-3);
    overflow: hidden;
    font-size: var(--font-size-xs);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--text-white);
    text-align: center;
    white-space: nowrap;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: var(--space-4) var(--space-4);
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: var(--space-4) 0; }
    to { background-position: 0 0; }
}

/* ========================================
   🎬 ANIMATIONS & TRANSITIONS
   ======================================== */

/* ===== Transition Utilities ===== */
.transition-none { transition: none; }
.transition-all { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }
.transition-transform { transition: transform var(--transition-base); }
.transition-opacity { transition: opacity var(--transition-base); }
.transition-colors { transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast); }

/* ===== Animation Utilities ===== */
.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease-in;
}

.animate-fade-out {
    animation: fadeOut var(--transition-slow) ease-out;
}

.animate-slide-up {
    animation: slideUp var(--transition-base) ease-out;
}

.animate-slide-down {
    animation: slideDown var(--transition-base) ease-out;
}

.animate-scale-in {
    animation: scaleIn var(--transition-base) ease-out;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Hover Animations ===== */
.hover-scale {
    transition: transform var(--transition-base);
}
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-lg {
    transition: transform var(--transition-base);
}
.hover-scale-lg:hover {
    transform: scale(1.1);
}

.hover-translate-up {
    transition: transform var(--transition-base);
}
.hover-translate-up:hover {
    transform: translateY(-5px);
}

.hover-rotate {
    transition: transform var(--transition-base);
}
.hover-rotate:hover {
    transform: rotate(5deg);
}

/* ========================================
   📱 RESPONSIVE UTILITIES (Media Queries)
   ======================================== */

/* ===== Small devices (landscape phones, ≥576px) ===== */
@media (min-width: 576px) {
    .d-sm-none { display: none; }
    .d-sm-block { display: block; }
    .d-sm-flex { display: flex; }
    .d-sm-grid { display: grid; }
    
    .flex-sm-row { flex-direction: row; }
    .flex-sm-column { flex-direction: column; }
    
    .text-sm-left { text-align: left; }
    .text-sm-center { text-align: center; }
    .text-sm-right { text-align: right; }
    
    .w-sm-25 { width: 25%; }
    .w-sm-50 { width: 50%; }
    .w-sm-75 { width: 75%; }
    .w-sm-100 { width: 100%; }
    
    .m-sm-0 { margin: var(--space-0); }
    .m-sm-1 { margin: var(--space-1); }
    .m-sm-2 { margin: var(--space-2); }
    .m-sm-3 { margin: var(--space-3); }
    .m-sm-4 { margin: var(--space-4); }
    .m-sm-5 { margin: var(--space-5); }
    .m-sm-auto { margin: auto; }
    
    .p-sm-0 { padding: var(--space-0); }
    .p-sm-1 { padding: var(--space-1); }
    .p-sm-2 { padding: var(--space-2); }
    .p-sm-3 { padding: var(--space-3); }
    .p-sm-4 { padding: var(--space-4); }
    .p-sm-5 { padding: var(--space-5); }
}

/* ===== Medium devices (tablets, ≥768px) ===== */
@media (min-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
    .d-md-grid { display: grid; }
    
    .flex-md-row { flex-direction: row; }
    .flex-md-column { flex-direction: column; }
    
    .text-md-left { text-align: left; }
    .text-md-center { text-align: center; }
    .text-md-right { text-align: right; }
    
    .w-md-25 { width: 25%; }
    .w-md-50 { width: 50%; }
    .w-md-75 { width: 75%; }
    .w-md-100 { width: 100%; }
    
    .m-md-0 { margin: var(--space-0); }
    .m-md-1 { margin: var(--space-1); }
    .m-md-2 { margin: var(--space-2); }
    .m-md-3 { margin: var(--space-3); }
    .m-md-4 { margin: var(--space-4); }
    .m-md-5 { margin: var(--space-5); }
    .m-md-auto { margin: auto; }
    
    .p-md-0 { padding: var(--space-0); }
    .p-md-1 { padding: var(--space-1); }
    .p-md-2 { padding: var(--space-2); }
    .p-md-3 { padding: var(--space-3); }
    .p-md-4 { padding: var(--space-4); }
    .p-md-5 { padding: var(--space-5); }
    
    .container {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

/* ===== Large devices (desktops, ≥992px) ===== */
@media (min-width: 992px) {
    .d-lg-none { display: none; }
    .d-lg-block { display: block; }
    .d-lg-flex { display: flex; }
    .d-lg-grid { display: grid; }
    
    .flex-lg-row { flex-direction: row; }
    .flex-lg-column { flex-direction: column; }
    
    .text-lg-left { text-align: left; }
    .text-lg-center { text-align: center; }
    .text-lg-right { text-align: right; }
    
    .w-lg-25 { width: 25%; }
    .w-lg-50 { width: 50%; }
    .w-lg-75 { width: 75%; }
    .w-lg-100 { width: 100%; }
    
    .m-lg-0 { margin: var(--space-0); }
    .m-lg-1 { margin: var(--space-1); }
    .m-lg-2 { margin: var(--space-2); }
    .m-lg-3 { margin: var(--space-3); }
    .m-lg-4 { margin: var(--space-4); }
    .m-lg-5 { margin: var(--space-5); }
    .m-lg-auto { margin: auto; }
    
    .p-lg-0 { padding: var(--space-0); }
    .p-lg-1 { padding: var(--space-1); }
    .p-lg-2 { padding: var(--space-2); }
    .p-lg-3 { padding: var(--space-3); }
    .p-lg-4 { padding: var(--space-4); }
    .p-lg-5 { padding: var(--space-5); }
    
    .container {
        max-width: 960px;
    }
}

/* ===== Extra large devices (large desktops, ≥1200px) ===== */
@media (min-width: 1200px) {
    .d-xl-none { display: none; }
    .d-xl-block { display: block; }
    .d-xl-flex { display: flex; }
    .d-xl-grid { display: grid; }
    
    .text-xl-left { text-align: left; }
    .text-xl-center { text-align: center; }
    .text-xl-right { text-align: right; }
    
    .container {
        max-width: 1140px;
    }
}

/* ===== Extra extra large devices (xxl, ≥1400px) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ===== Print Styles ===== */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]::after {
        content: " (" attr(title) ")";
    }
    
    pre {
        white-space: pre-wrap !important;
    }
    
    pre, blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    
    thead {
        display: table-header-group;
    }
    
    tr, img {
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
    
    .no-print {
        display: none !important;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a2e;
        --bg-secondary: #16213e;
        --text-primary: #f8f9fa;
        --text-secondary: #adb5bd;
        --border-color: #343a40;
    }
    
    .card, .modal-content, .form-control {
        /*background-color: var(--bg-secondary);*/
        /*border-color: var(--border-color);*/
    }
    
    .form-control:focus {
        border-color: var(--color-primary-light);
        box-shadow: 0 0 0 3px rgba(90, 117, 245, 0.25);
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   🔧 HELPER & MISCELLANEOUS UTILITIES
   ======================================== */

/* ===== Visibility ===== */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ===== Screen Reader Only ===== */
.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;
}

/* ===== Clearfix ===== */
.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

/* ===== Float ===== */
.float-left { float: left; }
.float-right { float: right; }
.float-none { float: none; }

/* ===== Vertical Align ===== */
.align-baseline { vertical-align: baseline; }
.align-top { vertical-align: top; }
.align-middle { vertical-align: middle; }
.align-bottom { vertical-align: bottom; }
.align-text-top { vertical-align: text-top; }
.align-text-bottom { vertical-align: text-bottom; }

/* ===== User Select ===== */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* ===== Pointer Events ===== */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ===== Cursor ===== */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-wait { cursor: wait; }
.cursor-help { cursor: help; }

/* ===== Filter ===== */
.filter-none { filter: none; }
.filter-grayscale { filter: grayscale(100%); }
.filter-blur { filter: blur(4px); }
.filter-brightness-50 { filter: brightness(0.5); }
.filter-brightness-150 { filter: brightness(1.5); }
.filter-contrast-50 { filter: contrast(0.5); }
.filter-contrast-150 { filter: contrast(1.5); }

/* ===== Mix Blend Mode ===== */
.mix-blend-normal { mix-blend-mode: normal; }
.mix-blend-multiply { mix-blend-mode: multiply; }
.mix-blend-screen { mix-blend-mode: screen; }
.mix-blend-overlay { mix-blend-mode: overlay; }
.mix-blend-darken { mix-blend-mode: darken; }
.mix-blend-lighten { mix-blend-mode: lighten; }

/* ===== Backdrop Filter ===== */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
.backdrop-brightness-50 { backdrop-filter: brightness(0.5); }
.backdrop-brightness-150 { backdrop-filter: brightness(1.5); }

/* ===== Container ===== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container-fluid {
    width: 100%;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* ===== Row & Column Grid ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--space-4) * -1);
    margin-right: calc(var(--space-4) * -1);
}

.row > * {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.col {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

/* ===== Screen Sizes for Display Toggle ===== */
@media (max-width: 575px) {
    .d-xs-none { display: none; }
    .d-xs-block { display: block; }
}

/* ========================================
   🎯 PROJECT-SPECIFIC OVERRIDES (Optional)
   ======================================== */
/* Add your custom project styles below */

/* Example: Custom button variant */
.btn-ayurvedic {
    background: linear-gradient(135deg, #4A6741, #8C6A4B);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
}

.btn-ayurvedic:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #3d5636, #7a5c41);
}

/* Example: Herbal card style */
.card-herbal {
    border: 2px solid #4A6741;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #ffffff, #f0f4f0);
}

.card-herbal:hover {
    border-color: #8C6A4B;
    box-shadow: 0 10px 30px rgba(74, 103, 65, 0.15);
}

/* Example: Nature-themed text gradient */
.text-gradient-herbal {
    background: linear-gradient(135deg, #4A6741, #2d4a2e, #8C6A4B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== END OF MASTER STYLE.CSS ===== */