/* Custom CSS for Solana Token Analyzer */

/* Animation and transition effects */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Tab system styles */
.tab-btn {
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    background-color: rgba(34, 197, 94, 0.05);
}

.tab-btn.active {
    background-color: rgba(34, 197, 94, 0.1);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #22c55e;
}

/* Tab content visibility */
.tab-content.hidden {
    display: none;
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Table enhancements */
.table-sortable th {
    user-select: none;
    cursor: pointer;
    position: relative;
}

.table-sortable th:hover {
    background-color: #f3f4f6;
}

.table-sortable th i {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.table-sortable th:hover i {
    opacity: 1;
}

/* Custom scrollbar for tables */
.table-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Pagination styles */
.pagination-btn {
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background-color: #22c55e;
    color: white;
    font-weight: 600;
}

/* Rating badge styles */
.rating-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #92400e;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Category badge colors */
.category-dragon { background-color: #dc2626; color: white; }
.category-whale { background-color: #0284c7; color: white; }
.category-shark { background-color: #ca8a04; color: white; }
.category-dolphin { background-color: #0891b2; color: white; }
.category-fish { background-color: #059669; color: white; }
.category-octopus { background-color: #7c3aed; color: white; }
.category-crab { background-color: #be185d; color: white; }
.category-shrimp { background-color: #4338ca; color: white; }
.category-plankton { background-color: #6b7280; color: white; }

/* Price change indicators */
.price-positive {
    color: #22c55e;
    font-weight: 600;
}

.price-negative {
    color: #ef4444;
    font-weight: 600;
}

.price-neutral {
    color: #6b7280;
    font-weight: 600;
}

/* Token info banner */
.token-banner {
    background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%); }
    100% { background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%); }
}

/* Address copy feedback */
.address-copied {
    background-color: #22c55e !important;
    color: white !important;
    transition: all 0.3s ease;
}

/* Search input enhancements */
.search-input {
    position: relative;
}

.search-input:focus-within {
    transform: scale(1.01);
    transition: transform 0.2s ease;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Chart container enhancements */
.chart-container {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem 0.25rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Error and success states */
.error-state {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-state {
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Custom focus styles */
.focus-green:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

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

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

.gradient-text {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}