/* --- PDF to Text Extractor Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Source+Code+Pro:wght@400;500&display=swap');

.ptt-wrapper {
    font-family: 'Lato', sans-serif;
    background-color: #F3F4F6; /* Light Grey */
    padding: 30px;
    border-radius: 20px;
    max-width: 700px;
    margin: 40px auto;
}

.ptt-container {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Header */
.ptt-header .fa-text-width {
    font-size: 2.5rem;
    color: #166534; /* Dark Green */
    margin-bottom: 10px;
}
.ptt-header h2 {
    font-size: 1.8rem;
    color: #111827; /* Dark Grey Text */
    margin: 0 0 5px;
}
.ptt-header p {
    color: #4B5563; /* Medium Grey Text */
    margin-bottom: 25px;
}

/* File Upload Area */
.ptt-file-drop-area {
    position: relative;
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 30px 20px;
    transition: background-color 0.3s;
    margin-bottom: 25px;
}
.ptt-file-drop-area:hover {
    background-color: #F9FAFB;
}
.ptt-file-drop-area input[type="file"] {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer;
}
.ptt-file-dummy .fa-file-pdf {
    color: #DC2626; /* Red for PDF icon */
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.ptt-file-dummy p {
    margin: 0; font-size: 1.1rem; color: #374151; font-weight: 500;
}
.ptt-file-info {
    font-size: 0.85rem; color: #9CA3AF; margin-top: 5px;
}

/* Button & Spinner */
.ptt-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background-color: #166534; /* Dark Green */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    position: relative;
}
.ptt-btn:hover {
    background-color: #14532D;
    transform: translateY(-2px);
}
.ptt-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 20px; height: 20px;
    animation: ptt-spin 1s linear infinite;
    display: inline-block;
}
@keyframes ptt-spin {
    to { transform: rotate(360deg); }
}
.ptt-message {
    padding: 12px; margin-top: 15px; border-radius: 8px;
    background-color: #FEF2F2; color: #991B1B; font-weight: 500;
}

/* Output Area */
#ptt-output-block { text-align: left; }
#ptt-output-block h3 {
    font-size: 1.2rem; margin-bottom: 10px; color: #111827;
}
.ptt-output-wrapper {
    position: relative;
}
#ptt-output-text {
    width: 100%;
    height: 350px;
    padding: 15px;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    background-color: #F9FAFB;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    resize: vertical;
    box-sizing: border-box;
}
.ptt-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #D1D5DB;
    color: #4B5563;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.ptt-copy-btn:hover {
    background-color: #E5E7EB;
    color: #111827;
}
.ptt-copy-btn .fas {
    margin-right: 6px;
}