/* Custom Styles for RICHERA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Custom Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Crypto Option Selection */
.crypto-option.selected {
    border-color: #8b5cf6 !important;
    background-color: #374151 !important;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Button Animations */
.btn-animate {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-animate:hover::before {
    left: 100%;
}

/* Toast Notification Styles */
.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Loading Spinner */
.spinner {
    border: 2px solid #374151;
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .nav-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(10px);
        padding: 12px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 50;
        border-top: 1px solid rgba(75, 85, 99, 0.3);
    }
    
    .card-mobile {
        margin: 8px 0;
        padding: 16px !important;
    }
    
    .text-mobile {
        font-size: 14px;
    }

    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hidden-mobile {
        display: none !important;
    }

    .flex-col-mobile {
        flex-direction: column !important;
    }

    .w-full-mobile {
        width: 100% !important;
    }

    .m-0-mobile {
        margin: 0 !important;
    }

    .p-4-mobile {
        padding: 16px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .card-mobile {
        margin: 6px 0;
        padding: 12px !important;
    }

    .btn-mobile {
        width: 100%;
        margin: 4px 0;
        padding: 10px !important;
    }

    .text-sm-mobile {
        font-size: 12px !important;
    }

    .gap-2-mobile {
        gap: 8px !important;
    }
}

/* Dark Theme Enhancements */
.bg-dark-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.bg-dark-nav {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
}

/* Form Enhancements */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

/* Status Indicators */
.status-active {
    position: relative;
}

.status-active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -12px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
}

/* Progress Bars */
.progress-bar {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Custom Shadows */
.shadow-purple {
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.shadow-blue {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.shadow-green {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon Glow Effect */
.neon-glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}