/* Custom styles for Stochastic Mind */

/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #4a6bff 0%, #6d42c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button styles */
.btn-primary {
    @apply bg-primary text-white px-6 py-3 rounded-lg font-medium hover:bg-opacity-90 transition duration-300;
}

.btn-secondary {
    @apply bg-secondary text-white px-6 py-3 rounded-lg font-medium hover:bg-opacity-90 transition duration-300;
}

.btn-accent {
    @apply bg-accent text-white px-6 py-3 rounded-lg font-medium hover:bg-opacity-90 transition duration-300;
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Card styles */
.card {
    @apply bg-white rounded-lg shadow-md p-6;
}

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

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

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

.mobile-menu.show {
    display: block;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* 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;
}

/* Loading spinner for buttons */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

.loading-spinner-dark {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #374151;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hidden class for loading states */
.hidden-loading {
    display: none;
}