.tools-section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: auto;
}

.tools-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.tool-card {
    flex: 1 1 250px;
    /* magic line for responsiveness */
    max-width: 300px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

.tool-icon {
    font-size: 2rem;
    color: #6366f1;
    /* indigo-ish */
}

.tool-card>.pdf-tool {
    color: indianred;
}

/*for file button and cards */

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}



#upload-cards {
    background: linear-gradient(270deg, #f3f4f6, #e0e7ff, #f3f4f6);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Full blue bar */
.file-bar {
    /* 🎨 Theme variables (defaults = image) */
    --bar-bg: #3b82f6;
    --bar-bg-hover: #2563eb;
    --btn-bg: rgba(255, 255, 255, 0.15);
    --btn-bg-hover: rgba(255, 255, 255, 0.25);

    display: block;
    margin: 0 auto;
    padding: 14px 16px;
    width: 100%;
    max-width: 350px;

    background: var(--bar-bg);
    border-radius: 12px;
    border: none;

    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.file-bar::file-selector-button {
    background: var(--btn-bg);
    color: white;
    border: none;
    padding: 12px 18px;
    margin-right: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.file-bar:hover {
    background: var(--bar-bg-hover);
}

.file-bar:hover::file-selector-button {
    background: var(--btn-bg-hover);
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .file-bar {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .file-bar::file-selector-button {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

.file-bar.is-pdf {
    --bar-bg: #dc2626;        /* red-600 */
    --bar-bg-hover: #b91c1c;  /* red-700 */
    --btn-bg: rgba(255, 255, 255, 0.2);
    --btn-bg-hover: rgba(255, 255, 255, 0.3);
}


#quality-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5em;
    height: 1.5em;
    background: #4f46e5;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(236, 17, 76, 0.2);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}