/* SourceKom Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Loading animation */
.loading-spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #d946ef;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

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

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

/* Pulse animation for important elements */
.pulse-primary {
    animation: pulse-primary 2s infinite;
}

@keyframes pulse-primary {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(217, 70, 239, 0);
    }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* RTL support classes */
[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

/* Custom button styles */
.btn-primary {
    @apply bg-fuchsia-600 hover:bg-fuchsia-700 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105;
}

.btn-secondary {
    @apply bg-violet-600 hover:bg-violet-700 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105;
}

.btn-outline {
    @apply border-2 border-fuchsia-600 text-fuchsia-600 hover:bg-fuchsia-600 hover:text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300;
}

/* Card styles */
.card {
    @apply bg-gray-800 border border-gray-700 rounded-xl p-6 transition-all duration-300;
}

.card:hover {
    @apply border-fuchsia-500 shadow-xl;
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 bg-gray-800 border border-gray-600 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:border-fuchsia-500 focus:ring-1 focus:ring-fuchsia-500 transition-all duration-300;
}

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

/* Badge styles */
.badge-primary {
    @apply bg-fuchsia-500 text-white px-3 py-1 rounded-full text-sm font-medium;
}

.badge-secondary {
    @apply bg-violet-500 text-white px-3 py-1 rounded-full text-sm font-medium;
}

/* Alert styles */
.alert-success {
    @apply bg-green-900 border border-green-700 text-green-200 px-4 py-3 rounded-lg;
}

.alert-error {
    @apply bg-red-900 border border-red-700 text-red-200 px-4 py-3 rounded-lg;
}

.alert-warning {
    @apply bg-yellow-900 border border-yellow-700 text-yellow-200 px-4 py-3 rounded-lg;
}

/* Animation delays for staggered effects */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }