.mangadex-dl-widget {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mangadex-dl-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mangadex-dl-row {
    display: flex;
    gap: 14px;
}

.mangadex-dl-row .mangadex-dl-field {
    flex: 1;
}

.mangadex-dl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mangadex-dl-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.mangadex-dl-field input[type="text"],
.mangadex-dl-field select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.mangadex-dl-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.mangadex-dl-hint {
    margin: 0;
    font-size: 12px;
    color: #666;
}

#mangadex-dl-mangadotnet-notice {
    margin: 0;
    padding: 8px 10px;
    background: #fff8e1;
    border: 1px solid #f0d896;
    border-radius: 6px;
    font-size: 12px;
    color: #7a5c00;
}

.mangadex-dl-button {
    display: inline-block;
    text-align: center;
    padding: 10px 18px;
    background: #4a3f9e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.mangadex-dl-button:hover {
    background: #3a3080;
    color: #fff;
}

.mangadex-dl-button:disabled {
    background: #999;
    cursor: not-allowed;
}

.mangadex-dl-status {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.mangadex-dl-status-header {
    font-weight: 600;
    margin-bottom: 8px;
}

.mangadex-dl-log {
    max-height: 260px;
    overflow-y: auto;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.mangadex-dl-download {
    margin-top: 14px;
}
