/* Custom styles for Mobile Proxy Network Dashboard */

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}


/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* Fix dark mode and light mode color for language switcher buttons */
#lang-en, #lang-cn {
    color: #111827 !important; /* Dark text in light mode */
}

.dark #lang-en, .dark #lang-cn {
    color: #f9fafb !important; /* Light text in dark mode */
}

/* Fix dropdown background and text colors for light mode */
#clientTier {
    background-color: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

/* Fix dropdown background and text colors for dark mode */
.dark #clientTier {
    background-color: #1f2937;
    color: #f9fafb;
    border-color: #4b5563;
}

/* Dropdown options text color fixed for both modes */
#clientTier option {
    color: #111827;
}

.dark #clientTier option {
    color: #f9fafb;
}

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

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

.dark ::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Card hover effects */
.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Activity item animations */
.activity-item {
    animation: slideUp 0.3s ease-out;
}

/* Phone card hover */
.phone-card {
    transition: background-color 0.2s;
    cursor: pointer;
}

.phone-card:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.dark .phone-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #2d3748 25%, #1a202c 50%, #2d3748 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Status indicators */
.status-online {
    color: #10b981;
}

.status-offline {
    color: #ef4444;
}

/* Trend indicators */
.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .stat-card {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}
