/* Custom styles for TangaBid */

/* Animations */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #16a34a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Table styles */
.table-responsive {
    overflow-x: auto;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

/* Price trend indicators */
.price-up {
    color: #ef4444;
}

.price-down {
    color: #10b981;
}

.price-stable {
    color: #6b7280;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-supply {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-demand {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-neutral {
    background-color: #e5e7eb;
    color: #374151;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* Responsive utilities */
@media (max-width: 640px) {
    .chart-container {
        height: 300px;
    }
}
