/* style.css - Specific styles for PDF to Text Converter */

/* Converter Specific Styles */
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* Upload Area specific styles - most are already in index.css, just override/add if needed */
.upload-area {
    /* Existing styles from index.css are good */
    height: 180px; /* Give it a fixed height for better visual */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* For file-name positioning */
}

.upload-label {
    padding: 20px; /* Ensure click area is large */
}

.upload-text {
    margin-top: 10px; /* Space between icon and text */
}

.upload-area.drag-over {
    border-color: var(--color-teal);
    background-color: var(--color-gray); /* Lighter gray for drag-over */
}

.file-name {
    position: absolute; /* Position filename explicitly */
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    font-weight: 500;
}

/* Output Area */
.output-area {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--color-light-gray-2);
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--color-border);
    text-align: left; /* Align text within output area */
}

.output-area h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--color-teal);
}

#extractedTextOutput {
    min-height: 250px; /* Make textarea larger for text display */
    font-family: 'Roboto Mono', monospace; /* Monospace font for code/text output */
    font-size: 0.95rem;
    line-height: 1.5;
    background-color: var(--color-white); /* White background for text area */
    resize: vertical; /* Allow vertical resizing */
}

/* Responsive Adjustments for this tool specifically */
@media (max-width: 768px) {
    .upload-area {
        height: 150px;
    }
    .upload-icon {
        font-size: 3em;
    }
    .upload-text {
        font-size: 0.95rem;
    }
    .file-name {
        font-size: 0.85rem;
    }
    .output-area h3 {
        font-size: 1.4rem;
    }
    #extractedTextOutput {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .upload-area {
        height: 120px;
    }
    .upload-icon {
        font-size: 2.5em;
    }
    .upload-text {
        font-size: 0.85rem;
    }
    .file-name {
        font-size: 0.75rem;
        bottom: 10px;
    }
    #extractedTextOutput {
        min-height: 180px;
    }
}