body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 30px;
    margin-bottom: 30px;
}

header {
    background-color: #357ABD;
    color: white;
    padding: 25px 0;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

header .container {
    background-color: transparent;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
    margin-top:0;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 0px;
    font-weight: 600;
}

header p {
    font-size: 1.05em;
    margin-bottom: 0;
    max-width: 100%;
}

main .container {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.upload-instructions {
    background-color: #e7f3fe;
    border: 1px solid #bde0fe;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.upload-instructions h2 {
    margin-top: 0;
    font-size: 1.4em;
    color: #00529B;
}

.upload-instructions ol {
    padding-left: 20px;
    margin-bottom: 0;
}

.upload-instructions li {
    margin-bottom: 5px;
}

.file-upload-area {
    text-align: center;
    padding: 20px;
    border: 2px dashed #c0c0c0;
    border-radius: 6px;
    background-color: #fafafa;
    margin-bottom: 25px;
}

.add-files-btn {
    background-color: #4cae4c;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.add-files-btn:hover {
    background-color: #3a8f3a;
}

.add-files-btn svg {
    margin-right: 0;
}

.upload-hint {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.file-list {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.file-icon {
    width: 24px;
    height: 24px;
    fill: #4A90E2;
    margin-right: 12px;
}

.file-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 0;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-right: 8px;
}

.file-size {
    font-size: 0.85em;
    color: #777;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-actions button, .file-actions .file-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

/* .convert-btn styles removed as it's no longer used for individual file conversion trigger */
/*
.convert-btn {
    background-color: #4A90E2; 
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.convert-btn:hover {
    background-color: #357ABD;
}

.convert-btn[disabled] {
    background-color: #cccccc;
    cursor: not-allowed;
}

.convert-btn svg {
    margin-right: 6px;
}
*/

.file-status {
    font-style: italic;
    color: #555;
}

.status-converting {
    color: #f39c12;
}

.status-finished,
.status-completed {
    color: #2ecc71;
    font-weight: bold;
}

.status-error {
    color: #e74c3c;
    font-weight: bold;
}

.download-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #27ae60;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.remove-btn:hover {
    background-color: #c0392b;
}

.remove-btn svg {
    width: 12px;
    height: 12px;
    fill: white;
}

/* Navigation Styles */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
    margin-top:0;
}

header .logo-link {
    text-decoration: none;
    color: white;
}

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

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

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: #e0e0e0;
}

header .container:not(.nav-container) {
    background-color: transparent;
    box-shadow: none;
    padding-top: 10px;
    padding-bottom: 0;
    margin-top:0;
    text-align: center;
}

/* Content Sections (FAQ, About, etc.) */
.content-section {
    padding: 20px;
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e7e7e7;
}

.content-section h2 {
    font-size: 1.6em;
    color: #357ABD;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.content-section h3 {
    font-size: 1.3em;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-section p,
.content-section ul,
.content-section dl {
    margin-bottom: 15px;
    color: #444;
}

.content-section ul {
    padding-left: 20px;
}

.content-section ul li {
    margin-bottom: 8px;
}

.content-section dl dt {
    font-weight: bold;
    color: #357ABD;
    margin-top: 15px;
}

.content-section dl dd {
    margin-left: 0;
    margin-bottom: 10px;
    padding-left: 15px;
    border-left: 3px solid #bde0fe;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9em;
}

footer .container {
    background-color: transparent;
    box-shadow: none;
    padding: 0 25px;
    margin: 0 auto;
}

footer nav ul li a {
    color: #ecf0f1;
}

footer nav ul li a:hover {
    color: #3498db;
}

footer p {
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
    }

    header .logo-link h1 {
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 8px;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 8px 0;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-info {
        margin-bottom: 10px;
        width: 100%;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .file-actions button:last-child {
        margin-left: auto;
    }

    footer nav ul {
        flex-direction: column;
    }

    footer nav ul li {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6em;
    }

    header p {
        font-size: 0.95em;
    }

    .add-files-btn {
        font-size: 1em;
        padding: 10px 15px;
    }

    .content-section h2 {
        font-size: 1.4em;
    }
    .content-section h3 {
        font-size: 1.2em;
    }
} 