.mattock-company {
	// Custom colors based on the HTML demo - adapted for Tailwind v4
	:root {
		--primary: #1e3a8a;
		--primary-dark: #1e293b;
		--primary-light: #3b82f6;
		--secondary: #10b981;
		--secondary-dark: #059669;
		--secondary-light: #34d399;
		--accent: #f59e0b;
		--accent-light: #fbbf24;
	}
	
	// Custom gradient text
	.gradient-text {
		background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
	
	// Gradient backgrounds
	.gradient-bg-primary {
		background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	}
	
	.gradient-bg-secondary {
		background: linear-gradient(135deg, #059669 0%, #34d399 100%);
	}
	
	.gradient-bg-accent {
		background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
	}
	
	// Grid background
	.grid-bg::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-image: 
			linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
			linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
		background-size: 50px 50px;
	}
	
	// Company card hover effects
	.company-card {
		transition: all 0.3s ease;
		position: relative;
		overflow: hidden;
		
		&::before {
			content: '';
			position: absolute;
			top: 0;
			left: -100%;
			width: 100%;
			height: 100%;
			background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
			transition: left 0.6s ease;
		}
		
		&:hover::before {
			left: 100%;
		}
		
		&:hover {
			transform: translateY(-4px);
			box-shadow: 0 12px 24px rgba(0,0,0,0.1);
		}
		
		&:hover .company-logo {
			transform: scale(1.05);
		}
	}
	
	.company-logo {
		transition: transform 0.3s ease;
	}
	
	// Filter sidebar
	.filter-section {
		position: sticky;
		top: 100px;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		
		&::-webkit-scrollbar {
			width: 6px;
		}
		
		&::-webkit-scrollbar-track {
			background: #f3f4f6;
			border-radius: 3px;
		}
		
		&::-webkit-scrollbar-thumb {
			background: #d1d5db;
			border-radius: 3px;
			
			&:hover {
				background: #9ca3af;
			}
		}
	}
	
	// Checkbox custom styling
	.custom-checkbox {
		position: relative;
		padding-left: 28px;
		cursor: pointer;
		
		input {
			position: absolute;
			opacity: 0;
			cursor: pointer;
		}
		
		.checkmark {
			position: absolute;
			top: 2px;
			left: 0;
			height: 20px;
			width: 20px;
			background-color: #f3f4f6;
			border: 2px solid #d1d5db;
			border-radius: 4px;
			transition: all 0.3s ease;
			
			&:after {
				content: "";
				position: absolute;
				display: none;
				left: 6px;
				top: 2px;
				width: 5px;
				height: 10px;
				border: solid white;
				border-width: 0 2px 2px 0;
				transform: rotate(45deg);
			}
		}
		
		&:hover input ~ .checkmark {
			border-color: #3b82f6;
		}
		
		input:checked ~ .checkmark {
			background-color: #3b82f6;
			border-color: #3b82f6;
			
			&:after {
				display: block;
			}
		}
	}
	
	// Animate on scroll
	.animate-on-scroll {
		opacity: 0;
		transform: translateY(20px);
		transition: all 0.6s ease-out;
		
		&.visible {
			opacity: 1;
			transform: translateY(0);
		}
	}
	
	// Custom animations for Tailwind v4
	@keyframes fadeIn {
		0% {
			opacity: 0;
		}
		100% {
			opacity: 1;
		}
	}
	
	@keyframes fadeInUp {
		0% {
			opacity: 0;
			transform: translateY(20px);
		}
		100% {
			opacity: 1;
			transform: translateY(0);
		}
	}
	
	@keyframes slideIn {
		0% {
			opacity: 0;
			transform: translateX(-20px);
		}
		100% {
			opacity: 1;
			transform: translateX(0);
		}
	}
	
	@keyframes scaleUp {
		0% {
			opacity: 0;
			transform: scale(0.95);
		}
		100% {
			opacity: 1;
			transform: scale(1);
		}
	}
	
	@keyframes float {
		0%, 100% {
			transform: translate(0, 0);
		}
		50% {
			transform: translate(-20px, -30px);
		}
	}
	
	@keyframes shimmer {
		0% {
			background-position: -200% 0;
		}
		100% {
			background-position: 200% 0;
		}
	}
	
	// Animation classes
	.animate-fade-in {
		animation: fadeIn 0.8s ease-out;
	}
	
	.animate-fade-in-up {
		animation: fadeInUp 0.8s ease-out;
	}
	
	.animate-slide-in {
		animation: slideIn 0.6s ease-out;
	}
	
	.animate-scale-up {
		animation: scaleUp 0.5s ease-out;
	}
	
	.animate-float {
		animation: float 20s infinite ease-in-out;
	}
	
	.animate-pulse-slow {
		animation: pulse 3s infinite;
	}
	
	// Loading skeleton
	.skeleton {
		background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
		background-size: 200% 100%;
		animation: shimmer 1.5s infinite;
	}
	
	// Custom colors for theme integration
	.text-primary {
		color: var(--primary);
	}
	
	.text-primary-dark {
		color: var(--primary-dark);
	}
	
	.text-primary-light {
		color: var(--primary-light);
	}
	
	.text-secondary {
		color: var(--secondary);
	}
	
	.text-secondary-dark {
		color: var(--secondary-dark);
	}
	
	.text-secondary-light {
		color: var(--secondary-light);
	}
	
	.text-accent {
		color: var(--accent);
	}
	
	.text-accent-light {
		color: var(--accent-light);
	}
	
	// Background color utilities
	.bg-primary {
		background-color: var(--primary);
	}
	
	.bg-primary-dark {
		background-color: var(--primary-dark);
	}
	
	.bg-primary-light {
		background-color: var(--primary-light);
	}
	
	.bg-secondary {
		background-color: var(--secondary);
	}
	
	.bg-secondary-dark {
		background-color: var(--secondary-dark);
	}
	
	.bg-secondary-light {
		background-color: var(--secondary-light);
	}
	
	.bg-accent {
		background-color: var(--accent);
	}
	
	.bg-accent-light {
		background-color: var(--accent-light);
	}
	
	// Border color utilities
	.border-primary {
		border-color: var(--primary);
	}
	
	.border-secondary {
		border-color: var(--secondary);
	}
	
	.border-accent {
		border-color: var(--accent);
	}
	
	// Hover states
	.hover\:border-primary:hover {
		border-color: var(--primary);
	}
	
	.hover\:text-primary:hover {
		color: var(--primary);
	}
	
	.hover\:bg-primary:hover {
		background-color: var(--primary);
	}
	
	// Focus states
	.focus\:border-primary:focus {
		border-color: var(--primary);
	}
	
	.focus\:ring-primary:focus {
		--tw-ring-color: var(--primary);
	}
	
	// Company grid specific styles
	.company-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
		gap: 1.5rem;
		
		@media (max-width: 768px) {
			grid-template-columns: 1fr;
		}
	}
	
	// Floating actions
	.floating-actions {
		position: fixed;
		bottom: 2rem;
		right: 2rem;
		z-index: 50;
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}
	
	// Search input enhancement
	input[type="text"] {
		transition: all 0.3s ease;
		
		&:focus {
			transform: scale(1.02);
			box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
		}
	}
	
	// Sort select enhancement
	select {
		transition: all 0.3s ease;
		
		&:focus {
			box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
		}
	}
	
	// Button enhancements
	button {
		transition: all 0.3s ease;
		
		&:hover {
			transform: translateY(-1px);
		}
		
		&:active {
			transform: translateY(0);
		}
	}
	
	// Favorites count badge
	#favoritesCount {
		background: white;
		border-radius: 9999px;
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
		padding: 0.75rem 1.5rem;
		display: flex;
		align-items: center;
		gap: 0.75rem;
		animation: slideIn 0.3s ease-out;
	}
	
	// Mobile responsiveness
	@media (max-width: 1024px) {
		.filter-section {
			display: none;
		}
		
		.company-grid {
			grid-template-columns: 1fr;
		}
	}
	
	@media (max-width: 768px) {
		.floating-actions {
			bottom: 1rem;
			right: 1rem;
		}
		
		.company-card {
			margin-bottom: 1rem;
		}
		
		// Adjust card hover effects for mobile
		.company-card:hover {
			transform: none;
			box-shadow: 0 4px 12px rgba(0,0,0,0.1);
		}
	}
	
	// Progress bar
	#progressBar {
		position: fixed;
		top: 0;
		left: 0;
		height: 4px;
		background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
		z-index: 1001;
		transition: width 0.3s ease;
	}
	
	// Header with backdrop blur
	#header {
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		background: rgba(255, 255, 255, 0.9);
		transition: all 0.3s ease;
	}
}