/* Report Runner Styles */
.queryrunner-container .report-runner-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Select box styles */
.queryrunner-container select {
    @apply appearance-none bg-white border border-gray-300 rounded-lg px-3 py-2 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200;
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); */
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.queryrunner-container select:hover {
    @apply border-gray-400;
}

.queryrunner-container select:focus {
    @apply ring-2 ring-blue-500 border-blue-500;
}

.queryrunner-container .stat-card {
    @apply transition-all duration-300 hover:shadow-xl hover:transform hover:scale-105;
}

.queryrunner-container .stat-card:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Animation for number changes */
.queryrunner-container .stat-card .text-3xl {
    @apply transition-all duration-500;
}

/* Loading animation */
@keyframes pulse-bg {
    0%, 100% { background-color: rgba(59, 130, 246, 0.1); }
    50% { background-color: rgba(59, 130, 246, 0.2); }
}

.queryrunner-container .loading {
    animation: pulse-bg 1.5s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .queryrunner-container .stats-grid {
        @apply grid-cols-1 gap-4;
    }
    
    .queryrunner-container .filter-section {
        @apply p-3;
    }
    
    .queryrunner-container .filter-section .grid {
        @apply grid-cols-1 gap-3;
    }
    
    .queryrunner-container select {
        @apply text-sm;
    }
    
    .queryrunner-container .stat-card {
        @apply p-4;
    }
    
    .queryrunner-container .stat-card .text-3xl {
        @apply text-2xl;
    }
    
    .queryrunner-container .stat-card .text-4xl {
        @apply text-3xl;
    }
}

@media (min-width: 1280px) {
    .queryrunner-container .stats-grid {
        @apply xl:grid-cols-4;
    }
}

/* Print styles */
@media print {
    .queryrunner-container .filter-section {
        @apply hidden;
    }
    
    .queryrunner-container .stat-card {
        @apply shadow-none border border-gray-300;
        break-inside: avoid;
    }
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .queryrunner-container .report-runner-wrapper {
        @apply bg-gray-800;
    }
    
    .queryrunner-container .filter-section {
        @apply bg-gray-700;
    }
    
    .queryrunner-container select {
        @apply bg-gray-600 text-gray-200 border-gray-500;
    }
    
    .queryrunner-container select:hover {
        @apply border-gray-400;
    }
    
    .queryrunner-container select:focus {
        @apply ring-blue-400 border-blue-400;
    }
}
