/* Non-critical styles */
.htmx-indicator {
    opacity: 0;
    transition: opacity 500ms ease-in;
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile-only styles */
@media (max-height: 700px) {
    .float-top {
        bottom: auto !important;
        top: 480px;
    }
}

/* Performance optimizations */
* {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduce layout shifts */
img, video {
    height: auto;
    max-width: 100%;
    aspect-ratio: attr(width) / attr(height);
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .float,
    .htmx-indicator {
        display: none !important;
    }
    
    body {
        background: none !important;
        color: #000 !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* WhatsApp floating button styles */
.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:20px;
	right:20px;
	background-color:#00a4ef;
	color:#FFF;
	border-radius:50px;
	text-align:center;
	font-size:30px;
	box-shadow: 2px 2px 3px #999;
	z-index:100;
    transition: all 0.3s ease-in-out;
}

.my-float{
	margin-top:16px;
}