/* Custom styles for Traffic Exchange Platform */

/* Smooth transitions */
* {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Iframe styling */
#surfIframe, #autoIframe {
    background: #ffffff;
}

/* Timer animation */
#timerDisplay, #autoTimerDisplay {
    font-variant-numeric: tabular-nums;
}

#timerPanel, #autoSurfPanel {
    transition: all 0.3s ease;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Table hover */
.bg-gray-750 {
    background-color: #2d3748;
}

/* Modal overlay */
#creditsModal {
    backdrop-filter: blur(4px);
}

/* Card hover effects */
.border-gray-700:hover {
    border-color: #6366f1;
    transition: border-color 0.3s ease;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Dropdown animation */
.group-hover\:opacity-100 {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Stats cards */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Responsive iframe container */
#surfFrame, #autoSurfFrame {
    position: relative;
}
#surfFrame iframe, #autoSurfFrame iframe {
    min-height: 400px;
}

/* Alert animations */
.bg-red-900, .bg-green-900, .bg-yellow-900 {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
