.tool-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    align-items: center;

}

.text-to-pdf-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 60%;
}

.text-to-pdf-or-separator {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.text-to-pdf-input-container label {
    font-size: 1rem;
    color: #383e45;
}

.text-to-pdf-input-container textarea {
    display: flex;
}

#text-to-pdf-textarea {
    font-size: 1rem;
}

.text-to-pdf-input-container textarea {
    border: 1px solid #c4c1c1;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    display: flex;
    color: #000;
}

.text-to-pdf-input-container textarea:focus {
    outline: none;
}

#text-to-pdf-process-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #dc2626 100%);
    width: 300px;
}

#text-to-pdf-output-area {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    align-items: center;
    margin-top: -20px;
    gap: 10px;
}

#text-to-pdf-download-link {
    gap: 10px;
    padding: 18px 48px;
}
.file-details{
    display: flex;
    gap: 15px;
}
.file-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.file-details p {
    font-size: 1rem;
    color: #dc2626;
}
.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#text-to-pdf-start-over-btn {
    display: flex;
    width: 200px;
    align-items: center;
    color: white;
    gap: 10px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(229, 50, 45, 0.3); */
    background-color: #454b51;
}

#modal-body-text-to-pdf {
    padding: 0 30px 30px 30px;
}

.select-back-btn {
    background-color: #454b51;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 50, 45, 0.0);
    display: inline-flex;
    /* Use flex to align icon and text */
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Space between icon and text */
}

.select-back-btn:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 8px 20px rgba(229, 50, 45, 0.0);
}

.options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#text-to-pdf-options{
    flex-direction: column;

}

.convert-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.process-btn {
    width: 100%;
    align-items: center;
    color: white;
    gap: 10px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    /* margin-top: 24px; */
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(229, 50, 45, 0.3); */
}

.process-btn:hover{
    box-shadow:0 8px 20px rgba(46, 37, 37, 0.4);
}

@media (max-width: 580px) {
    .text-to-pdf-input-container {
        width: 100%;
    }

    .tool-options {
        width: 100%;
    }
}

@media screen and (max-width: 735px) {
    #text-to-pdf-download-link {
        font-size: 20px;
        padding: 15px 26px;
    }
}