:root {
    --primary-color: #007bff;
    --background-color: #e9ecef;
    --container-bg-color: #ffffff;
    --text-color: #212529;
    --font-family: 'Poppins', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    padding: 20px;
    background-color: var(--container-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%; /* Changed from 120% to 100% */
    max-width: 600px;
    margin: auto; /* Center the container */
}

/* Remove the specific background for the file input section */
#extract-text, #inject-text {
    background: none;
    box-shadow: none;
    padding: 0;
    border: none;
}

header h1 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

section h2 {
    font-weight: 500;
    margin-bottom: 20px;
}

input[type="file"], button {
    width: calc(100% - 30px); /* Adjust width to account for padding */
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

button {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    cursor: pointer;
}

button:hover, button:focus {
    background-color: #0056b3; /* Darker blue on hover */
}

button:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

.file-input-wrapper {
    margin-bottom: 10px;
}

.file-input-label {
    display: inline-block;
    padding: 8px 12px;
    background-color: #e0e0e0;
    color: var(--text-color);
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 14px;
}

input[type="file"] {
    display: none;
}

.file-name {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: #888;
}

button {
    width: calc(100% - 30px); /* Adjust width to account for padding */
    padding: 12px 15px;
    margin-top: 15px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    cursor: pointer;
}