/* ============================================================
   Download Section Wrapper
   ============================================================ */
#download-section {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

#download-section section {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

/* Inner content container */
#download-section .inner {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #000;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Title & Subtitle
   ============================================================ */
#download-section h1 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

#download-section p {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================================
   Form Wrapper
   ============================================================ */
#download-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

/* ============================================================
   Input Field
   ============================================================ */
#search-query {
    width: 100%;
    padding: 1rem 10rem 1rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #1f2937;
    outline: none;
    background-color: #fff;
    box-sizing: border-box;
}

#search-query:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

#search-query::placeholder {
    color: #9ca3af;
}

/* ============================================================
   Buttons Row
   ============================================================ */
.input-buttons {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================
   Paste Button
   ============================================================ */
#paste-button {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#paste-button:hover {
    background-color: #d1d5db;
}

/* ============================================================
   Clear Button (Trash Icon)
   FIX: NO display:none here — JS controls visibility via style.display
   ============================================================ */
#clear-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 9999px;
    color: #9ca3af;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

#clear-button:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

#clear-button svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

/* ============================================================
   Download Button
   ============================================================ */
#download-submit-btn {
    background-color: #3b82f6;
    color: #fff;
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#download-submit-btn:hover {
    background-color: #15803d;
}

#download-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#download-submit-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ============================================================
   Progress Bar
   ============================================================ */
#progress-wrapper{
    display:none;
    width:100%;
    height:6px;
    background-color:#e5e7eb;
    border-radius:9999px;
    overflow:hidden
}

#progress-bar{
    height:100%;
    width:0;
    transition:width .3s ease;
    background:linear-gradient(to right,#6366f1,#3b82f6,#22d3ee)
}

.form-error{
    color:#ef4444;
    font-weight:700;
    text-align:center;
    padding:.25rem;
    text-transform:capitalize
}
