/*
================================
1. General Reset & Typography
================================
*/
:root {
    --primary-color: #007bff; /* بٹن اور لنکس کا رنگ */
    --secondary-color: #6c757d; /* ٹیکسٹ اور بارڈرز کا رنگ */
    --background-color: #f8f9fa; /* پیج کا پس منظر */
    --card-background: #ffffff; /* کنٹینر کا پس منظر */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: #343a40;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh; /* کم از کم پوری سکرین جتنا ہو */
}

/*
================================
2. Main Layout (Page Structure)
================================
*/
.tool-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center; /* مرکزی مواد کو درمیان میں لانے کے لیے */
}

/* Headers */
.tool-page h1 {
    color: #1a1a1a;
    font-size: 2.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.tool-page p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/*
================================
3. Tool Specific Elements
================================
*/

.pdf-container {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f0f3f6;
    margin-bottom: 20px;
}

#textInput {
    width: 100%;
    max-width: 100%; /* موبائل پر سکرولنگ سے بچنے کے لیے */
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical; /* صرف عمودی سائز کو بڑھانے کی اجازت */
    transition: border-color 0.3s;
}

#textInput:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/*
================================
4. Buttons and Links (Call to Action)
================================
*/
#generatePDF,
#downloadPDF {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 50px; /* گول کنارے */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none; /* لنک سے انڈر لائن ختم */
}

/* Convert Button */
#generatePDF {
    background-color: var(--primary-color);
    color: white;
}

#generatePDF:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Download Link (Default hidden) */
.pdf-result {
    margin-top: 25px;
    min-height: 50px; /* جگہ خالی رکھنے کے لیے */
}

#downloadPDF {
    background-color: #28a745; /* سبز رنگ */
    color: white;
    display: none; /* جاوا سکرپٹ سے ان لائن ہو گا */
}

#downloadPDF:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
}



/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .tool-page {
        margin: 20px;
        padding: 15px;
    }

    .tool-page h1 {
        font-size: 1.8rem;
    }

    #generatePDF, #downloadPDF {
        width: 100%;
        margin-top: 10px;
    }
}