/* convoall.com/image-to-pdf/assets/style.css */
.format-badge {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transition: width 0.3s ease;
}

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 24rem;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .conversion-options-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .format-badge {
        padding: 0.125rem 0.5rem;
        font-size: 0.75rem;
    }
    
    #uploadArea {
        padding: 1rem;
    }
}

/* Touch-friendly buttons */
button, 
a.btn-primary {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Loading spinner */
.spinner {
    animation: spin 1s linear infinite;
    border-radius: 9999px;
    border-width: 2px;
    border-style: solid;
    border-color: #d1d5db;
    border-top-color: #4f46e5;
    width: 1.5rem;
    height: 1.5rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

/* Utility classes */
.hidden {
    display: none;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-sm {
    max-width: 24rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.converter-toast {
    max-width: 90vw;
    word-break: break-word;
}

/* Ensure no horizontal scrolling */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Responsive text truncation */
.truncate-mobile {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem; /* 14px */
    }
    
    .p-responsive {
        padding: 0.75rem; /* 12px */
    }
    
    /* Make buttons full width on mobile */
    .btn-mobile {
        width: 100%;
        justify-content: center;
    }
}