/* Basic styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header and Navigation */
header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    color: #333;
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
}

nav ul li a:hover {
    color: #00796b;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #00796b;
    outline-offset: 2px;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 50px 25px;
    background-color: #e0f7fa;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    color: #00796b;
    margin-bottom: 20px;
}

.upload-area {
    background-color: #fff;
    border: 2px dashed #ccc;
    padding: 50px;
    margin: 0 auto 20px auto;
    max-width: 800px;
    text-align: center;
    border-radius: 8px;
    position: relative;
    transition: border-color 0.3s ease;
}

.upload-area.drag-over {
    border-color: #00796b;
    background-color: #f0f8ff;
}

.upload-label {
    font-size: 18px;
    color: #666;
    display: block;
    margin-bottom: 15px;
}

.browse-button {
    background-color: #00796b;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.browse-button:hover {
    background-color: #004d40;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#language-select, #accuracy-select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    min-width: 120px;
}

.extract-button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.extract-button:hover {
    background-color: #45a049;
}

.extract-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.result-area {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
    text-align: left;
}

.extracted-text {
    width: 100%;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.result-actions button {
    background-color: #0079c2;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.result-actions button:hover {
    background-color: #0056b3;
}

/* Content section for other pages */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content-section h1 {
    color: #00796b;
    margin-bottom: 20px;
}

.content-section h2 {
    color: #004d40;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h3 {
    color: #00796b;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-section ol {
    line-height: 1.6;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #00796b;
}

/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00796b;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #45a049;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .upload-area {
        padding: 30px;
    }

    .controls {
        flex-direction: column;
        gap: 15px;
    }

    .result-actions {
        flex-direction: column;
        gap: 10px;
    }

    .content-section {
        margin: 10px;
        padding: 20px;
    }
}

