/* ========================================
   HIVESUITE DESIGN SYSTEM
   Modern, Accessible, Mobile-First Design
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */

:root {
	/* === COLOUR PALETTE === */
	/* Primary Brand Colours */
	--primary-50: #f0f9ff;
	--primary-100: #e0f2fe;
	--primary-200: #bae6fd;
	--primary-300: #7dd3fc;
	--primary-400: #38bdf8;
	--primary-500: #0ea5e9;
	--primary-600: #0284c7;
	--primary-700: #0369a1;
	--primary-800: #075985;
	--primary-900: #0c4a6e;
	--primary-950: #082f49;

	/* Secondary Brand Colours */
	--secondary-50: #f8fafc;
	--secondary-100: #f1f5f9;
	--secondary-200: #e2e8f0;
	--secondary-300: #cbd5e1;
	--secondary-400: #94a3b8;
	--secondary-500: #64748b;
	--secondary-600: #475569;
	--secondary-700: #334155;
	--secondary-800: #1e293b;
	--secondary-900: #0f172a;
	--secondary-950: #020617;

	/* Accent Colours */
	--accent-50: #fefce8;
	--accent-100: #fef9c3;
	--accent-200: #fef08a;
	--accent-300: #fde047;
	--accent-400: #facc15;
	--accent-500: #eab308;
	--accent-600: #ca8a04;
	--accent-700: #a16207;
	--accent-800: #854d0e;
	--accent-900: #713f12;
	--accent-950: #422006;

	/* Semantic Colours */
	--success-50: #f0fdf4;
	--success-100: #dcfce7;
	--success-200: #bbf7d0;
	--success-300: #86efac;
	--success-400: #4ade80;
	--success-500: #22c55e;
	--success-600: #16a34a;
	--success-700: #15803d;
	--success-800: #166534;
	--success-900: #14532d;
	--success-950: #052e16;

	--warning-50: #fffbeb;
	--warning-100: #fef3c7;
	--warning-200: #fde68a;
	--warning-300: #fcd34d;
	--warning-400: #fbbf24;
	--warning-500: #f59e0b;
	--warning-600: #d97706;
	--warning-700: #b45309;
	--warning-800: #92400e;
	--warning-900: #78350f;
	--warning-950: #451a03;

	--error-50: #fef2f2;
	--error-100: #fee2e2;
	--error-200: #fecaca;
	--error-300: #fca5a5;
	--error-400: #f87171;
	--error-500: #ef4444;
	--error-600: #dc2626;
	--error-700: #b91c1c;
	--error-800: #991b1b;
	--error-900: #7f1d1d;
	--error-950: #450a0a;

	--info-50: #eff6ff;
	--info-100: #dbeafe;
	--info-200: #bfdbfe;
	--info-300: #93c5fd;
	--info-400: #60a5fa;
	--info-500: #3b82f6;
	--info-600: #2563eb;
	--info-700: #1d4ed8;
	--info-800: #1e40af;
	--info-900: #1e3a8a;
	--info-950: #172554;

	/* Neutral Colours */
	--neutral-0: #ffffff;
	--neutral-50: #fafafa;
	--neutral-100: #f5f5f5;
	--neutral-200: #e5e5e5;
	--neutral-300: #d4d4d4;
	--neutral-400: #a3a3a3;
	--neutral-500: #737373;
	--neutral-600: #525252;
	--neutral-700: #404040;
	--neutral-800: #262626;
	--neutral-900: #171717;
	--neutral-950: #0a0a0a;

	/* === TYPOGRAPHY === */
	--font-family-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

	/* Font Sizes (Mobile-First) */
	--text-xs: 0.75rem;    /* 12px */
	--text-sm: 0.875rem;   /* 14px */
	--text-base: 1rem;     /* 16px */
	--text-lg: 1.125rem;   /* 18px */
	--text-xl: 1.25rem;    /* 20px */
	--text-2xl: 1.5rem;    /* 24px */
	--text-3xl: 1.875rem;  /* 30px */
	--text-4xl: 2.25rem;   /* 36px */
	--text-5xl: 3rem;      /* 48px */
	--text-6xl: 3.75rem;   /* 60px */

	/* Font Weights */
	--font-thin: 100;
	--font-extralight: 200;
	--font-light: 300;
	--font-normal: 400;
	--font-medium: 500;
	--font-semibold: 600;
	--font-bold: 700;
	--font-extrabold: 800;
	--font-black: 900;

	/* Line Heights */
	--leading-none: 1;
	--leading-tight: 1.25;
	--leading-snug: 1.375;
	--leading-normal: 1.5;
	--leading-relaxed: 1.625;
	--leading-loose: 2;

	/* === SPACING SYSTEM === */
	--space-0: 0;
	--space-px: 1px;
	--space-0-5: 0.125rem;  /* 2px */
	--space-1: 0.25rem;     /* 4px */
	--space-1-5: 0.375rem;  /* 6px */
	--space-2: 0.5rem;      /* 8px */
	--space-2-5: 0.625rem;  /* 10px */
	--space-3: 0.75rem;     /* 12px */
	--space-3-5: 0.875rem;  /* 14px */
	--space-4: 1rem;        /* 16px */
	--space-5: 1.25rem;     /* 20px */
	--space-6: 1.5rem;      /* 24px */
	--space-7: 1.75rem;     /* 28px */
	--space-8: 2rem;        /* 32px */
	--space-9: 2.25rem;     /* 36px */
	--space-10: 2.5rem;     /* 40px */
	--space-11: 2.75rem;    /* 44px */
	--space-12: 3rem;       /* 48px */
	--space-14: 3.5rem;     /* 56px */
	--space-16: 4rem;       /* 64px */
	--space-20: 5rem;       /* 80px */
	--space-24: 6rem;       /* 96px */
	--space-28: 7rem;       /* 112px */
	--space-32: 8rem;       /* 128px */

	/* === BORDER RADIUS === */
	--radius-none: 0;
	--radius-sm: 0.125rem;   /* 2px */
	--radius-base: 0.25rem;  /* 4px */
	--radius-md: 0.375rem;   /* 6px */
	--radius-lg: 0.5rem;     /* 8px */
	--radius-xl: 0.75rem;    /* 12px */
	--radius-2xl: 1rem;      /* 16px */
	--radius-3xl: 1.5rem;    /* 24px */
	--radius-full: 9999px;

	/* === SHADOWS === */
	--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-base: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

	/* === BREAKPOINTS === */
	--breakpoint-sm: 640px;
	--breakpoint-md: 768px;
	--breakpoint-lg: 1024px;
	--breakpoint-xl: 1280px;
	--breakpoint-2xl: 1536px;

	/* === 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;
	--z-toast: 1080;

	/* === TRANSITIONS === */
	--transition-none: none;
	--transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-default: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-colors: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-opacity: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-shadow: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-transform: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);

	/* === COMPONENT TOKENS === */
	/* Buttons */
	--button-height-sm: 2rem;      /* 32px */
	--button-height-base: 2.5rem;  /* 40px */
	--button-height-lg: 3rem;      /* 48px */
	--button-height-xl: 3.5rem;    /* 56px */

	/* Inputs */
	--input-height-sm: 2rem;       /* 32px */
	--input-height-base: 2.5rem;   /* 40px */
	--input-height-lg: 3rem;       /* 48px */

	/* Cards */
	--card-padding-sm: var(--space-4);
	--card-padding-base: var(--space-6);
	--card-padding-lg: var(--space-8);

	/* Navigation */
	--nav-height-mobile: 4rem;     /* 64px */
	--nav-height-desktop: 5rem;    /* 80px */
	--sidebar-width-mobile: 16rem; /* 256px */
	--sidebar-width-desktop: 20rem; /* 320px */

	/* === THEME VARIABLES === */
	/* Light Theme (Default) */
	--color-background: var(--neutral-0);
	--color-background-secondary: var(--neutral-50);
	--color-background-tertiary: var(--neutral-100);
	--color-surface: var(--neutral-0);
	--color-surface-hover: var(--neutral-50);
	--color-surface-active: var(--neutral-100);
	--color-border: var(--neutral-200);
	--color-border-hover: var(--neutral-300);
	--color-text-primary: var(--neutral-900);
	--color-text-secondary: var(--neutral-600);
	--color-text-tertiary: var(--neutral-500);
	--color-text-inverse: var(--neutral-0);
	--color-text-link: var(--primary-600);
	--color-text-link-hover: var(--primary-700);
	--color-primary: var(--primary-600);
	--color-primary-hover: var(--primary-700);
	--color-primary-active: var(--primary-800);
	--color-secondary: var(--secondary-600);
	--color-secondary-hover: var(--secondary-700);
	--color-secondary-active: var(--secondary-800);
	--color-accent: var(--accent-500);
	--color-accent-hover: var(--accent-600);
	--color-success: var(--success-600);
	--color-warning: var(--warning-600);
	--color-error: var(--error-600);
	--color-info: var(--info-600);
}

/* Dark Theme */
[data-theme="dark"] {
	--color-background: var(--neutral-900);
	--color-background-secondary: var(--neutral-800);
	--color-background-tertiary: var(--neutral-700);
	--color-surface: var(--neutral-800);
	--color-surface-hover: var(--neutral-700);
	--color-surface-active: var(--neutral-600);
	--color-border: var(--neutral-700);
	--color-border-hover: var(--neutral-600);
	--color-text-primary: var(--neutral-100);
	--color-text-secondary: var(--neutral-300);
	--color-text-tertiary: var(--neutral-400);
	--color-text-inverse: var(--neutral-900);
	--color-text-link: var(--primary-400);
	--color-text-link-hover: var(--primary-300);
	--color-primary: var(--primary-500);
	--color-primary-hover: var(--primary-400);
	--color-primary-active: var(--primary-300);
	--color-secondary: var(--secondary-500);
	--color-secondary-hover: var(--secondary-400);
	--color-secondary-active: var(--secondary-300);
	--color-accent: var(--accent-400);
	--color-accent-hover: var(--accent-300);
	--color-success: var(--success-500);
	--color-warning: var(--warning-500);
	--color-error: var(--error-500);
	--color-info: var(--info-500);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	line-height: var(--leading-normal);
	-webkit-text-size-adjust: 100%;
	-moz-tab-size: 4;
	tab-size: 4;
	font-family: var(--font-family-primary);
	font-feature-settings: normal;
	font-variation-settings: normal;
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	font-family: var(--font-family-primary);
	font-size: var(--text-base);
	font-weight: var(--font-normal);
	line-height: var(--leading-normal);
	color: var(--color-text-primary);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
	font-weight: var(--font-semibold);
	line-height: var(--leading-tight);
	color: var(--color-text-primary);
	margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
	margin-bottom: var(--space-4);
	color: var(--color-text-secondary);
	line-height: var(--leading-relaxed);
}

a {
	color: var(--color-text-link);
	text-decoration: none;
	transition: var(--transition-colors);
}

a:hover {
	color: var(--color-text-link-hover);
	text-decoration: underline;
}

a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Display */
.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;
}

/* Spacing */
.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); }

.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); }

/* Text */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-thin { font-weight: var(--font-thin); }
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid */
.grid { display: grid; }
.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)); }
.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-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Border Radius */
.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-base); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Transitions */
.transition-none { transition: var(--transition-none); }
.transition-all { transition: var(--transition-all); }
.transition-colors { transition: var(--transition-colors); }
.transition-opacity { transition: var(--transition-opacity); }
.transition-shadow { transition: var(--transition-shadow); }
.transition-transform { transition: var(--transition-transform); }

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Mobile First Approach */
@media (min-width: 640px) {
	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sm\:text-lg { font-size: var(--text-lg); }
	.sm\:text-xl { font-size: var(--text-xl); }
	.sm\:p-6 { padding: var(--space-6); }
	.sm\:p-8 { padding: var(--space-8); }
}

@media (min-width: 768px) {
	.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.md\:flex-row { flex-direction: row; }
	.md\:text-xl { font-size: var(--text-xl); }
	.md\:text-2xl { font-size: var(--text-2xl); }
	.md\:p-8 { padding: var(--space-8); }
	.md\:p-10 { padding: var(--space-10); }
}

@media (min-width: 1024px) {
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.lg\:text-2xl { font-size: var(--text-2xl); }
	.lg\:text-3xl { font-size: var(--text-3xl); }
	.lg\:p-10 { padding: var(--space-10); }
	.lg\:p-12 { padding: var(--space-12); }
}

@media (min-width: 1280px) {
	.xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.xl\:text-3xl { font-size: var(--text-3xl); }
	.xl\:text-4xl { font-size: var(--text-4xl); }
}

/* ========================================
   COMPONENT STYLES
   ======================================== */

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	line-height: var(--leading-none);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: var(--transition-all);
	text-decoration: none;
	white-space: nowrap;
	user-select: none;
}

.btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Button Variants */
.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-text-inverse);
	border-color: var(--color-primary);
}

.btn-primary:hover {
	background-color: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
	text-decoration: none;
}

.btn-primary:active {
	background-color: var(--color-primary-active);
	border-color: var(--color-primary-active);
}

.btn-secondary {
	background-color: var(--color-secondary);
	color: var(--color-text-inverse);
	border-color: var(--color-secondary);
}

.btn-secondary:hover {
	background-color: var(--color-secondary-hover);
	border-color: var(--color-secondary-hover);
	text-decoration: none;
}

.btn-outline {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-outline:hover {
	background-color: var(--color-primary);
	color: var(--color-text-inverse);
	text-decoration: none;
}

.btn-ghost {
	background-color: transparent;
	color: var(--color-text-primary);
	border-color: transparent;
}

.btn-ghost:hover {
	background-color: var(--color-surface-hover);
	text-decoration: none;
}

/* Button Sizes */
.btn-sm {
	height: var(--button-height-sm);
	padding: var(--space-1) var(--space-3);
	font-size: var(--text-xs);
}

.btn-base {
	height: var(--button-height-base);
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-sm);
}

.btn-lg {
	height: var(--button-height-lg);
	padding: var(--space-3) var(--space-6);
	font-size: var(--text-base);
}

.btn-xl {
	height: var(--button-height-xl);
	padding: var(--space-4) var(--space-8);
	font-size: var(--text-lg);
}

/* Form Elements */
.form-input {
	display: block;
	width: 100%;
	height: var(--input-height-base);
	padding: var(--space-2) var(--space-3);
	font-size: var(--text-sm);
	font-weight: var(--font-normal);
	line-height: var(--leading-normal);
	color: var(--color-text-primary);
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	transition: var(--transition-colors);
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgb(var(--color-primary) / 0.1);
}

.form-input:disabled {
	background-color: var(--color-background-secondary);
	color: var(--color-text-tertiary);
	cursor: not-allowed;
}

.form-input::placeholder {
	color: var(--color-text-tertiary);
}

.form-label {
	display: block;
	margin-bottom: var(--space-1);
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	color: var(--color-text-primary);
}

.form-error {
	margin-top: var(--space-1);
	font-size: var(--text-xs);
	color: var(--color-error);
}

/* Cards */
.card {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: var(--transition-all);
}

.card:hover {
	box-shadow: var(--shadow-md);
}

.card-header {
	padding: var(--card-padding-base);
	border-bottom: 1px solid var(--color-border);
	background-color: var(--color-background-secondary);
}

.card-body {
	padding: var(--card-padding-base);
}

.card-footer {
	padding: var(--card-padding-base);
	border-top: 1px solid var(--color-border);
	background-color: var(--color-background-secondary);
}

/* Navigation */
.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-height-mobile);
	padding: 0 var(--space-4);
	background-color: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
	.nav {
		height: var(--nav-height-desktop);
		padding: 0 var(--space-6);
	}
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-lg);
	font-weight: var(--font-semibold);
	color: var(--color-text-primary);
	text-decoration: none;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	list-style: none;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	color: var(--color-text-secondary);
	text-decoration: none;
	border-radius: var(--radius-md);
	transition: var(--transition-colors);
}

.nav-item:hover {
	color: var(--color-text-primary);
	background-color: var(--color-surface-hover);
	text-decoration: none;
}

.nav-item.active {
	color: var(--color-primary);
	background-color: var(--color-primary) / 0.1;
}

/* Sidebar */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--sidebar-width-mobile);
	height: 100vh;
	background-color: var(--color-surface);
	border-right: 1px solid var(--color-border);
	box-shadow: var(--shadow-lg);
	transform: translateX(-100%);
	transition: var(--transition-transform);
	z-index: var(--z-fixed);
	overflow-y: auto;
}

@media (min-width: 768px) {
	.sidebar {
		width: var(--sidebar-width-desktop);
		transform: translateX(0);
	}
}

.sidebar.open {
	transform: translateX(0);
}

.sidebar-header {
	padding: var(--space-6);
	border-bottom: 1px solid var(--color-border);
}

.sidebar-nav {
	padding: var(--space-4);
}

.sidebar-nav-item {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	margin-bottom: var(--space-1);
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	color: var(--color-text-secondary);
	text-decoration: none;
	border-radius: var(--radius-md);
	transition: var(--transition-colors);
}

.sidebar-nav-item:hover {
	color: var(--color-text-primary);
	background-color: var(--color-surface-hover);
	text-decoration: none;
}

.sidebar-nav-item.active {
	color: var(--color-primary);
	background-color: var(--color-primary) / 0.1;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
	display: flex;
	align-items: center;
	justify-content: space-around;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 5rem;
	background-color: var(--color-surface);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -2px 10px rgb(0 0 0 / 0.1);
	z-index: var(--z-fixed);
}

@media (min-width: 768px) {
	.bottom-nav {
		display: none;
	}
}

.bottom-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-1);
	padding: var(--space-2);
	font-size: var(--text-xs);
	font-weight: var(--font-medium);
	color: var(--color-text-secondary);
	text-decoration: none;
	border-radius: var(--radius-md);
	transition: var(--transition-colors);
}

.bottom-nav-item:hover {
	color: var(--color-text-primary);
	text-decoration: none;
}

.bottom-nav-item.active {
	color: var(--color-primary);
}

.bottom-nav-item i {
	font-size: var(--text-lg);
}

/* Alerts */
.alert {
	padding: var(--space-4);
	margin-bottom: var(--space-4);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
}

.alert-success {
	background-color: var(--success-50);
	border-color: var(--success-200);
	color: var(--success-800);
}

.alert-warning {
	background-color: var(--warning-50);
	border-color: var(--warning-200);
	color: var(--warning-800);
}

.alert-error {
	background-color: var(--error-50);
	border-color: var(--error-200);
	color: var(--error-800);
}

.alert-info {
	background-color: var(--info-50);
	border-color: var(--info-200);
	color: var(--info-800);
}

/* Loading States */
.loading {
	position: relative;
	pointer-events: none;
	opacity: 0.6;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1rem;
	height: 1rem;
	margin: -0.5rem 0 0 -0.5rem;
	border: 2px solid var(--color-border);
	border-top-color: var(--color-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus Management */
.focus-visible:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
	:root {
		--color-border: var(--neutral-900);
		--color-text-secondary: var(--neutral-800);
	}
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
	* {
		background: transparent !important;
		color: black !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	.nav,
	.sidebar,
	.bottom-nav {
		display: none !important;
	}

	.card {
		border: 1px solid #000 !important;
		box-shadow: none !important;
	}
}

