/* --- PDF Tools Page Specific Styles --- */
body {
    /* Override the default dark theme for this page if needed */
    background-color: #fff;
    color: #333;
    margin: 0;
}

.navbar {
    color: #fff;
}

#pdf-tools-page {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 5rem;
}

.tools-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 3rem;
}
.tools-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin: 0;
}
.tools-header p {
    font-size: 1.1rem;
    color: #666;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.tool-category h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tool-card img {
    width: 24px;
    height: 24px;
}

/* Responsive adjustments for the grid */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* --- File Handler Styles --- */
.file-handler {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Hide the default file input */
#file-input {
    display: none;
}

.file-label {
    padding: 0.8rem 1.5rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.file-label:hover {
    background-color: #e9e9e9;
}

#process-btn {
    padding: 0.8rem 1.5rem;
    background-color: #4A90E2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#process-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.tool-status-message {
    margin-top: 1rem;
    color: #666;
    height: 1.2rem; /* Reserve space to prevent layout shift */
}

/* Style for the selected tool card */
.tool-card.selected {
    background-color: #e0edff;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    border: 1px solid #4A90E2;
}

/* Add this to your pdf-tools.css */
.tool-card img {
    width: 24px;
    height: 24px;
    /* In the future, you will replace the placeholder SVGs in the HTML
       and can style them here if needed */
}