/* WP Batch Image Converter Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

#wp-batch-converter-root {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 89, 0.27);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 106, 89, 0.4);
}

/* Ensure proper spacing and containment */
#wp-batch-converter-root > div {
    margin: 0;
    padding: 0;
}

/* Override any theme conflicts */
#wp-batch-converter-root * {
    box-sizing: border-box;
}

#wp-batch-converter-root button {
    border: none;
    outline: none;
    cursor: pointer;
}

#wp-batch-converter-root input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

#wp-batch-converter-root input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6a59;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#wp-batch-converter-root input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6a59;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#wp-batch-converter-root input[type="checkbox"] {
    cursor: pointer;
}

/* Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #wp-batch-converter-root .lg\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    #wp-batch-converter-root .lg\:col-span-2 {
        grid-column: span 1;
    }
    
    #wp-batch-converter-root .lg\:sticky {
        position: relative !important;
        top: auto !important;
    }
}

@media (max-width: 768px) {
    #wp-batch-converter-root header {
        padding: 1rem;
    }
    
    #wp-batch-converter-root main {
        padding: 1rem;
    }
    
    /* Make format buttons stack better on mobile */
    #wp-batch-converter-root .grid.grid-cols-3 {
        gap: 0.5rem;
    }
    
    /* Adjust file item spacing on mobile */
    #wp-batch-converter-root .space-y-3 {
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    /* Even smaller adjustments for very small screens */
    #wp-batch-converter-root h2 {
        font-size: 1.5rem;
    }
    
    #wp-batch-converter-root h3 {
        font-size: 1.125rem;
    }
}

/* Ensure images don't break layout */
#wp-batch-converter-root img {
    max-width: 100%;
    height: auto;
}

/* File input styling */
#wp-batch-converter-root input[type="file"] {
    display: none;
}

/* Prevent theme interference */
#wp-batch-converter-root .bg-primary {
    background-color: #ff6a59 !important;
}

#wp-batch-converter-root .text-primary {
    color: #ff6a59 !important;
}

#wp-batch-converter-root .border-primary {
    border-color: #ff6a59 !important;
}

#wp-batch-converter-root .bg-softbg {
    background-color: #fff3d6 !important;
}

#wp-batch-converter-root .bg-surface {
    background-color: #f5f5fa !important;
}

#wp-batch-converter-root .text-darktext {
    color: #292931 !important;
}

/* Drag and drop visual feedback */
#wp-batch-converter-root [data-dragging="true"] {
    border-color: #ff6a59 !important;
    background-color: rgba(255, 106, 89, 0.05) !important;
}

/* Fix for Font Awesome icons */
#wp-batch-converter-root i {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Touch-friendly buttons on mobile */
@media (hover: none) and (pointer: coarse) {
    #wp-batch-converter-root button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Ensure proper text wrapping on small screens */
#wp-batch-converter-root .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Better scrolling on iOS */
#wp-batch-converter-root .overflow-y-auto {
    -webkit-overflow-scrolling: touch;
}

/* Prevent unwanted zoom on iOS when focusing inputs */
@media screen and (max-width: 768px) {
    #wp-batch-converter-root input[type="range"],
    #wp-batch-converter-root input[type="checkbox"] {
        font-size: 16px;
    }
}