/* Custom CSS for SlipSafeCo */

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* HTMX loading indicator styles */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Custom button hover effects */
.btn-primary {
    @apply bg-amber-600 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded transition duration-200 transform hover:scale-105;
}

.btn-secondary {
    @apply bg-gray-600 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded transition duration-200 transform hover:scale-105;
}

/* Card hover effects */
.card-hover {
    @apply transition duration-300 transform hover:scale-105 hover:shadow-xl;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Form focus styles */
.form-input {
    @apply mt-1 block w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-amber-500 focus:border-amber-500 transition duration-200;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Status message styles */
.status-success {
    @apply bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded;
}

.status-error {
    @apply bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded;
}

.status-info {
    @apply bg-amber-50 border border-amber-300 text-amber-800 px-4 py-3 rounded;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Mobile responsiveness improvements */
@media (max-width: 640px) {
    .mobile-stack {
        @apply flex-col space-y-4;
    }
    
    .mobile-full {
        @apply w-full;
    }
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #0f172a 0%, #f59e0b 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f59e0b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}