body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
}

h1 {
    color: #333;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

input[type="file"],
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-family: inherit;
}

textarea {
    resize: vertical;
}

.affiliate-section {
    margin-top: 2rem;
    text-align: left;
}

.affiliate-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 0;
    width: 100%;
}

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

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

.file-list {
    margin-top: 2rem;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    text-align: left;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f9f9f9;
}

.file-name {
    font-size: 0.9rem;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.file-status {
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending { color: #888; }
.status-converting { color: #007bff; }
.status-done { color: #28a745; }
.status-error { color: #dc3545; }

#action-buttons {
    margin-top: 1rem;
}

#download-all-btn {
    background-color: #28a745;
}

#download-all-btn:hover {
    background-color: #218838;
}

#disqus_thread {
    margin-top: 2rem;
    text-align: left;
}